Closed fox94610 closed 7 years ago
That's strange, they shouldn't behave differently. I'll look into this
I can't test on the iPad right now, but can you open this URL there to see if the events are fired? It has the same logging http://bfred-it.github.io/iphone-inline-video/?enabled=true
I checked it out, you definitely have the play and playing event firing on your page. I guess it's not a bug. Something is weird with my JS writing everything to the page implementation. Maybe some race condition in there somehow messing up the initial play and playing events.
Thanks for reporting!
In the v2 beta I simplified the usage on iPad. Can you try it and let me know how it goes?
npm install iphone-inline-video@next
v2.0.0 has been published :)
Now you can use the iPad
option:
enableInlineVideo(video, {
iPad: true
});
Used below method to kick off autoplay on iPad: makeVideoPlayableInline(videoElement, false/* hasAudio /, false/ false = run everywhere */); Works great but I would like to detect 'play' or 'playing' event. Is there a way to do this? If not is it possible to patch?
iPhone logging... http://foxflare.com/mobileEvent/ss1.png
Same page on iPad... http://foxflare.com/mobileEvent/ss2.png