IWMSPlaylist.IsStreamCued (Visual Basic .NET)

The IsStreamCued property retrieves a Boolean value indicating whether a specific playlist element has been initialized and is ready to stream.

Boolean = Playlist.IsStreamCued(
  pPlaylistEntry As IXMLDOMElement
)

Property Value

A Boolean indicating whether the element has been initialized.

If this property fails, it returns an error number.

Number

Description

0x80070057

pPlaylistEntry is not a node in the playlist.

Arguments

pPlaylistEntry

[in] IXMLDOMElementIXMLDOMElement Object (Visual Basic .NET) containing a playlist element.

Remarks

This property is read-only.

Example

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

Private Sub IsEntryCued()

    ' Declare variables.
    Dim Server As WMSServer
    Dim Players As IWMSPlayers
    Dim Player As IWMSPlayer
    Dim Playlist As IWMSPlaylist
    Dim PlaylistEntry As MSXML.IXMLDOMElement
    Dim bVal As Boolean

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

        ' Retrieve information about the current playlist entry.
        PlaylistEntry = Playlist.CurrentPlaylistEntry

        ' Retrieve the next playlist entry.
        PlaylistEntry = Playlist.CallerEntry(PlaylistEntry)

        ' Retrieve information about each playlist entry.
        While Not PlaylistEntry Is Nothing

            ' Retrieve a Boolean value indicating whether this
            ' playlist entry is cued.
            bVal = Playlist.IsStreamCued(PlaylistEntry)
            PlaylistEntry = Playlist.CallerEntry(PlaylistEntry)

        End While

    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

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

Reference

IWMSPlaylist Object (Visual Basic .NET)