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

Provide callback that's invoked when video tunneling is enabled/disabled #2518

Closed
directable opened this issue Feb 28, 2017 · 2 comments
Closed

Comments

@directable
Copy link

directable commented Feb 28, 2017

Was curious if there is a mechanism to determine if tunneling was succesfully enabled when setting via setTunnelingAudioSessionId(int tunnelingAudioSessionId)

Also are there any plans to add to demo ?

@ojw28
Copy link
Contributor

ojw28 commented Mar 1, 2017

I don't think this information is exposed currently, but it should be fairly easy to expose it. It would necessarily be asynchronous though (e.g. a callback method invoked each time tunneling is enabled or disabled). Marking as an enhancement to consider exposing this information.

In the meantime, if you're just curious as to whether it's being enabled, you can add a log line here that prints whether enableTunneling is true or false.

@ojw28 ojw28 changed the title Question: is there any way to determine if tunneling is actually in use after being enabled? Provide callback that's invoked when video tunneling is enabled/disabled Mar 1, 2017
@ojw28 ojw28 assigned tonihei and unassigned ojw28 Jul 12, 2022
rohitjoins pushed a commit to androidx/media that referenced this issue Jul 13, 2022
rohitjoins pushed a commit that referenced this issue Jul 13, 2022
Issue: #2518
PiperOrigin-RevId: 460482615
@tonihei
Copy link
Collaborator

tonihei commented Jul 15, 2022

We added a method ExoPlayer.isTunnelingEnabled to query the tunneling state of the currently selected tracks. You can listen to Player.Listener.onTracksChanged to get notified when tracks (and potentially this value) change.

@tonihei tonihei closed this as completed Jul 15, 2022
@google google locked and limited conversation to collaborators Sep 14, 2022
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

3 participants