Share via


IWMSPlaylist.IsStreamCued (Visual Basic .NET)

banner art

Previous Next

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.

Syntax

  Boolean =
  
  Playlist
  .IsStreamCued(
  
  pPlaylistEntry
  
  As IXMLDOMElement
  
  )

Parameters

pPlaylistEntry

[in] IXMLDOMElement object containing a playlist element.

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.

Remarks

This property is read-only.

Example Code

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 
    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










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