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
,java.io.Closeable
,java.lang.AutoCloseable
public class VideoOutput extends VideoFileRecorder implements IOutput
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 Constructor Description VideoOutput()
Create a new instance of the VideoOutput
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
-
-
-
-
Method Detail
-
setContentMode
public void setContentMode(ContentMode contentMode)
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:
ContentMode
-
setWatermark
public void setWatermark(WatermarkInfo watermarkInfo)
Set watermark to apply on recorded video.- Parameters:
watermarkInfo
- watermark image and information how to apply it
-
present
public void present(IRenderTargetPresentable renderTarget)
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 interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classVideoFileRecorder
-
-