Sets the player's mode.

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

Syntax

Visual Basic (Declaration)
Public 
Sub 
SetMode ( _
	
mode 
As 

PlayerMode _
)
C#
public 
void 
SetMode(
	

PlayerMode 
mode
)
Visual C++
public:
void 
SetMode(
	

PlayerMode 
mode
)
JavaScript
function 
setMode(
mode);

Remarks

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

Exceptions

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

See Also