Edit

Share via


Player.SetMode(PlayerMode) Method

Definition

Sets the player's mode.

public:
 void SetMode(Microsoft::Rtc::Collaboration::AudioVideo::PlayerMode mode);
public void SetMode (Microsoft.Rtc.Collaboration.AudioVideo.PlayerMode mode);
member this.SetMode : Microsoft.Rtc.Collaboration.AudioVideo.PlayerMode -> unit
Public Sub SetMode (mode As PlayerMode)

Parameters

mode
PlayerMode

The new mode.

Exceptions

Thrown when the mode parameter is not a value in the PlayerMode enumeration.

Examples

The following example sets a manual mode to a player and then starts a player.

C# Setting manual mode to a player.


player.SetMode(PlayerMode.Manual);



player.SetSource(source);
player.AttachFlow(audioVideoFlow);
player.Start();



Remarks

Setting the mode can affect the state of the player if it is already started.

Applies to