Delen via


MediaSource.CreateFromMediaFrameSource(MediaFrameSource) Method

Definition

Creates an instance of MediaSource from the provided AdaptiveMediaSource.

public:
 static MediaSource ^ CreateFromMediaFrameSource(MediaFrameSource ^ frameSource);
 static MediaSource CreateFromMediaFrameSource(MediaFrameSource const& frameSource);
public static MediaSource CreateFromMediaFrameSource(MediaFrameSource frameSource);
function createFromMediaFrameSource(frameSource)
Public Shared Function CreateFromMediaFrameSource (frameSource As MediaFrameSource) As MediaSource

Parameters

frameSource
MediaFrameSource

The AdaptiveMediaSource from which the MediaSource is created.

Returns

The new media source.

Windows requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)

Remarks

For more information on using media frame sources, see Process media frames with MediaFrameReader.

Applies to