-
3 Dec 2012 11:47 AM #1
how to make sound play when scene start?
how to make sound play when scene start?
i make some web application using buzz.js. it's work great when use with "on click" action.
but now I want to play sound when scene start up
sound played when I open in safari on my mac but nothing in my iPhone app? Why?
here is my script.
start>Custom Javascript>soundTitle.play();
-
3 Dec 2012 4:25 PM #2
Typically on the iOS, sound events have to be started by the user. This is a restriction Apple has put on their devices (probably to restrict autoplay).
-
3 Dec 2012 6:04 PM #3
-
12 Dec 2012 9:27 PM #4
I found solution!!
I found solution!!
I found solution to fix this problem.
just add this property to web-view
webView.mediaPlaybackRequiresUserAction = NO;
hope it helpful to you
-
14 Dec 2012 8:37 AM #5
That is a good point!
Just to clarify for other readers, if you are embedding your own webview in an iOS application (in xcode) you have more control, and you can enable playback without user interaction.
mediaPlaybackRequiresUserAction


Reply With Quote