-
Notifications
You must be signed in to change notification settings - Fork 6k
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
No sound in certain HLS stream but VideoView has sound #501
Comments
This is because we don't handle the following stream types: 0x03 ISO/IEC 11172-3 Audio We currently handle 0x0F (AAC) for audio. |
Is there a way for me to know if audio failed to play so I can switch over to VideoView? |
No massively easy way. Internally in MediaCodecTrackRenderer, the audio renderer will transition to the STATE_IGNORE state after doPrepare. So one option as a temporary solution would be for you to expose that and query it. Things this issue now tracks:
|
I also wonder how did you get the https://tools.ietf.org/html/draft-pantos-http-live-streaming-16#page-5
|
Yup, thanks. Updated the comment above. We should aim to provide support (not a huge priority for us though). |
MP3 support has been added to HLS in the dev branch. The stream linked in this bug is dead, so I don't know whether it works, but closing anyway. Please file a new issue with a working stream if you find any problems. |
When using ExoPlayer to play some HLS stream, there is video but no sound. However, playing the same stream in VideoView, there is video and sound.
ExoPlayer does throw an exception when it fails to play video, but there is no way to know if video is ok and audio fails. If there is such indicators, at least i could still fallback to VideoView.
VLC Player indicates the audio codec used is MPEG Audio Layer 1/2 (mpga).
http://198.50.176.179:1935/live/ktvlive.sdp/playlist.m3u8
The text was updated successfully, but these errors were encountered: