MediaPlayer.SetPlaybackSource | setPlaybackSource method

[This documentation is preliminary and is subject to change.]

Sets the playback source of the media player.

Syntax


mediaPlayer.setPlaybackSource(source);

Parameters

source

Type: IMediaPlaybackSource

The playback source of the media player.

Remarks

The playback source can be a MediaPlaybackItem or a MediaPlaybackList, which is a list of MediaPlaybackItem objects.

Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Media.Playback
Windows::Media::Playback [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

See also

MediaPlayer

 

 

Show: