2
votes

I'm using JW Player to live stream content onto a web page. The player is backed by an open-source library called cine.io.

My issue is that the player falls back to an HTML 5 video element for all mobile web, both on iPhone and Android. There are some differences between the flash solution of JW Player and HTML5 - notably that if a live stream starts, then stops, then restarts, the video element will not pick up the restarted stream.

This is a problem since streams often drop in and out - and the flash solution does pick up the restarted stream.

I tested a bunch of listener methods on the video and the only one that signalled that the stream had ended was a "time update" listener:

     $video.on('timeupdate', function(){
//Do something        
               });

However none of my attempts to re-open the stream have been effective.

Is this even possible? Can anyone provide pointers?

1
My experience has shown that the video support under Android is extremely buggy (even on the newest devices). Your best bet is to create a native app and use ExoPlayer that offers better error recovery. The situation under iOS is better but, again, no error recovery. If you want it you'll have to do it natively. There are also commercial solutions that claim to do this.Svetlin Mladenov

1 Answers