Share via


IWMSPlaylist.get_IsStreamCued (C#)

banner art

Previous Next

IWMSPlaylist.get_IsStreamCued (C#)

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

Syntax

  bool =
  
  Playlist
  .get_IsStreamCued(
  
  IXMLDOMElement
    pPlaylistEntry
  
  );

Parameters

pPlaylistEntry

[in] IXMLDOMElement containing a playlist element.

Property Value

A bool indicating whether the element has been initialized.

If this property fails, it throws an exception.

Number Meaning
0x80070057 Indicates that pPlaylistEntry is not a node in the playlist.

Remarks

This property is read-only.

Example Code

using interop_msxml;
using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;

// Declare variables.
WMSServer          Server;
IWMSPlayers        Players;
IWMSPlayer         Player;
IWMSPlaylist       Playlist;
IXMLDOMElement     PlaylistEntry;

bool               bVal;

try {
    // Create a new WMSServer object.
    Server = new WMSServerClass();

    // Retrieve the IWMSPlayers object.
    Players = Server.Players;

    // Retrieve information about each requested playlist.
    for (int i = 0; i < Players.Count; i++)
    {
        Player = Players[i];

        // Retrieve the playlist that was 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.get_CallerEntry(PlaylistEntry);

        // Retrieve information about each playlist entry.
        while (PlaylistEntry != null)
        {
            // Retrieve a Boolean value indicating whether this
            // playlist entry is cued.
            bVal = Playlist.get_IsStreamCued(PlaylistEntry);
            PlaylistEntry = Playlist.get_CallerEntry(PlaylistEntry);
        }
    }







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