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.
The RequestedPlaylist property retrieves the client's requested playlist object.
IWMSPlaylist = OutgoingDistributionConnection.RequestedPlaylist;
Property Value
An IWMSPlaylist object.
Remarks
This property is read-only. This object exists for an on-demand publishing point only 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
using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;
// Declare variables.
WMSServer Server;
IWMSOutgoingDistributionConnections Connections;
IWMSOutgoingDistributionConnection Connection;
IWMSPlaylist Playlist;
try {
// Create a new WMSServer object.
Server = new WMSServerClass();
// Retrieve the IWMSOutgoingDistributionConnections object.
Connections = Server.OutgoingDistributionConnections;
// Retrieve information about each distribution connection.
for (int i = 0; i < Connections.Count; i++)
{
Connection = Connections[i];
// Retrieve the playlist requested by the client
// if one exists.
Playlist = Connection.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.