Package tvi.webrtc

Interface VideoEncoderFactory.VideoEncoderSelector

  • Enclosing interface:
    VideoEncoderFactory

    public static interface VideoEncoderFactory.VideoEncoderSelector
    • Method Detail

      • onCurrentEncoder

        void onCurrentEncoder​(VideoCodecInfo info)
        Called with the VideoCodecInfo of the currently used encoder.
      • onAvailableBitrate

        @Nullable
        VideoCodecInfo onAvailableBitrate​(int kbps)
        Called with the current available bitrate. Returns null if the encoder selector prefers to keep the current encoder or a VideoCodecInfo if a new encoder is preferred.
      • onEncoderBroken

        @Nullable
        VideoCodecInfo onEncoderBroken()
        Called when the currently used encoder signal itself as broken. Returns null if the encoder selector prefers to keep the current encoder or a VideoCodecInfo if a new encoder is preferred.