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

Unable to play H264 video stream of main profile #73

Open
githubhanjunjun opened this issue May 13, 2019 · 3 comments
Open

Unable to play H264 video stream of main profile #73

githubhanjunjun opened this issue May 13, 2019 · 3 comments

Comments

@githubhanjunjun
Copy link

Unable to play H264 video stream of main profile

@huangfe
Copy link

huangfe commented Mar 10, 2020

@githubhanjunjun Is there a solution

@x0a
Copy link

x0a commented Mar 22, 2020

h264-live-player is based on Broadway.js, which is based on Android's h264 decoder, which can only decode a baseline stream.

User shengbinmeng created an ffmpeg version which can decode main streams, available here as Decoder-ff.js: https://github.com/shengbinmeng/javascript-ts-player/tree/master/js

It uses the same API so you can just replace Decoder.js with this file and re-bundle with npm run dist inside the vendor directory. The new http-live-player.js will be able to decode main streams.


Or if you like, just replace http-live-player.js with my pre-compiled version.

@jackkum
Copy link

jackkum commented Dec 8, 2021

@x0a Thank you so much! You are saved my day!

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

4 participants