Class HWDecoderUtil


  • public class HWDecoderUtil
    extends Object
    Utility class that return the preferred hardware decoder from a list of known devices.
    • Constructor Detail

      • HWDecoderUtil

        public HWDecoderUtil()
    • Method Detail

      • getDecoderFromDevice

        public static HWDecoderUtil.Decoder getDecoderFromDevice()
        Returns:
        the hardware decoder known to work for the running device (Always return Dec.ALL after Android 4.3)
      • getAudioOutputFromDevice

        public static HWDecoderUtil.AudioOutput getAudioOutputFromDevice()
        Returns:
        the audio output known to work for the running device (By default, returns ALL, i.e AudioTrack + OpenSles)