Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

MediaSource.CreateFromMediaFrameSource(MediaFrameSource) Method

Definition

Namespace:
Windows.Media.Core

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

Requirements Description
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


Feedback

Was this page helpful?