Share via


IWMSPlaylist.get_CallerEntry (C#)

banner art

Previous Next

IWMSPlaylist.get_CallerEntry (C#)

The CallerEntry property retrieves the playlist element that was pushed onto the playlist's call stack immediately before the specified playlist element.

Syntax

  IXMLDOMElement =
  
  Playlist
  .get_CallerEntry(
  
  IXMLDOMElement
    pPlaylistEntry
  
  );

Parameters

pPlaylistEntry

[in] IXMLDOMElement containing a playlist entry object.

Property Value

An IXMLDOMElement object.

Remarks

This property is read-only. A value of NULL is returned if a playlist element is specified that is not currently active or if it was the first playlist element that was pushed onto the call stack.

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