MediaPlaybackItem.FindFromMediaSource(MediaSource) Method

Definition

Retrieves the MediaPlaybackItem associated with the provided MediaSource.

public:
 static MediaPlaybackItem ^ FindFromMediaSource(MediaSource ^ source);
 static MediaPlaybackItem FindFromMediaSource(MediaSource const& source);
public static MediaPlaybackItem FindFromMediaSource(MediaSource source);
function findFromMediaSource(source)
Public Shared Function FindFromMediaSource (source As MediaSource) As MediaPlaybackItem

Parameters

source
MediaSource

The MediaSource associated with the MediaPlaybackItem.

Returns

The MediaPlaybackItem associated with the provided MediaSource.

Windows requirements

Device family
Windows 10 (introduced in 10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v2.0)

Applies to