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.
.gif)
| Previous | Next |
IWMSPlayer.RequestedPlaylist (C#)
The RequestedPlaylist property retrieves an IWMSPlaylist object for the client.
Syntax
IWMSPlaylist = IWMSPlayer.RequestedPlaylist;
Property Value
An IWMSPlaylist object.
If this property fails, it throws an exception.
| Number | Meaning |
| 0x8002000B | Indicates the value does not exist. |
Remarks
This property is read-only. This object only exists for an on-demand publishing point if a client explicitly requests a playlist or a presentation that uses a server-side playlist. This object never exists for clients accessing content from a broadcast publishing point.
Example Code
using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;
// Declare variables.
WMSServer Server;
IWMSPlayers Players;
IWMSPlayer Player;
IWMSPlaylist Playlist;
try {
// Create a new WMSServer object.
Server = new WMSServerClass();
// Retrieve the IWMSPlayers object.
Players = Server.Players;
// Retrieve information about each client connection.
for (int i = 0; i < Players.Count; i++)
{
Player = Players[i];
// Retrieve the playlist that is requested
// by the client, if one exists.
Playlist = Player.RequestedPlaylist;
}
}
catch (COMException comExc) {
// TODO: Handle COM exceptions.
}
catch (Exception e) {
// TODO: Handle exceptions.
}
Requirements
Reference: Add a reference to Microsoft.WindowsMediaServices
Namespace: Microsoft.WindowsMediaServices.Interop
Assembly: Microsoft.WindowsMediaServices.dll
Library: WMSServerTypeLib.dll
Platform: Windows Server 2003 family, Windows Server 2008 family.
See Also
| Previous | Next |