IWMSPlaylistTransformAdmin Object (C#)
The IWMSPlaylistTransformAdmin object is exposed by the WMS Playlist Transform plug-in, an event plug-in that manipulates the behavior of playlist files.
The IWMSPlaylistTransformAdmin object exposes the following properties.
Property |
Description |
---|---|
InfiniteRepeat |
Specifies and retrieves a Boolean value indicating whether playlist files will automatically loop back to the beginning when they are finished. |
Shuffle |
Specifies and retrieves a Boolean value indicating whether content in a playlist is played in a random order. |
Example
The following example illustrates how to retrieve an IWMSPlaylistTransformAdmin object.
using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;
// Declare variables.
WMSServer Server;
IWMSOnDemandPublishingPoint ODPubPoint;
IWMSPlugin Plugin;
IWMSPlaylistTransformAdmin PlaylistTransformAdmin;
try {
// Create a new WMSServer object.
Server = new WMSServerClass();
// Add a new publishing point.
ODPubPoint = (IWMSOnDemandPublishingPoint)
Server.PublishingPoints.Add("NewPubPoint",
WMS_PUBLISHING_POINT_CATEGORY.
WMS_PUBLISHING_POINT_ON_DEMAND,
"c:\\wmpub\\wmroot");
// Retrieve the plug-in to be configured.
Plugin = ODPubPoint.EventHandlers[
"WMS Playlist Transform"];
// Retrieve the custom interface of the plug-in.
PlaylistTransformAdmin =
(IWMSPlaylistTransformAdmin)Plugin.CustomInterface;
}
catch (COMException comExc) {
// TODO: Handle COM exceptions.
}
catch (Exception e) {
// TODO: Handle exceptions.
}