B
B
borg3332017-11-09 19:11:06
Nginx
borg333, 2017-11-09 19:11:06

Is it possible to output rtmp stream directly (without hls, dash, etc.) to html5 player?

Hello. There is nginx configured to return rtmp using OBS. I use uppod:
flash on rtmp:///live/test plays
html5 on hls/test.m3u8 plays
If I try to use rtmp:///live/test for html5, nothing happens, I tried many players.
Is it real at all? If so, please advise the player. Or do I need to somehow reconfigure nginx? not entirely satisfied with the fact that how a playlist is created, in fact, the hard disk is loaded when creating fragments (+ this is recorded in one file) Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
Yuri Udovichenko, 2017-11-10
@borg333

To play video through HTML5, Media Source Extensions are currently used, which receive data from the player or browser as input. For playing MPEG-DASH, this scheme fits perfectly, because. there, the incoming data is given almost immediately, relatively speaking, without changing the container, to the MSE.
Other protocols require pre-processing to transfer data to the MSE. I have not seen RTMP players that work in this mode, but theoretically it is possible.
But in general, I recommend using DASH or HLS for playing in the browser through relatively lightweight players. Or, if the delay between sending data and its loss is critical for you (for example, you broadcast surveillance cameras or real-time rates), use special developments based on WebRTC or "pure" Websockets.
For example, we developed the SLDP technology just for the second case, where the stream goes through web sockets and is sent to be played in the MSE in the browser. For the web, there is a JavaScript player and an SDK. Plus there are players and SDKs for mobile platforms.

M
mrxakerrus, 2017-11-09
@mrxakerrus

for rtmp there is only a way out to use plugins, if you write for yourself, then you can use plugins like vlc, if you write something global, then you can replace it with ffpmpeg video at the end of the command to add - and through stdout give the stream already, the main thing with ffmpeg commands set the bitrate, speed, sound, codecs and everything else, nginx has an nginx-rtmp plugin with ffmpeg once again, which outputs HLS ..
PS RTMP / RTSP all this works through ActiveX, many browsers have already removed it, so IE has it still uses, but on EDGE it seems that it is no longer available, just push it into an object

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question