bilibili / flv.js

HTML5 FLV Player
Apache License 2.0
22.89k stars 3.39k forks source link

使用了flvjs的demo,替换了Stream URL地址,为什么进去以后,当前播放画面是约5s前的画面? #266

Open hodgson-su opened 6 years ago

hodgson-su commented 6 years ago

使用的直播,设置的优化延迟配置,并且禁用了缓存机制,为什么会有标题的现象。

xqq commented 6 years ago

服务端的 GOP Cache,从上个 IDR 开始下发

ZhangDewei commented 6 years ago

同求解决方案,我目前也是延迟5秒,希望可以降低到3秒以内。

xqq commented 6 years ago

258

ZhangDewei commented 6 years ago

楼上你好 我不太明白 哪个设置 buffered.end(0) video.buffered.end(0) 这样设置就可以了嘛?

xqq commented 6 years ago

Google 搜索 HTMLMediaElement buffered 请

mwb-27 commented 6 years ago

@xqq 你好,我自己用mse实现的播放摄像机实时流,发现currentTime永远比buffered.end()慢将近1.5秒左右,我还试过将currentTime事件设置为buffered.end()的前0.5秒,但是会触发waiting事件,然后缓存到下一帧可播放时才再次开始播放,这样就会导致画面卡顿。请问这个问题有什么好的 解决方案吗?

xqq commented 6 years ago

@13456247300 请不要多次提出重复的问题,谢谢合作

mwb-27 commented 6 years ago

@xqq 好的,谢谢

wangxingkang commented 5 years ago

@dlpuzhangyue 实时计算是如何实现的 是否可以提供示例代码