Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- aud.onerror = function() {
- console.log('cant')
- streamable = false;
- }
- function doubleCheckSource(src) {
- streamable = true;
- $('#tester').attr('src', src + '?client_id=7af759eb774be5664395ed9afbd09c46');
- }
- function handleSongSource(song) {
- if(song.source == 'SoundCloud') {
- if(song.audioSource) {
- doubleCheckSource(song.audioSource)
- console.log('.....how')
- return streamable ? 'SoundCloud' : 'SoundCloudNonstreamable';
- } else {
- return 'SoundCloudNonstreamable';
- }
- } else {
- return song.source;
- }
- // if(song.source == 'SoundCloud') return song.audioSource ? 'SoundCloud' : 'SoundCloudNonstreamable';
- // return song.source;
- }
Advertisement
Add Comment
Please, Sign In to add comment