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 Details

    • getInstance

      public static AudioCapabilitiesManager getInstance(Context context)
    • getAudioCapabilities

      public com.google.android.exoplayer2.audio.AudioCapabilities getAudioCapabilities()
    • onAudioCapabilitiesChanged

      public void onAudioCapabilitiesChanged(com.google.android.exoplayer2.audio.AudioCapabilities audioCapabilities)
      Specified by:
      onAudioCapabilitiesChanged in interface com.google.android.exoplayer2.audio.AudioCapabilitiesReceiver.Listener