IMediaFrame IMediaFrame IMediaFrame IMediaFrame IMediaFrame Interface


Represents a single frame of media data.

public : interface IMediaFrame : IClosable
struct winrt::Windows::Media::IMediaFrame : IClosable
public interface IMediaFrame : IDisposable
Public Interface IMediaFrame Implements IDisposable
// You can't instantiate an interface directly in JavaScript. You can use objects that implement the interface, however.

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


Duration Duration Duration Duration Duration

Gets or sets the duration of the media frame.

ExtendedProperties ExtendedProperties ExtendedProperties ExtendedProperties ExtendedProperties

Gets the extended property set which enables getting and setting properties on the media frame.

IsDiscontinuous IsDiscontinuous IsDiscontinuous IsDiscontinuous IsDiscontinuous

Gets or sets a value that indicates whether an media frame is the first frame after a gap in the stream.

IsReadOnly IsReadOnly IsReadOnly IsReadOnly IsReadOnly

Gets a value indicating whether the audio frame is read-only.

RelativeTime RelativeTime RelativeTime RelativeTime RelativeTime

Gets or sets the relative time of the frame within the media stream.

SystemRelativeTime SystemRelativeTime SystemRelativeTime SystemRelativeTime SystemRelativeTime

Gets or sets a timestamp that is relative to the system and is correlatable across multiple media sources on the same device.

Type Type Type Type Type

Gets a string indicating the type of data the media frame contains.


Close Close Close Close Close

Releases system resources that are exposed by a Windows Runtime object.

.NET This interface appears as System.IDisposable.

C++/CX This interface appears as Platform::IDisposable.

(Inherited from IClosable)

See also

  • IDisposable IDisposable IDisposable