Package com.banuba.sdk.output
Class VideoOutput
java.lang.Object
com.banuba.sdk.player.VerifyCloseable
com.banuba.sdk.video.VideoFileRecorder
com.banuba.sdk.output.VideoOutput
- All Implemented Interfaces:
IOutput
,IVideoRecorder
,Closeable
,AutoCloseable
Render video to the offscreen surface and save it to a video file
-
Nested Class Summary
Nested classes/interfaces inherited from class com.banuba.sdk.video.VideoFileRecorder
VideoFileRecorder.IRecordingStateChangedListener
-
Field Summary
Fields inherited from class com.banuba.sdk.player.VerifyCloseable
mIsClosed, mTag
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close an instance and free resourcesvoid
present
(IRenderTargetPresentable renderTarget) Drawing the next frame and adding it to the video file.void
setContentMode
(ContentMode contentMode) Set new content mode.void
setWatermark
(WatermarkInfo watermarkInfo) Set watermark to apply on recorded video.Methods inherited from class com.banuba.sdk.video.VideoFileRecorder
frameAvailable, getRecordingState, getRenderingSurface, initializeMuxerAndSurface, pauseRecording, recordAudioFromMicrophone, resumeRecording, setRecordingStateChangedListener, startRecording, startRecording, stopRecording, stopRecordingAndWaitForFinish
Methods inherited from class com.banuba.sdk.player.VerifyCloseable
finalize
-
Constructor Details
-
VideoOutput
public VideoOutput()Create a new instance of the VideoOutput
-
-
Method Details
-
setContentMode
Set new content mode. By default the content mode is set to ASPECT_FILL- Parameters:
contentMode
- rendering logic when the size of the surface and size of the frame are different- See Also:
-
setWatermark
Set watermark to apply on recorded video.- Parameters:
watermarkInfo
- watermark image and information how to apply it
-
present
Drawing the next frame and adding it to the video file. -
close
public void close()Description copied from class:VideoFileRecorder
Close an instance and free resources- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classVideoFileRecorder
-