Interface IEncoder
Interface to implement to create an encoder.
Namespace: UnityEditor.Recorder.Encoder
Assembly: solution.dll
Syntax
public interface IEncoder
Properties
Name | Description |
---|---|
GetVideoInputPath | Returns the input video path for the encoder. Based on the returned value, the appropriate addVideoFrame function will be invoked. |
Methods
Name | Description |
---|---|
AddAudioFrame(NativeArray<float>) | Encodes an array of audio values and adds it to the audio stream. |
AddVideoFrame(NativeArray<byte>, MediaTime) | Encodes an array of bytes and adds it to the video stream. |
AddVideoFrame(RenderTexture, MediaTime) | Encodes a Texture and adds it to the video stream. |
CloseStream() | Closes the stream of audio and video frames. |
OpenStream(IEncoderSettings, RecordingContext) | Opens the stream to add the audio and video frames to. |