Package tvi.webrtc
Interface VideoEncoderFactory.VideoEncoderSelector
-
- Enclosing interface:
- VideoEncoderFactory
public static interface VideoEncoderFactory.VideoEncoderSelector
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VideoCodecInfo
onAvailableBitrate(int kbps)
Called with the current available bitrate.void
onCurrentEncoder(VideoCodecInfo info)
Called with the VideoCodecInfo of the currently used encoder.VideoCodecInfo
onEncoderBroken()
Called when the currently used encoder signal itself as broken.
-
-
-
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.
-
-