Share via


Player.Start Method

Starts and resume playing the attached media source.

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

Syntax

'Declaration
Public Sub Start
'Usage
Dim instance As Player

instance.Start()
public void Start()

Exceptions

Exception Condition
InvalidOperationException

Thrown when the media source is not set, is not prepared, cannot be used, is closed or is being used as unbuffered by another Player. Thrown also when the player is already started.

OperationFailureException

Thrown when the operation failed, such as for an overloaded system.

InvalidOperationException

Thrown when the operation is invalid for the current object state.

InvalidOperationException

Thrown when the operation is invalid because Player is attached to more than one AudioVideoFlow and is using an unbuffered media source.

Examples

The following example starts a player.

C# Starting a Player.

 

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


See Also

Reference

Player Class

Player Members

Microsoft.Rtc.Collaboration.AudioVideo Namespace