MediaSource.CreateFromMediaFrameSource(MediaFrameSource) MediaSource.CreateFromMediaFrameSource(MediaFrameSource) MediaSource.CreateFromMediaFrameSource(MediaFrameSource) MediaSource.CreateFromMediaFrameSource(MediaFrameSource) MediaSource.CreateFromMediaFrameSource(MediaFrameSource) Method

Definition

Creates an instance of MediaSource from the provided AdaptiveMediaSource.

public : static MediaSource CreateFromMediaFrameSource(MediaFrameSource frameSource)
static MediaSource CreateFromMediaFrameSource(MediaFrameSource frameSource) const;
public static MediaSource CreateFromMediaFrameSource(MediaFrameSource frameSource)
Public Shared Function CreateFromMediaFrameSource(frameSource As MediaFrameSource) As MediaSource
var mediaSource = Windows.Media.Core.MediaSource.createFromMediaFrameSource(frameSource);

Parameters

Returns

Additional features and requirements

Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

Remarks

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