IMFMediaSession interface (mfidl.h)

Provides playback controls for protected and unprotected content. The Media Session and the protected media path (PMP) session objects expose this interface. This interface is the primary interface that applications use to control the Media Foundation pipeline.

To obtain a pointer to this interface, call MFCreateMediaSession or MFCreatePMPMediaSession.

Inheritance

The IMFMediaSession interface inherits from IMFMediaEventGenerator. IMFMediaSession also has these types of members:

Methods

The IMFMediaSession interface has these methods.

 
IMFMediaSession::ClearTopologies

Clears all of the presentations that are queued for playback in the Media Session.
IMFMediaSession::Close

Closes the Media Session and releases all of the resources it is using.
IMFMediaSession::GetClock

Retrieves the Media Session's presentation clock.
IMFMediaSession::GetFullTopology

Gets a topology from the Media Session.
IMFMediaSession::GetSessionCapabilities

Retrieves the capabilities of the Media Session, based on the current presentation.
IMFMediaSession::Pause

Pauses the Media Session.
IMFMediaSession::SetTopology

Sets a topology on the Media Session.
IMFMediaSession::Shutdown

Shuts down the Media Session and releases all the resources used by the Media Session.
IMFMediaSession::Start

Starts the Media Session.
IMFMediaSession::Stop

Stops the Media Session.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header mfidl.h

See also

How to Play Media Files with Media Foundation

IMFMediaEventGenerator

Media Foundation Interfaces