Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
.gif)
| Previous | Next |
IWMSPlaylist.CurrentMediaInformation (Visual Basic .NET)
The CurrentMediaInformation property retrieves an IWMSActiveMedia object containing information about the active media element in the playlist.
Syntax
IWMSActiveMedia = Playlist .CurrentMediaInformation
Property Value
An IWMSActiveMedia object.
Remarks
This property is read-only. For more information, see the IWMSActiveMedia object.
Example Code
Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices
Private Sub GetMediaElement()
' Declare variables.
Dim Server As WMSServer
Dim Players As IWMSPlayers
Dim Player As IWMSPlayer
Dim Playlist As IWMSPlaylist
Dim ActiveMedia As IWMSActiveMedia
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 a pointer to the active media element.
ActiveMedia = Playlist.CurrentMediaInformation
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 |