IWMSPlayer.RequestedPlaylist (Visual Basic .NET)

banner art

Previous Next

IWMSPlayer.RequestedPlaylist (Visual Basic .NET)

The RequestedPlaylist property retrieves an IWMSPlaylist object for the client.

Syntax

  IWMSPlaylist = IWMSPlayer.RequestedPlaylist

Property Value

An IWMSPlaylist object.

If this property fails, it returns an error number.

Number Description
0x8002000B The value does not exist.

Remarks

This property is read-only. This object exists for an on-demand publishing point only if a client explicitly requests a playlist or a presentation that uses a server-side playlist. This object never exists for clients that are accessing content from a broadcast publishing point.

Example Code

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

Private Sub GetPlaylist()

    ' 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 client connection.
    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

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