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

ExoPlayer volume is reset after a phone call #3923

Closed
mr-thierry opened this issue Mar 1, 2018 · 12 comments
Closed

ExoPlayer volume is reset after a phone call #3923

mr-thierry opened this issue Mar 1, 2018 · 12 comments
Assignees

Comments

@mr-thierry
Copy link

I'm using ExoPlayer 2.7.0 on my Nexus 6P with Android 8.1

I'm using SimpleExoPlayer to play a video. I set the volume to zero to mute it. If I receive a phone call while the video is playing, when the call is ended, the volume is back to 100%.

Note that SimpleExoPlayer still says that the volume is zero, but the sound is heard.

@erdemguven erdemguven added the bug label Mar 2, 2018
@erdemguven erdemguven self-assigned this Mar 2, 2018
@ojw28 ojw28 added need more info and removed bug labels Apr 22, 2018
@ojw28
Copy link
Contributor

ojw28 commented Apr 22, 2018

Please can you provide some more concrete reproduction steps, or ideally source code for a simple demo app that reproduces the issue? It's difficult to know what's actually happening from the description provided.

@mr-thierry
Copy link
Author

Hi 'ojw28'
I have created a GitHub project to show the issue. See https://github.com/thierryd/ExoPlayerSoundBug

I hope this help! Keep me informed if you have any question / issue / stuff I need to change. :)

@ojw28
Copy link
Contributor

ojw28 commented Apr 28, 2018

Thanks! I'm able to reproduce the issue. I suspect it's a bug in the underlying platform, which isn't something we can do much about, unfortunately, except report it so that it gets fixed in future releases. I'll check whether it reproduces on Android P, and file an issue on the Audio team if it does.

@ojw28
Copy link
Contributor

ojw28 commented May 1, 2018

Confirmed this is still reproducible on Android P. Filed a bug with the Android media team [Internal ref: b/78930229]

@komissarovdenis
Copy link

@ojw28 hi, how about bug status? (Couldn't check it by myself, because it's internal one and hidden).
Thank you.

@ojw28
Copy link
Contributor

ojw28 commented Jun 26, 2018

No update I'm afraid.

@oxied

This comment has been minimized.

@ojw28 ojw28 assigned andrewlewis and unassigned ojw28 Aug 14, 2018
@RsnRohith
Copy link

Hi @ojw28 , still experiencing this issue. Any update on this ?

@ojw28
Copy link
Contributor

ojw28 commented Oct 10, 2018

As noted above, the issue is in the underlying platform, and isn't something we can do much about in ExoPlayer. We have a bug filed on the platform team, who will hopefully look at it for Android Q.

@AndroidDeveloperLB
Copy link

AndroidDeveloperLB commented Feb 27, 2019

I've noticed such an issue too. Using v2.9.5 of ExoPlayer, and noticed on Pixel 2 with Android P. The bug is very similar: play a video that is muted. Have an outgoing call. End call. Go back to app which should call playWhenReady = true.
Is there a workaround? Does it occur on all Android versions and devices?
I think this should work, that each time

        player!!.volume = 1f
        player!!.volume = 0f
        player!!.playWhenReady = true

It seems to work, but for a split of a second I can still hear the sound of the video... :(

@andrewlewis
Copy link
Collaborator

Closing as this should be fixed in the next Android release. Unfortunately I don't think there's a workaround.

@AndroidDeveloperLB
Copy link

@andrewlewis Can you please show the issue on the issue tracker?
You mean it will be fixed only on the next version, Android Q ?
Are you sure there is no workaround? Can't it re-initialize itself with the volume set to 0 .

@google google locked and limited conversation to collaborators Aug 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants