Package com.telnyx.webrtc.lib
Class VideoFileRenderer
java.lang.Object
com.telnyx.webrtc.lib.VideoFileRenderer
- All Implemented Interfaces:
VideoSink
Can be used to save the video frames to file.
-
Constructor Summary
ConstructorsConstructorDescriptionVideoFileRenderer(String outputFile, int outputFileWidth, int outputFileHeight, EglBase.Context sharedContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidonFrame(VideoFrame frame) Implementations should call frame.retain() if they need to hold a reference to the frame after this function returns.voidrelease()Release all resources.
-
Constructor Details
-
VideoFileRenderer
public VideoFileRenderer(String outputFile, int outputFileWidth, int outputFileHeight, EglBase.Context sharedContext) throws IOException - Throws:
IOException
-
-
Method Details
-
onFrame
Description copied from interface:VideoSinkImplementations 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. -
release
public void release()Release all resources. All already posted frames will be rendered first.
-