问题
The HTML5 SoundCloud widgets autoplay feature is not working on iOS5 and iOS6.
I have not tested lower than iOS 5.
See: http://www.bushytunes.net/test.asp
This page has the feature enabled by including the auto_play=true
parameter in the iframe src.
Can this be fixed? Or is there a hack I can add to my application to enable this feature?
回答1:
Autoplay is disabled for any audio or video on all iOS devices, this is Apple's decision. Here's a link to the documentation that is saying that playback has to be controlled by the user: http://developer.apple.com/library/safari/#documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/Device-SpecificConsiderations/Device-SpecificConsiderations.html#//apple_ref/doc/uid/TP40009523-CH5-SW1
Playback has to be initiated by user action. As far as I know there is no hack that would let you enable it.
来源:https://stackoverflow.com/questions/14900840/soundcloud-html5-widget-no-autoplay-ios