IWMSPlaylistTransformAdmin.InfiniteRepeat (Visual Basic .NET)

banner art

Previous Next

IWMSPlaylistTransformAdmin.InfiniteRepeat (Visual Basic .NET)

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 = Boolean
Boolean = IWMSPlaylistTransformAdmin.InfiniteRepeat

Property Value

A Boolean value 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

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

Private Sub LoopPlaylist()

    ' 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 playlist
    ' files on this publishing point automatically repeat.
    PlaylistTransformAdmin.InfiniteRepeat = True

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