Remove deprecated method onEncodingBitrate.
Bug: webrtc:11341 Change-Id: Id299d8000fc8e24725aba3e5b261fdd87af2aa86 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/169544 Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Commit-Queue: Mirta Dvornicic <mirtad@webrtc.org> Cr-Commit-Position: refs/heads/master@{#30659}
This commit is contained in:

committed by
Commit Bot

parent
109e23c9ce
commit
b03422a737
@ -18,28 +18,11 @@ public interface VideoEncoderFactory {
|
||||
/** Called with the VideoCodecInfo of the currently used encoder. */
|
||||
@CalledByNative("VideoEncoderSelector") void onCurrentEncoder(VideoCodecInfo info);
|
||||
|
||||
/**
|
||||
* Called with the current encoding bitrate. Returns null if the encoder selector prefers to
|
||||
* keep the current encoder or a VideoCodecInfo if a new encoder is preferred.
|
||||
*
|
||||
* <p>TODO(bugs.webrtc.org/11341): Delete onEncodingBitrate and remove the default
|
||||
* implementation for onAvailableBitrate once downstream project is updated.
|
||||
*/
|
||||
@Deprecated
|
||||
@Nullable
|
||||
default VideoCodecInfo onEncodingBitrate(int kbps) {
|
||||
throw new UnsupportedOperationException("Not implemented.");
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
@Nullable
|
||||
@CalledByNative("VideoEncoderSelector")
|
||||
default VideoCodecInfo onAvailableBitrate(int kbps) {
|
||||
return onEncodingBitrate(kbps);
|
||||
}
|
||||
@Nullable @CalledByNative("VideoEncoderSelector") VideoCodecInfo onAvailableBitrate(int kbps);
|
||||
|
||||
/**
|
||||
* Called when the currently used encoder signal itself as broken. Returns null if the encoder
|
||||
|
Reference in New Issue
Block a user