IWMSPlaylistTransformAdmin.Shuffle (Visual Basic .NET)
.gif)
| Previous | Next |
IWMSPlaylistTransformAdmin.Shuffle (Visual Basic .NET)
The Shuffle property specifies and retrieves a Boolean value that indicates whether content in playlist files will be played in a random order.
Syntax
IWMSPlaylistTransformAdmin .Shuffle = Boolean Boolean = IWMSPlaylistTransformAdmin.Shuffle
Property Value
A Boolean value 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 Code
Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices
Private Sub ShufflePlaylist()
' Declare variables.
Dim Server As WMSServer
Dim ODPubPoint As IWMSOnDemandPublishingPoint
Dim Plugin As IWMSPlugin
Dim PlaylistTransformAdmin As IWMSPlaylistTransformAdmin
Try
' Create the WMSServer object.
Server = New WMSServer()
' Add a new publishing point.
ODPubPoint = 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.Item("WMS Playlist Transform")
' Retrieve the custom interface of the plug-in.
PlaylistTransformAdmin = Plugin.CustomInterface
' Specify a Boolean value indicating whether content in
' playlist files on this publishing point plays randomly.
PlaylistTransformAdmin.Shuffle = False
Catch excCom As COMException
' TODO: Handle COM exceptions.
Catch exc As Exception
' TODO: Handle errors.
Finally
' TODO: Clean-up code goes here.
End Try
End Sub
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 |