1

Topic: Live-streaming In HTML5 video (Chrome)

All greetings! I can not find a simple example for   in HTML5 video / Chrome in any way, was tired to read different contradictory articles on a subject... Something Is necessary type described in this subject http://rsdn.org/forum/media/4421649 the Author: Akad Date: 14.09.11 (the link to the decision there already irrelevant). The task: There is a C ++ application, generates raw video frames. Is Chromium-based JavaScript GUI in which it is necessary to display video. It is necessary: - to pick up  for  from CPP (FFMPEG?) - To adjust display lajv-strima in HTML5 in Chrome. And did not understand that can standard HTML5 video a tag in Chrome (files to lose it it is clear, but is necessary lajv-strim, a-lja the webcam). HLS, MPEG-DASH and other RTSP/RTP from there do not work without special players. Knowledge in the field of video almost 0, therefore to begin with generally to find any simple example lajv-striminga (for example from the webcam) on HTML5 video in Chrome. If without additional players of type video.js not to manage - it would be desirable a normal example... Well and generally, I will be grateful for any council about a subject

2

Re: Live-streaming In HTML5 video (Chrome)

Hello, Faland, you wrote: F> All greetings! F> and did not understand that can standard HTML5 video a tag in Chrome (files to lose it it is clear, but is necessary lajv-strim, a-lja the webcam). HLS, MPEG-DASH and other RTSP/RTP from there do not work without special players. F> knowledge in the field of video almost 0, therefore to begin with generally to find any simple example lajv-striminga (for example from the webcam) on HTML5 video in Chrome. If without additional players of type video.js not to manage - it would be desirable a normal example... Well and generally, I will be grateful for any council about a subject Look on HLS or DASH, we use for audio, but the majority of people use for video. It is a lot of nuances, depending on target browsers, but basically works. https://github.com/video-dev/hls.js/

3

Re: Live-streaming In HTML5 video (Chrome)

Hello, Faland, you wrote: F> And did not understand that can standard HTML5 video a tag in Chrome (files to lose it it is clear, but is necessary lajv-strim, a-lja the webcam). HLS, MPEG-DASH and other RTSP/RTP from there do not work without special players. More likely to you it is necessary WebRTC. On how many it is known to me to eat ready Cs ++ libraries for support on server side. One of them from google, in my opinion.

4

Re: Live-streaming In HTML5 video (Chrome)

If to use HLS. It is necessary to adjust an announcement according to the formats supported in the browser. For this purpose it is possible to use the same FFmpeg. It is possible to look at the list of browsers and supported formats here https://www.wowza.com/docs/how-to-play- … video-tag. An exhaust (audio, video and playlists) thus should be put in a folder which is adjusted in a Web server. Thus it is necessary to be convinced that the address is accessible from this places, the page with a player whence opens. It is possible, for example, simply in the browser to try to follow the link a type http://myserver.com/streaming/event123/playlist.m3u8. In any cases (depending on that, whence it is broadcast and where it is lost) it can be demanded to include CORS (cross origin requests). That it is possible to make for the test: First of all, it is possible to try to lose generally available . The list is here https://bitmovin.com/mpeg-dash-hls-exam … -streams/. Then it is possible to launch the announcement by means of console FFmpeg-utilities (https://ffmpeg.org/ffmpeg-formats.html#hls-2). As to DASH the separate player Here is necessary. I recommend "" DASH-IF player (https://github.com/Dash-Industry-Forum/dash.js/) - it is possible to build in easily to myself on page. Plus to everything, in case of absence of playing it is useful to look at console broad gulls in the developer console in the browser (F12).

5

Re: Live-streaming In HTML5 video (Chrome)

Hello, DiPaolo, you wrote: DP> If to use HLS. DP> It is necessary to adjust an announcement according to the formats supported in the browser. For this purpose it is possible to use the same FFmpeg. It is possible to look at the list of browsers and supported formats here https://www.wowza.com/docs/how-to-play- … video-tag. DP> the Exhaust (audio, video and playlists) thus should be put in a folder which is adjusted in a Web server. Thus it is necessary to be convinced that the address is accessible from this places, the page with a player whence opens. It is possible, for example, simply in the browser to try to follow the link a type http://myserver.com/streaming/event123/playlist.m3u8. DP> In any cases (depending on that, whence it is broadcast and where it is lost) it can be demanded to include CORS (cross origin requests). DP> That it is possible to make for the test: DP> First of all, it is possible to try to lose generally available . The list is here https://bitmovin.com/mpeg-dash-hls-exam … -streams/. DP> Then it is possible to launch the announcement by means of console FFmpeg-utilities (https://ffmpeg.org/ffmpeg-formats.html#hls-2). DP> As to DASH DP> the separate player Here is necessary. I recommend "" DASH-IF player (https://github.com/Dash-Industry-Forum/dash.js/) - it is possible to build in easily to myself on page. DP> plus to everything, in case of absence of playing it is useful to look at console broad gulls in the developer console in the browser (F12). Tried just MPEG-DASH + DASH-IF, close to that that is necessary for me, but for this purpose it is necessary to lift a Web server. It would be desirable something minimum intrusive that on a default worked simply by the local machine. C through FFMPEG it is still fine, but to lift also a Web server by the machine of the client... Somehow it is absolutely bulky it turns out, considering that it is all as a matter of fact the minor functionality for a product. I will try nevertheless WebRTC as (in the long term) the time delay minimum should be.

6

Re: Live-streaming In HTML5 video (Chrome)

F> Tried just MPEG-DASH + DASH-IF, close to that that is necessary for me, but for this purpose it is necessary to lift a Web server. It would be desirable something minimum intrusive that on a default worked simply by the local machine. C through FFMPEG it is still fine, but to lift also a Web server by the machine of the client... Somehow it is absolutely bulky it turns out, considering that it is all as a matter of fact the minor functionality for a product. F> I will try nevertheless WebRTC as (in the long term) the time delay minimum should be. Note rather DASH: anything by the machine of the client it is not necessary to lift - enough browser. If decide all the same DASH to try, I can paint more in detail as as it is necessary to do.

7

Re: Live-streaming In HTML5 video (Chrome)

Hello, DiPaolo, you wrote: F>> the time delay minimum should be. DP> if decide all the same DASH to try, I can paint more in detail as as it is necessary to do. If DASH it is similar HLS breaks video translation into separate fragments and gives to their player one after another the time delay minimum will not be. And there will be not less lengths of a fragment.

8

Re: Live-streaming In HTML5 video (Chrome)

F>>> the time delay minimum should be. DP>> if decide all the same DASH to try, I can paint more in detail as as it is necessary to do. M> if DASH it is similar HLS breaks video translation into separate fragments and gives to their player one after another the time delay minimum will not be. And there will be not less lengths of a fragment. Quite right - breaks into segments.