MediaPlayer.SetMediaSource(IMediaSource) 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 for playback.
Note
MediaPlayer.SetMediaSource may be altered or unavailable after Windows 10. Use MediaPlayer.Source instead.
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)
Parameters
- source
- IMediaSource
The media source for playback.
- Attributes