IWMSPlaylistTransformAdmin Object (Visual Basic .NET)

banner art

Previous Next

IWMSPlaylistTransformAdmin Object (Visual Basic .NET)

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 Code

The following example illustrates how to retrieve an IWMSPlaylistTransformAdmin object.

Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices

Private Sub RetrieveObj()

    ' 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

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

See Also

Previous Next