IWMSPlayer.WrapperPlaylist (C#)
.gif)
| Previous | Next |
IWMSPlayer.WrapperPlaylist (C#)
The WrapperPlaylist property retrieves a wrapper playlist object.
Syntax
IWMSPlaylist = IWMSPlayer.WrapperPlaylist;
Property Value
An IWMSPlaylist object.
Remarks
This property is read-only. You can use the IWMSPublishingPoint.WrapperPath method to retrieve the path to the playlist file.
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 wrapper playlist that was used
// by the client, if one exists.
Playlist = Player.WrapperPlaylist;
}
}
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 |