-
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
Crash when using the GvrAudioProcessor with mono audio channel video #2710
Comments
I'm following up to find out whether GVR could handle mono audio. I'm not sure that just passing through the the input is the best option, as the audio wouldn't respond to head rotation. If you only need to handle mono input, as a temporary workaround you could try duplicating the channel to make it stereo. One way to do that is to make |
There's work underway to add support for handling mono input in the GVR audio SDK. I don't have an ETA yet but I'll update this issue when the functionality is available via |
Thanks for the update! |
Issue: #2710 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=159082518
Issue: #2710 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=159082518
Issue description
Videos with one audio channel cannot be played when the player uses the GvrAudioProcessor. An exception (UnhandledFormatException) is thrown from the GvrAudioProcessor in the configure method.
Reproduction steps
Override the buildAudioProcessors method in SimpleExoPlayer.
Setup the player with the mono audio channel video and start playback.
Link to test content
Every video with only one audio channel
Version of ExoPlayer being used
ExoPlayer 2.3.1
Device(s) and version(s) of Android being used
Nexus 5X - Android 7.1.2
A full bug report captured from the device
Partial fix
I came up with a solution but I don't know if this is the right way to do it. (https://gist.github.com/Oleur/b2770cf7c225bf5c0d3861925d6fb576). It would be nice to pass through the spatialization if the audio format is not supported by the GvrAudioSurround and process the audio normaly.
The text was updated successfully, but these errors were encountered: