arut / nginx-rtmp-module

NGINX-based Media Streaming Server
http://nginx-rtmp.blogspot.com
BSD 2-Clause "Simplified" License
13.47k stars 3.52k forks source link

DVR parameter makes no difference hls_playlist_length #1396

Open DanielnetoDotCom opened 5 years ago

DanielnetoDotCom commented 5 years ago

Hi all

I am very glad I have you guys around the internet.

I am trying to configure a DVR feature, I add the hls_playlist_length parameter, but looks like that makes no difference on video.js 7 player and VLC player.

am I missing something?

here is my configuration

worker_processes  1;
    error_log  logs/error.log debug;
    events {
            worker_connections  10;
    }
    rtmp {
            server {
                    listen 1935;
                    allow play all;
                    #creates our "live" full-resolution HLS videostream from our incoming encoder stream and tells where to put the HLS video manifest and video fragme$
                    application live {
                            allow play all;
                            live on;
                            #record all;
                            #record_path /video_recordings;
                            #record_unique on;
                            hls on;
                            hls_nested on;
                            hls_path /HLS/live;
                            #hls_playlist_length 4s;
                            hls_playlist_length 30m;
                            hls_fragment 10s;
                            on_publish http://192.80.190.54/plugin/Live/on_publish.php;
                            on_play http://192.80.190.54/plugin/Live/on_play.php;
                            on_record_done http://192.80.190.54/plugin/Live/on_record_done.php;

recorder video{
    record off;
    record_path /tmp;
    record_notify on;
    #will produce files of the form yourUserKey-24-Apr-13-18:23:38.flv
    record_suffix -%d-%b-%y-%T.flv;
}
max_connections 5;
                    }
            }
    }
0x41mmarVM commented 5 years ago

Out of the box, Videojs doesn't have DVR functionality, and VLC only plays the live stream. I suggest you either use this VideoJS Plugin: https://github.com/facundofernandez/videojs-dvr Or use Flowplayer with the dvr:true switch: https://demos.flowplayer.com/basics/dvr.html

DanielnetoDotCom commented 5 years ago

thank you s much I will take a look