MediaSourceAudioInputNode.LoopCount Property

Definition

Gets or sets the loop count of the MediaSource input node.

public:
 property IReference<int> ^ LoopCount { IReference<int> ^ get(); void set(IReference<int> ^ value); };
IReference<int> LoopCount();

void LoopCount(IReference<int> value);
public System.Nullable<int> LoopCount { get; set; }
var iReference = mediaSourceAudioInputNode.loopCount;
mediaSourceAudioInputNode.loopCount = iReference;
Public Property LoopCount As Nullable(Of Integer)

Property Value

A reference to an integer representing the loop count.

Remarks

The LoopCount property specifies the number of times that the node will seek back to the StartTime, or the beginning of the media content if StartTime is not set, and replay the content of the file. This value does not include the initial playback of the file, so using the default value of 0 will result in the media content being played once, and setting the value to 5 will result in the content being played 6 times in total. Setting this value to null will cause the file to be looped indefinitely. To break out of the infinite loop, set LoopCount back to 0.

Applies to