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 |
IWMSPlaylistTransformAdmin.InfiniteRepeat (C#)
The InfiniteRepeat property specifies and retrieves a Boolean value that indicates whether playlist files will automatically loop back to the beginning when they are finished.
Syntax
IWMSPlaylistTransformAdmin .InfiniteRepeat = bool; bool = IWMSPlaylistTransformAdmin.InfiniteRepeat;
Property Value
A bool indicating whether playlist files loop.
If this property fails, it throws an exception.
| Number | Description |
| 0x80004005 | The server cannot find the WMS Playlist Transform plug-in. |
| 0x80040007 | The server cannot find the properties of the WMS Playlist Transform plug-in. |
Example Code
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 playlist
// files on this publishing point automatically repeat.
PlaylistTransformAdmin.InfiniteRepeat = true;
}
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 |