PlayerMode Enumeration

The current mode of the player.

Namespace:  Microsoft.Rtc.Collaboration.AudioVideo
Assembly:  Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)

Syntax

'Declaration
Public Enumeration PlayerMode
'Usage
Dim instance As PlayerMode
public enum PlayerMode

Members

Member name Description
Automatic Automatic mode.

The mode in which the player starts and stops automatically, based on the status of the attached AudioVideoFlow instance.

The player is started by calling the Start() method, but it will not begin playing until at least one of the attached AudioVideoFlow instances is in the Active state.

The player will automatically stop whenever there's no active AudioVideoFlow attached to it.

In an outbound call to an endpoint which streams early media, AudioVideoFlow may become Active before the callee accepts the call. In this case, as a Player in Automatic mode starts playing as soon as there is an active AudioVideoFlow, a clipping may occur. To avoid this situation, it is recommended that you use Manual mode and wait until the call is established.

Manual Manual mode.

The mode in which the player behaves independently of the attached AudioVideoFlow instance.

If Start() is called before an AudioVideoFlow is attached or if the attached AudioVideoFlow is not in the Active state, the player updates its playing index appropriately in real time.

See Also

Reference

Microsoft.Rtc.Collaboration.AudioVideo Namespace