Package tvi.webrtc

Class HardwareVideoDecoderFactory

  • All Implemented Interfaces:
    VideoDecoderFactory

    public class HardwareVideoDecoderFactory
    extends java.lang.Object
    Factory for Android hardware VideoDecoders.
    • Constructor Detail

      • HardwareVideoDecoderFactory

        @Deprecated
        public HardwareVideoDecoderFactory()
        Deprecated.
        Creates a HardwareVideoDecoderFactory that does not use surface textures.
      • HardwareVideoDecoderFactory

        public HardwareVideoDecoderFactory​(@Nullable
                                           EglBase.Context sharedContext)
        Creates a HardwareVideoDecoderFactory that supports surface texture rendering.
        Parameters:
        sharedContext - The textures generated will be accessible from this context. May be null, this disables texture support.
      • HardwareVideoDecoderFactory

        public HardwareVideoDecoderFactory​(@Nullable
                                           EglBase.Context sharedContext,
                                           @Nullable
                                           Predicate<android.media.MediaCodecInfo> codecAllowedPredicate)
        Creates a HardwareVideoDecoderFactory that supports surface texture rendering.
        Parameters:
        sharedContext - The textures generated will be accessible from this context. May be null, this disables texture support.
        codecAllowedPredicate - predicate to filter codecs. It is combined with the default predicate that only allows hardware codecs.