I have an Html5 video player:
<video
video id="videoObj" class="video-js vjs-default-skin center" webkit-playsinline autobuffer preload="auto" poster="http://SomePoster.png">
{VideoFiles}
</video>
When internet connection is bad (playing the video on iOS device, on a uiWebView), the video stops playing. I tried getting an event for that here and here, but none is fired.
I have two problems here:
- I would expect the video to auto-resume playing/buffering when internet connection is bad/lost.
- I would expect an event telling me that the video is paused because of internet connection problems.
Am I missing some attributes for html5 video that could help me? (by the way, as a (bad) workaround I am checking the video's currentTime every second. If I see that it is equal to the last state, I know that the video is stuck and I fires the "play" event, in order to resume playing the video.)
Edit: I do not show the video toolbar on the video, so the user cannot resume the video by himself