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

H265视频有时候不能暂停 #58

Closed
HejieShao opened this issue Jul 1, 2021 · 9 comments
Closed

H265视频有时候不能暂停 #58

HejieShao opened this issue Jul 1, 2021 · 9 comments

Comments

@HejieShao
Copy link

视频url:http://bus-media-bj.obs.cn-north-4.myhuaweicloud.com/pub/material/20210630/视频H265HEVC320210626164439404_20210630160017484.mp4

多执行几次play和pause,有时候无法暂停,使用isPlaying获取的状态也是flase

@numberwolf
Copy link
Owner

我测下

@numberwolf
Copy link
Owner

你们的具体操作发一下吧,

是不是seek没有等待seek完成就强制自行操作点了播放按钮,或者没有加载完成时候点击

@HejieShao
Copy link
Author

就是一个播放和暂停按钮一直点击,等视频加载完成,才开始点击的。播放这个视频的时候,画面会有点卡的时候,就很容易出现无法暂停的问题
image

@HejieShao
Copy link
Author

我这边测试,这个问题在264的mp4文件是不存在的,265的文件会存在

@numberwolf
Copy link
Owner

就是一个播放和暂停按钮一直点击,等视频加载完成,才开始点击的。播放这个视频的时候,画面会有点卡的时候,就很容易出现无法暂停的问题
image

赞 有这个线索 我按照这个排查一下

@numberwolf
Copy link
Owner

请更新最新版本,目前已修复

Remind!

因为使用软解码能力(浏览器上无法做硬解码加速 与 汇编优化),故设备电脑配置性能 会 影响播放器性能!

请注意:

  • 视频帧率最好 <= 30fps

    • 建议:24fps
  • 视频码率最好 <= 1.5Mb

    • 建议:300~600kbps (HEVC/H.265可提供较高的压缩率)

@HejieShao
Copy link
Author

好,更新看了确实流畅了很多!然后H265的seek到某个时间点,需要等比较长的时间才会跳到对应的时间点,这个是因为H265需要重新进行解码吗?

@numberwolf
Copy link
Owner

好,更新看了确实流畅了很多!然后H265的seek到某个时间点,需要等比较长的时间才会跳到对应的时间点,这个是因为H265需要重新进行解码吗?

对,不解码无法播放,因为是精准seek,而且浏览器能力比较弱 这个已经是优化过的速度。

@HejieShao
Copy link
Author

好 ,明白了

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

2 participants