nginx RTMP , 破折号

nginx RTMP , dash

我正在使用 rtmpNginx 创建 Dash。 我创建了分段:

[SND]   1464729671819-init.m4a  31-May-2016 23:55   557  
[   ]   1464729671819-init.m4v  31-May-2016 23:55   659  
[SND]   1464729671819-raw.m4a   01-Jun-2016 00:13   0    
[   ]   1464729671819-raw.m4v   01-Jun-2016 00:13   34K  
[   ]   1464729671819.mpd

在我的 /dash 文件夹中

然后我尝试用 https://cdn.dashjs.org/latest/dash.all.min.js 播放器

<video data-dashjs-player autoplay src="/dash/1464729671819.mpd" controls></video>

并在我的控制台中获得了这些日志:

279] Manifest updated... set new data on buffers. 
Debug.js:108 [5279] Added 0 inline events 
Debug.js:108 [5280] Refresh manifest in 4.999 seconds. 
Debug.js:108 [10416] Parsing complete: ( xml2json: 1ms, objectiron: 1ms, total: 0.002s) 
Debug.js:108 [10417] Manifest has been refreshed at Wed Jun 01 2016 00:14:00 GMT+0200 (Paris, Madrid (heure d’été))[1464732840.361]  
Debug.js:108 [10418] SegmentTimeline detected using calculated Live Edge Time 
Debug.js:108 [10418] Manifest updated... set new data on buffers. 
Debug.js:108 [10419] Added 0 inline events 
Debug.js:108 [10420] Refresh manifest in 4.999 seconds. 
Debug.js:108 [15523] Parsing complete: ( xml2json: 1ms, objectiron: 1ms, total: 0.002s) 
Debug.js:108 [15523] Manifest has been refreshed at Wed Jun 01 2016 00:14:05 GMT+0200 (Paris, Madrid (heure d’été))[1464732845.467]  
Debug.js:108 [15523] SegmentTimeline detected using calculated Live Edge Time 
Debug.js:108 [15523] Manifest updated... set new data on buffers. 
Debug.js:108 [15524] Added 0 inline events 
Debug.js:108 [15524] Refresh manifest in 5 seconds. 

但是没有播放!

有什么想法吗?

你用的是哪个nginx-rtmp?如果您使用的是原始版本,请参阅 https://github.com/arut/nginx-rtmp-module/issues/614 for why. You can use https://github.com/sergey-dryabzhinsky/nginx-rtmp-module,它应用了修复程序并且已知可与 dash.js.

一起使用