fregante / iphone-inline-video

📱 Make videos playable inline on the iPhone (prevents automatic fullscreen)
https://npm.im/iphone-inline-video
MIT License
2.06k stars 298 forks source link

sound issue on ios 10 (iphone6) #88

Closed ofirrifo closed 7 years ago

ofirrifo commented 7 years ago

first thanks for great package.

this is the code I'm using var video = document.querySelector('video'); makeVideoPlayableInline(video, true); video.play(); to initiate video play.

I'm using video API timeupdate

videoElement.on('timeupdate', function (e, b) { // when I set sound to true in method makeVideoPlayableInline I never reach to here }

this is the exception I get: iphoneInlineModule.js:90 Uncaught (in promise) DOMException: Failed to load because no supported source was found.

please advise.

fregante commented 7 years ago

iOS 10 does not need IIV

What browser are you using?

Also try using <video src=... instead of <source>

ofirrifo commented 7 years ago

👍 after I used the video element src instead the source element it work. Thanks