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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close an instance and free resourcesvoidpresent(IRenderTargetPresentable renderTarget) Drawing the next frame and adding it to the video file.voidsetContentMode(ContentMode contentMode) Set new content mode.voidsetWatermark(WatermarkInfo watermarkInfo) Set watermark to apply on recorded video.voidstart()Start using output by thePlayervoidstop()Stop using output by thePlayerMethods inherited from class com.banuba.sdk.video.VideoFileRecorder
frameAvailable, getRecordingState, getRenderingSurface, initializeMuxerAndSurface, pauseRecording, recordAudioFromMicrophone, resumeRecording, setRecordingStateChangedListener, startRecording, startRecording, stopRecording, stopRecordingAndWaitForFinishMethods 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
-
start
public void start()Description copied from interface:IOutputStart using output by thePlayer -
stop
public void stop()Description copied from interface:IOutputStop using output by thePlayer -
present
Drawing the next frame and adding it to the video file. -
close
public void close()Description copied from class:VideoFileRecorderClose an instance and free resources- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classVideoFileRecorder
-