MediaPlayer.SetStreamSource(IRandomAccessStream) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the media source to a stream.
Note
MediaPlayer.SetMediaSource may be altered or unavailable after Windows 10. Use MediaPlayer.Source instead.
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)
Parameters
- stream
- IRandomAccessStream
The media source stream.
- Attributes