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 Shuffle property specifies and retrieves a Boolean value that indicates whether content in playlist files will be played in a random order.
IWMSPlaylistTransformAdmin.Shuffle = bool;bool = IWMSPlaylistTransformAdmin.Shuffle;
Property Value
A bool indicating whether content in playlist files will be played in a random order.
If this property fails, it throws an exception.
Number |
Description |
|---|---|
0x80004005 |
The server cannot find the WMS Playlist Transform plug-in. |
Example
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;
// Specify a Boolean value indicating whether content in
// playlist files on this publishing point plays randomly.
PlaylistTransformAdmin.Shuffle = false;
}
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.