Package tvi.webrtc
Class VideoDecoderFallback
- java.lang.Object
-
- tvi.webrtc.WrappedNativeVideoDecoder
-
- tvi.webrtc.VideoDecoderFallback
-
- All Implemented Interfaces:
VideoDecoder
public class VideoDecoderFallback extends WrappedNativeVideoDecoder
A combined video decoder that falls back on a secondary decoder if the primary decoder fails.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface tvi.webrtc.VideoDecoder
VideoDecoder.Callback, VideoDecoder.DecodeInfo, VideoDecoder.Settings
-
-
Constructor Summary
Constructors Constructor Description VideoDecoderFallback(VideoDecoder fallback, VideoDecoder primary)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
createNativeVideoDecoder()
The decoder implementation backing this interface is either 1) a Java decoder (e.g., an Android platform decoder), or alternatively 2) a native decoder (e.g., a software decoder or a C++ decoder adapter).-
Methods inherited from class tvi.webrtc.WrappedNativeVideoDecoder
decode, getImplementationName, initDecode, release
-
-
-
-
Constructor Detail
-
VideoDecoderFallback
public VideoDecoderFallback(VideoDecoder fallback, VideoDecoder primary)
-
-
Method Detail
-
createNativeVideoDecoder
public long createNativeVideoDecoder()
Description copied from interface:VideoDecoder
The decoder implementation backing this interface is either 1) a Java decoder (e.g., an Android platform decoder), or alternatively 2) a native decoder (e.g., a software decoder or a C++ decoder adapter). For case 1), createNativeVideoDecoder() should return zero. In this case, we expect the native library to call the decoder through JNI using the Java interface declared below. For case 2), createNativeVideoDecoder() should return a non-zero value. In this case, we expect the native library to treat the returned value as a raw pointer of type webrtc::VideoDecoder* (ownership is transferred to the caller). The native library should then directly call the webrtc::VideoDecoder interface without going through JNI. All calls to the Java interface methods declared below should thus throw an UnsupportedOperationException.- Specified by:
createNativeVideoDecoder
in interfaceVideoDecoder
- Specified by:
createNativeVideoDecoder
in classWrappedNativeVideoDecoder
-
-