HTML5 streaming video

How to make streaming video in HTML5? I can go using a single browser of the latest version if I need to.
I need it so that I can start playing from anywhere in the movie, even if the entire video has not been downloaded by the browser.
WebRTC ?
I already saw this question and no one answered.

Does not allow the viewer to skip the middle of the video in any browser. They must watch the video right through the beginning in order to finish, which is not ideal.

This is basic for streaming.

+4
source share
2 answers

Currently, if you want to use pure HTML5 and work in a cross browser, you are limited to progressive streaming with the <video> element.

While this still allows the user to skip ahead through the scrubber or programmatically by setting .currentTime, there will still be some buffering, while the browser will reload enough content to ensure a comfortable game smoothly.

Solutions such as Smooth Streaming, HLS do not work in browsers today, so you will need a Flash or Silverlight plugin, although there is hope for the future with WDC recognition in MPEG-DASH, as samples like this demonstrate http: // dash-mse -test.appspot.com/release-notes.html

Today, however, if you want to stick to the HTML5 solution and you have a source in the format that works with the browser, you should be fine

+4
source

At the same time, Chrome implemented the Media Source API. We hope that the rest will follow.
http://www.w3.org/TR/media-source/

annotation

This specification extends HTMLMediaElement to allow JavaScript to create media streams for playback. Providing JavaScript to generate streams facilitates many use cases, such as adaptive streaming and real-time temporary changes.

0
source

All Articles