-
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
Dolby(EC3) not playing on androidTV when connected to bluetooth speaker #7788
Comments
From the bug report:
... means that the I suspect that the device is still reporting to the app that DD+ is supported via passthrough even though the actual output path is now via headphones. Can you detect the headphone connection event and restart the player with a new |
@andrewlewis Yes the audio output settings are set to Also is it possible to decode ec3 in the device(if it supports) and pass the decoded stream to the speakers via BT? |
@andrewlewis After detecting headphone connection and sending new capabilities that do not include Encoded format plays fine |
I'm not aware of another way to do this, I'm afraid.
If audio capabilities don't include the format but the device has a decoder that supports the format, ExoPlayer will use that decoder automatically (and play the decoder's output PCM over headphones).
It sounds like you've got a solution that works for now. I think we need to respect the audio capabilities that are passed in by the app at the moment so there isn't anything else to do here at the moment. When we get round to #1993 it's possible that as part of that we will refine the behavior to check capabilities for specific output devices, at which point the default behavior may improve, but we need to wait and see how that API works. |
Issue description
Trying to play ec3 content on Android TV os 9.0 via exoplayer demo app while connected to Bluetooth speaker/headphone. Getting Playback failed error
From the logs:
AudioTrack-JNI: Error -38 initializing AudioTrack
android.media.AudioTrack: Error code -20 when initializing AudioTrack
Reproduction steps
100% reproducible
Add the following to
media.exolist.json
to exoplayer demo appConnect the device(I have tested it only dolby enabled TV) to bluetooth speaker or headphone and play this content
Link to test content
{
"name": "DASH DD+ 5.1 clip",
"uri": "https://nsesh-s3.s3.ap-south-1.amazonaws.com/VOD/5ch_DASH/ChID_voices_51_256_ddp.mpd"
}
A full bug report captured from the device
bugreport
Version of ExoPlayer being used
2.11.0
Device(s) and version(s) of Android being used
TCL android TV, OS - 9.0
The text was updated successfully, but these errors were encountered: