Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets or sets the player's playback speed.
Namespace: Microsoft.Rtc.Collaboration.AudioVideo
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Property PlaybackSpeed As PlaybackSpeed
Get
Set
'Usage
Dim instance As Player
Dim value As PlaybackSpeed
value = instance.PlaybackSpeed
instance.PlaybackSpeed = value
public PlaybackSpeed PlaybackSpeed { get; set; }
Property Value
Type: Microsoft.Rtc.Collaboration.AudioVideo.PlaybackSpeed
Exceptions
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | throw if PlaybackSpeed enumeration is not valid. |
| ArgumentOutOfRangeException | Thrown if PlaybackSpeed has a value not in the PlaybackSpeed enumeration. |
Examples
The following example shows how to set Player's playback speed two times faster and then starts a Player
C# Setting Player's speed to twice times faster.
player.PlaybackSpeed = PlaybackSpeed.TwoTimes;
player.SetSource(source);
player.AttachFlow(audioVideoFlow);
player.Start();