【nginx】jwplayer播放nginx-rtmp录制的flv不显示时间
播放其他的flv文件的时间会显示时间,但是播放nginx-rtmp录制的flv不显示时间,时间显示的都是00::00这是怎么回事呢,请指教
回答
nginx-rtmp录制的.flv文件缺少视频的关键帧信息.所以不会显示时间,可以使用yamdi添加关键帧信息之后就会显示时间了.
下面这段话是nginx-rtmp官网的:
Indexed FLVs are played with random seek capability. Unindexed FLVs are played with seek/pause disabled (restart-only mode). Use FLV indexer (for example, yamdi) for indexing.
If you play FLVs recorded with the record directive please do not forget to index them before playing. They are created unindexed.
以上是 【nginx】jwplayer播放nginx-rtmp录制的flv不显示时间 的全部内容, 来源链接: utcz.com/a/84545.html