🌻 传统直播:HTML5播放器、M3U8直播/点播、RTMP直播、低延迟、推流/播流地址鉴权。🍏 实时直播:WebRTC
See the code





hls, dash, ogg, webm, mp4, rtmp either live or video on demand支持MP4,WebM和MP3以及HLS,Dash,YouTube,Facebook,SoundCloud和其他HTML5 MediaElement API的HTML5 <audio>或<video>播放器,可在所有浏览器中实现一致的UIhttp://hls-live.jia.360.cn/live_jia_public/_LC_RE_non_3605277091515101384821337866_BX/index.m3u8http://live.hkstv.hk.lxdns.com/live/hks/playlist.m3u8http://ivi.bupt.edu.cn/hls/cctv1hd.m3u8http://ivi.bupt.edu.cn/hls/cctv5hd.m3u8http://live.hkstv.hk.lxdns.com/live/hks/playlist.m3u8

rtmp-stream.htmlhls-stream.htmlauto-input-hls-player.html
The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. Origin 'http://127.0.0.1location /record {
add_header Cache-Control no-cache;
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
add_header 'Access-Control-Allow-Headers' 'Range';
types{
application/dash+xml mpd;
application/vnd.apple.mpegurl m3u8;
video/mp2t ts;
}
alias /home/tinywan/hls;
}
http://192.168.18.143/record/stream_name/index.m3u8测试结果:RTMP 延迟:2s ,HLS 延迟: 18s
embedSWF: function(swfUrlStr, replaceElemIdStr, widthStr, heightStr, swfVersionStr, xiSwfUrlStr, flashvarsObj, parObj, attObj, callbackFn)
swfUrlStr:指定您的SWF的URL(StrobeMediaPlayback.swf)replaceElemIdStr:指定包含替换元素的html元素的ID,能用你的flash的内容来替换widthStr:指定SWF的宽度heightStr:指定SWF的高度swfVersionStr:指定SWF 发布所需的flash播放器的版本xiSwfUrlStr:指定快速安装的路径,激活快速安装. 请注意,快速安装只会触发一次(他第一次被调用)flashvarsObj:指定需要传递给flash的变量(用键值对)parObj:指定嵌入对象的参数(用键值对)attObj:指定对象的属性(用键值对)callbackFn: (JavaScript function, optional)能定义一个回调函数,不管调用flash创建成功或者失败都可以调用该函数play2video2.html,默认静音播放hls_segment_filename 文件名
ffmpeg -i in.nut -hls_segment_filename'file%03d.ts'out.m3u8use_localtime 文件名
ffmpeg -i in.nut -use_localtime 1 -hls_segment_filename'file-%Y%m%d-%s.ts'out.m3u8ffmpeg -i 854-1496985395500.ts -c copy -map 0 -f segment -segment_list playlist.m3u8 -segment_time 10 output%03d.ts25 followers · starred Dec 2020
237 followers · starred Feb 2020
90 followers · starred Sep 2020
23 followers · starred May 2024
🌻 传统直播:HTML5播放器、M3U8直播/点播、RTMP直播、低延迟、推流/播流地址鉴权。🍏 实时直播:WebRTC
See the code





hls, dash, ogg, webm, mp4, rtmp either live or video on demand支持MP4,WebM和MP3以及HLS,Dash,YouTube,Facebook,SoundCloud和其他HTML5 MediaElement API的HTML5 <audio>或<video>播放器,可在所有浏览器中实现一致的UIhttp://hls-live.jia.360.cn/live_jia_public/_LC_RE_non_3605277091515101384821337866_BX/index.m3u8http://live.hkstv.hk.lxdns.com/live/hks/playlist.m3u8http://ivi.bupt.edu.cn/hls/cctv1hd.m3u8http://ivi.bupt.edu.cn/hls/cctv5hd.m3u8http://live.hkstv.hk.lxdns.com/live/hks/playlist.m3u8

rtmp-stream.htmlhls-stream.htmlauto-input-hls-player.html
The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. Origin 'http://127.0.0.1location /record {
add_header Cache-Control no-cache;
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
add_header 'Access-Control-Allow-Headers' 'Range';
types{
application/dash+xml mpd;
application/vnd.apple.mpegurl m3u8;
video/mp2t ts;
}
alias /home/tinywan/hls;
}
http://192.168.18.143/record/stream_name/index.m3u8测试结果:RTMP 延迟:2s ,HLS 延迟: 18s
embedSWF: function(swfUrlStr, replaceElemIdStr, widthStr, heightStr, swfVersionStr, xiSwfUrlStr, flashvarsObj, parObj, attObj, callbackFn)
swfUrlStr:指定您的SWF的URL(StrobeMediaPlayback.swf)replaceElemIdStr:指定包含替换元素的html元素的ID,能用你的flash的内容来替换widthStr:指定SWF的宽度heightStr:指定SWF的高度swfVersionStr:指定SWF 发布所需的flash播放器的版本xiSwfUrlStr:指定快速安装的路径,激活快速安装. 请注意,快速安装只会触发一次(他第一次被调用)flashvarsObj:指定需要传递给flash的变量(用键值对)parObj:指定嵌入对象的参数(用键值对)attObj:指定对象的属性(用键值对)callbackFn: (JavaScript function, optional)能定义一个回调函数,不管调用flash创建成功或者失败都可以调用该函数play2video2.html,默认静音播放hls_segment_filename 文件名
ffmpeg -i in.nut -hls_segment_filename'file%03d.ts'out.m3u8use_localtime 文件名
ffmpeg -i in.nut -use_localtime 1 -hls_segment_filename'file-%Y%m%d-%s.ts'out.m3u8ffmpeg -i 854-1496985395500.ts -c copy -map 0 -f segment -segment_list playlist.m3u8 -segment_time 10 output%03d.ts25 followers · starred Dec 2020
237 followers · starred Feb 2020
90 followers · starred Sep 2020
23 followers · starred May 2024