Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

延迟问题 #258

Open
dlpuzhangyue opened this issue Jan 9, 2018 · 12 comments
Open

延迟问题 #258

dlpuzhangyue opened this issue Jan 9, 2018 · 12 comments

Comments

@dlpuzhangyue
Copy link

dlpuzhangyue commented Jan 9, 2018

1.没有使用音频且使用
{
enableWorker: true,
enableStashBuffer: false,
stashInitialSize: 128,
}
后,直播的延迟在5s左右,如何降低延迟呢?或者该插件造成延迟的原因可能有哪些?

@xqq
Copy link
Contributor

xqq commented Jan 9, 2018

video.currentTime设到buffered.end(0)附近

@dlpuzhangyue
Copy link
Author

@xqq 如果0缓存解码,那么在弱网络环境下如何结果因网络抖动引发的问题?

@xqq
Copy link
Contributor

xqq commented Jan 9, 2018

所以说附近,往前减一两秒不就完了

@dlpuzhangyue
Copy link
Author

@xqq
image
延迟基本稳定了 这个错误因何产生如何解决 麻烦大佬了

@xqq
Copy link
Contributor

xqq commented Jan 11, 2018

访问前先检查 buffered.length > 0

@dlpuzhangyue
Copy link
Author

又来麻烦您了 有几个问题想请教一下 buffered.length在什么情况下会出出现小于等于0得情况 还有现在得应用场景同时播放6个直播流 卡顿情况不一 是什么引起得?如何解决?

@dlpuzhangyue
Copy link
Author

@xqq

@dlpuzhangyue dlpuzhangyue reopened this Jan 15, 2018
@hodgson-su
Copy link

请问一下,video.currentTime设到buffered.end(0)附近 这个代码具体应该在哪里进行设置呢?

@xqq
Copy link
Contributor

xqq commented Jan 18, 2018

@ZhangDewei
Copy link

楼上同学 我大概明白了 就是让 currenttime 和 bufferend 时间保持一直吗?我有个问题,是我要随时,比如一秒就设置一次,还是说在播放的最开始 进行一次 时间同步就行了呢?谢谢

@xqq
Copy link
Contributor

xqq commented Jan 18, 2018

保持一致那播放过程中就一直在跳跃了

@ZhangDewei
Copy link

抱歉楼上的同学,可能我的确还是没理解。能不能给一个简单的demo呢?可能那样更快。我目前的测试是:开始上来就做一次相等,但没什么用,如果实时过程中 实时更新 就是一卡一卡的播放,也不行。我现在测试 延时都在5-6秒,求大神给个demo 吧

@bilibili bilibili locked and limited conversation to collaborators Jan 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants