Player.SetMode(PlayerMode) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.