Dela via


Player Class

The Player class represents an entity capable of playing media.

Inheritance Hierarchy

System.Object
  Microsoft.Rtc.Collaboration.AudioVideo.Player

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

Syntax

'Declaration
Public Class Player
'Usage
Dim instance As Player
public class Player

Remarks

The input to a player comes from a media source, which is an instance of a subclass of the MediaSource class. The output from a player goes to one or more AudioVideoFlow instances. A player can attach any AudioVideoFlow instance.

The Player class provides a simple, scalable way to play a single prompt to multiple AudioVideoFlow instances. A player can be thought of as a pointer to the media source, which determines the current play position in the media.

If multiple players are attached to a media source, a single instance of media will have multiple playing points. This is useful when a single prompt is played to independent AudioVideoFlow instances from the prompt beginning (playing a welcome prompt for an automated server, for example).

A player with a single media source and multiple AudioVideoFlow instances can play a prompt with a single play position. All attached AudioVideoFlow instances receive exactly the same prompt at same time. This is useful for Music on Hold.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Player Members

Microsoft.Rtc.Collaboration.AudioVideo Namespace