Player.Stop Method
Stops playing the media source.
Namespace: Microsoft.Rtc.Collaboration.AudioVideo
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Sub Stop
'Usage
Dim instance As Player
instance.Stop()
public void Stop()
Remarks
Stop resets the current playing position to the beginning of the media source.
Examples
The following example starts, pause, restarts (by calling Start) and stops the player.
C# Starting, pausing, restarting and stopping a Player.
player.SetSource(source);
player.AttachFlow(audioVideoFlow);
player.Start();
player.Pause();
player.Start();
player.Stop();