WatermarkTextureInput
class VideoKit.Inputs.WatermarkTextureInput : TextureInput
The WatermarkTextureInput
class provides a simple primitive for recording video frames from Texture
objects while applying a watermark image to the recording.
Creating the Texture Input
The crop texture input can be created with a recorder or a backing texture input:
With a Media Recorder
The watermark texture input can be created to send watermarked frames to an IMediaRecorder
.
With a Texture Input
The crop texture input can be created to send watermarked frames to a TextureInput
. This is useful when chaining multiple texture inputs.
Inspecting the Frame Size
Refer to the Inspecting the Frame Size section of the TextureInput
class for more information.
Specifying the Watermark Image
The watermark can be any Texture
object. If it is null
, then no watermark is rendered.
Specifying the Watermark Rectangle
The watermark position and size are specified by the rect
field. The rect is always initialized to the frame size of the recorder, thereby filling the screen with the watermark.
Committing Video Frames
Refer to the Committing Video Frames section of the TextureInput
class for more information.
Disposing the Recorder Input
Refer to the Disposing the Recorder Input section of the TextureInput
class for more information.
Last updated