Sdílet prostřednictvím


MediaCapture.FrameSources Property

Definition

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

public:
 property IMapView<Platform::String ^, MediaFrameSource ^> ^ FrameSources { IMapView<Platform::String ^, MediaFrameSource ^> ^ get(); };
IMapView<winrt::hstring, MediaFrameSource const&> FrameSources();
public IReadOnlyDictionary<string,MediaFrameSource> FrameSources { get; }
var iMapView = mediaCapture.frameSources;
Public ReadOnly Property FrameSources As IReadOnlyDictionary(Of String, MediaFrameSource)

Property Value

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

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)
App 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.

Applies to