MediaPlayer.SetStreamSource(IRandomAccessStream) 方法

定义

将媒体源设置为流。

注意

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

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

参数

stream
IRandomAccessStream

媒体源流。

属性

适用于