Dela via


MediaStreamSample.KeyFrame Property

Definition

Gets or sets a value that indicates the MediaStreamSample contains a keyframe.

public:
 property bool KeyFrame { bool get(); void set(bool value); };
bool KeyFrame();

void KeyFrame(bool value);
public bool KeyFrame { get; set; }
var boolean = mediaStreamSample.keyFrame;
mediaStreamSample.keyFrame = boolean;
Public Property KeyFrame As Boolean

Property Value

Boolean

bool

true if the MediaStreamSample contains a frame that can be decoded independently from other frames; otherwise, false. The default value is false.

Remarks

This flag should be set to true when the MediaStreamSample contains an audio or video frame which can be independently decoded from other frames. Such frames are sometimes referred to as cleanpoints, I-frames, IDR-frames or key frames.

Applies to