Share via


IWMSPlaylist Object (Visual Basic .NET)

banner art

Previous Next

IWMSPlaylist Object (Visual Basic .NET)

The IWMSPlaylist object is used to manage a playlist. The IWMSPlaylist object exposes the following properties and methods.

Property Description
CallerEntry Retrieves the current caller entry.
CurrentMediaInformation Retrieves an IWMSActiveMedia object containing information about the active media element in the playlist.
CurrentPlaylistEntry Specifies and retrieves the active playlist element.
ElapsedSimpleTime Retrieves the simple duration of the active playlist element.
IsStreamCued Retrieves a Boolean value indicating whether a specific playlist element has been initialized and is ready to stream.
NestedPlaylist Retrieves a nested playlist object.
Method Description
CueStream Prepares the next stream in the queue.
FireEvent Sends the specified event to the playlist.
UncueStream Specifies that content previously prepared for streaming is uncued.

Example Code

The following example illustrates how to retrieve an IWMSPlaylist object.

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

Private Sub RetrieveObj()

    ' Declare variables.
    Dim Server As WMSServer
    Dim Players As IWMSPlayers
    Dim Player As IWMSPlayer
    Dim Playlist As IWMSPlaylist

Try
    ' Create the WMSServer object.
    Server = New WMSServer()

    ' Retrieve the IWMSPlayers object.
    Players = Server.Players

    ' Retrieve information about each requested playlist.
    For Each Player In Players
        ' Retrieve the playlist requested by the client
        ' if one exists.
        Playlist = Player.RequestedPlaylist
    Next

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