IWMSActiveMedia Object (C#)

The IWMSActiveMedia object provides information about the currently active media element in a playlist. A media element can include both audio and video streams.

The IWMSActiveMedia object exposes the following properties and methods.

Property

Description

Duration

Retrieves the total length of the media element, in milliseconds.

Live

Retrieves a Boolean value that indicates whether the media element originates from a live source.

Streams

Retrieves an IWMSActiveStreamsIWMSActiveStreams Object (C#) that contains a collection of the media streams that make up the active media element.

TotalPackets

Retrieves the total number of data packets contained in the active media element.

Method

Description

GetProperty

Retrieves a specific property from the active media element.

Example

The following example illustrates how to retrieve an IWMSActiveMedia object.

See Also

Reference

IWMSActiveStream Object (C#)

IWMSPlayer Object (C#)

IWMSPlaylist Object (C#)

Concepts

Server Object Model (C#)