GIFRecorder
class NatML.Recorders.GIFRecorder : IMediaRecorder
The GIFRecorder
records animated GIF images that loop forever.
Creating the Recorder
The width
and height
parameters determine the image dimensions in pixels. The frameDuration
parameter determines the amount of time each frame will display for in seconds; a good value to start with is 0.1 seconds.
Image Size
Refer to the Frame Size section of the IMediaRecorder
interface for more information.
Committing Frames
Refer to the Committing Video Frames section of the IMediaRecorder
interface for more information.
The GIFRecorder
ignores all timestamps on committed frames. This is because the frameDuration
parameter overrides these timestamps.
The GIFRecorder
does not support committing audio frames. Committing audio frames is a null operation.
Finishing Recording
Refer to the Finishing Recording section of the IMediaRecorder
interface for more information.
Last updated