MediaPlayer.SetFileSource(IStorageFile) MediaPlayer.SetFileSource(IStorageFile) MediaPlayer.SetFileSource(IStorageFile) MediaPlayer.SetFileSource(IStorageFile) MediaPlayer.SetFileSource(IStorageFile) Method

Definition

Set the media source to a file.

Note

MediaPlayer.SetFileSource may be altered or unavailable after Windows 10. Use MediaPlayer.Source instead.

public : void SetFileSource(IStorageFile file)
void SetFileSource(IStorageFile file) const;
public void SetFileSource(IStorageFile file)
Public Sub SetFileSource(file As IStorageFile)
mediaPlayer.setFileSource(file);

Parameters

file
IStorageFile IStorageFile IStorageFile

The media source file.