Package com.castlabs.android.player
Class AudioCapabilitiesManager
java.lang.Object
com.castlabs.android.player.AudioCapabilitiesManager
- All Implemented Interfaces:
com.google.android.exoplayer2.audio.AudioCapabilitiesReceiver.Listener
public class AudioCapabilitiesManager
extends Object
implements com.google.android.exoplayer2.audio.AudioCapabilitiesReceiver.Listener
Common access point to store and keep updated device audio capabilities.
Especially useful for Android TV or Nexus Player where HDMI capabilities from one TV
to another may change using the same player.
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.android.exoplayer2.audio.AudioCapabilities
static AudioCapabilitiesManager
getInstance
(Context context) void
onAudioCapabilitiesChanged
(com.google.android.exoplayer2.audio.AudioCapabilities audioCapabilities)
-
Method Details
-
getInstance
-
getAudioCapabilities
public com.google.android.exoplayer2.audio.AudioCapabilities getAudioCapabilities() -
onAudioCapabilitiesChanged
public void onAudioCapabilitiesChanged(com.google.android.exoplayer2.audio.AudioCapabilities audioCapabilities) - Specified by:
onAudioCapabilitiesChanged
in interfacecom.google.android.exoplayer2.audio.AudioCapabilitiesReceiver.Listener
-