Package com.twilio.video
Class VideoSink
java.lang.Object
com.twilio.video.VideoSink
- All Implemented Interfaces:
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onFrame
(VideoFrame videoFrame) Implementations should call frame.retain() if they need to hold a reference to the frame after this function returns.void
-
Constructor Details
-
VideoSink
-
-
Method Details
-
resetVideoCapturerObserver
public void resetVideoCapturerObserver() -
onFrame
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.
-