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

rtsp打开速度能否提高?切换流时能否不黑屏? #12

Open
avsuper opened this issue Mar 30, 2018 · 0 comments
Open

rtsp打开速度能否提高?切换流时能否不黑屏? #12

avsuper opened this issue Mar 30, 2018 · 0 comments

Comments

@avsuper
Copy link

avsuper commented Mar 30, 2018

加载rtsp流的时候,需要先stop原先的,再open新的,然后play,这样速度很慢。
而且从调用play开始到画面出现,大约需要2秒多的时间。
stop一个流再play另外一个流,会出现黑屏现象。
建议:
1、增加一个可以切换视频流地址的函数。可参考同类产品的switchurl这个函数,这样有利于多个视频播放的切换。且在switch过程中,画面不应黑屏,可以保留上一个流的最后一个画面。
2、加快播放的加载速度,从调用play到出现画面的时间控制在0.5秒以内。
3、stop时,可考虑增加一个选项:是否清屏。选择此参数,则stop时清除,不选择,则stop时保留最后一帧。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant