Package com.twilio.video
Class VideoSink
- java.lang.Object
-
- com.twilio.video.VideoSink
-
- All Implemented Interfaces:
VideoSink
public class VideoSink extends java.lang.Object implements VideoSink
VideoSink implements webrtc.VideoSink interface. Currently it is used for detecting changes in captured frame's parameters such as changes in width, height, and rotation. When these changes are detected, it notifies the VideoCapturerObserver.
-
-
Constructor Summary
Constructors Constructor Description VideoSink(VideoCapturerObserver videoCapturerObserver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onFrame(VideoFrame videoFrame)
Implementations should call frame.retain() if they need to hold a reference to the frame after this function returns.void
resetVideoCapturerObserver()
-
-
-
Constructor Detail
-
VideoSink
public VideoSink(@NotNull VideoCapturerObserver videoCapturerObserver)
-
-
Method Detail
-
resetVideoCapturerObserver
public void resetVideoCapturerObserver()
-
onFrame
public void onFrame(VideoFrame videoFrame)
Description copied from interface:VideoSink
Implementations should call frame.retain() if they need to hold a reference to the frame after this function returns. Each call to retain() should be followed by a call to frame.release() when the reference is no longer needed.
-
-