Assembly: Microsoft.Rtc.Collaboration(in Microsoft.Rtc.Collaboration.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Class Player |
C# |
---|
public class Player |
Visual C++ |
---|
public ref class Player |
JavaScript |
---|
Microsoft.Rtc.Collaboration.AudioVideo.Player = function(); Type.createClass( 'Microsoft.Rtc.Collaboration.AudioVideo.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.
Inheritance Hierarchy
Microsoft.Rtc.Collaboration.AudioVideo . . :: . Player