bilibili / flv.js

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

flvjs如何再降低延时 #283

Open d02540220 opened 6 years ago

d02540220 commented 6 years ago

媒体服务器实时预览通过其他客户端来拉流延时在400毫秒左右, 通过flvjs播放延时在1.8秒,查看currenttime和buffered.end(0)的差值在0.5左右, 将currenttime设置为buffered.end - 0.3或0.5,都没有明显的改变,延时还是在1.8左右 flvjs的配置 enableStashBuffer: false, stashInitialSize: 128

想问有没有办法能把延时控制在1秒以内的方法?

xqq commented 6 years ago

config.enableStashBuffer设为false试试,记得用最新版

notedit commented 6 years ago

@xqq hi, i just test set enableStashBuffer to false the latest version, the dalay is more than 1.5s

ffplay nobuffer mode is only 0.4s, is there any improment on flvjs?

thanks

17Sdubin commented 4 years ago

媒体服务器实时预览通过其他客户端来拉流延时在400毫秒左右, 通过flvjs播放延时在1.8秒,查看currenttime和buffered.end(0)的差值在0.5左右, 将currenttime设置为buffered.end - 0.3或0.5,都没有明显的改变,延时还是在1.8左右 flvjs的配置 enableStashBuffer: false, stashInitialSize: 128 想问有没有办法能把延时控制在1秒以内的方法?

你好,大神!我也遇到了相同的问题,请问你的解决了吗?

mayunxi commented 3 years ago

var defaultConfig = exports.defaultConfig = { enableWorker: false, enableStashBuffer: false, stashInitialSize: undefined, 将flv.js中enableStashBuffer设置为false即可