soundcloud / soundcloud-javascript

Official SoundCloud Javascript SDK
http://developers.soundcloud.com/
Other
386 stars 83 forks source link

Long streams return RTMP that fail on Chrome #52

Open rtsmith opened 8 years ago

rtsmith commented 8 years ago

It seems that any stream() referencing a track resource longer than 60 minutes uses RTMP rather than HTTP, on Chrome 50 while tracks < 60m use HTTP as expected. With these longer tracks the Flash stream is loaded without error but when manipulating it with seek() or pause() the following error is thrown.

"Error: Error: An invalid exception was thrown. at Error (native) at i.setVolume (https://connect.soundcloud.com/sdk/sdk-3.0.0.js:12:8154) at i.setVolume (https://connect.soundcloud.com/sdk/sdk-3.0.0.js:8:19529) at Function.k.extend.toggleMute (https://connect.soundcloud.com/sdk/sdk-3.0.0.js:13:19990) at Function.r [as setAudioManager] ....

Bypassing the Flash detection in audiomanager.js rescues for these long tracks on Chrome. See https://github.com/soundcloud/soundcloud-javascript/issues/39#issuecomment-207823313

ethanmay commented 8 years ago

👍 Please fix this guys, Chrome has plans to completely phase out Flash in the future.