MediaCapture.FrameSources MediaCapture.FrameSources MediaCapture.FrameSources MediaCapture.FrameSources MediaCapture.FrameSources Property

Definition

Gets a read-only dictionary of MediaFrameSource objects that can be used simultaneously to acquire media frames.

public : IMapView<Platform::String, MediaFrameSource> FrameSources { get; }
IMapView<winrt::hstring, MediaFrameSource> FrameSources();
public IReadOnlyDictionary<string, MediaFrameSource> FrameSources { get; }
Public ReadOnly Property FrameSources As IReadOnlyDictionary<string, MediaFrameSource>
var iReadOnlyDictionary = mediaCapture.frameSources;
Property Value
IReadOnlyDictionary<string, MediaFrameSource> IReadOnlyDictionary<string, MediaFrameSource> IReadOnlyDictionary<string, MediaFrameSource>

A read-only dictionary of MediaFrameSource objects that can be used simultaneously to acquire media frames.

Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)
Capabilities
backgroundMediaRecording

Remarks

Initialize a MediaCapture object to use media frame sources by setting the SourceGroup property of the MediaCaptureInitializationSettings object to a MediaFrameSourceGroup returned by FindAllAsync and then calling MediaCapture.InitializeAsync. The key for each entry in the dictionary is the Id property of the MediaFrameSourceInfo associated with each frame source in the group.

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