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

当没有音轨的视频设置hasAudio为true播放失败 #30

Open
dufeng-code opened this issue Aug 20, 2024 · 2 comments
Open

当没有音轨的视频设置hasAudio为true播放失败 #30

dufeng-code opened this issue Aug 20, 2024 · 2 comments

Comments

@dufeng-code
Copy link

当没有音轨的视频流设置hasAudio为true播放失败,hasAudio一定需要设置值吗

@dufeng-code
Copy link
Author

当没有设置hasAudio时,有音轨的视频会播放不出声音,并且报错:[MSEController] > Failed to execute 'addSourceBuffer' on 'MediaSource': This MediaSource has reached the limit of SourceBuffer objects it can handle. No additional SourceBuffer objects may be added.

@shady-xia
Copy link
Owner

hasAudio要根据有没有音轨来实际进行设置,否则视频无法正常播放

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