MediaPlayer.SetMediaSource(IMediaSource) 方法

定义

设置用于播放的媒体源。

注意

MediaPlayer.SetMediaSource 可能会在Windows 10后被更改或不可用。 请改用 MediaPlayer.Source

public:
 virtual void SetMediaSource(IMediaSource ^ source) = SetMediaSource;
void SetMediaSource(IMediaSource const& source);
/// [Windows.Foundation.Metadata.Deprecated("Use Source instead of SetMediaSource.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.Foundation.UniversalApiContract")]
void SetMediaSource(IMediaSource const& source);
public void SetMediaSource(IMediaSource source);
[Windows.Foundation.Metadata.Deprecated("Use Source instead of SetMediaSource.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.Foundation.UniversalApiContract")]
public void SetMediaSource(IMediaSource source);
function setMediaSource(source)
Public Sub SetMediaSource (source As IMediaSource)

参数

source
IMediaSource

用于播放的媒体源。

属性

适用于