Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ protected virtual async partial ValueTask PlatformUpdateSource()
var uri = uriMediaSource.Uri?.AbsoluteUri;
if (!string.IsNullOrWhiteSpace(uri))
{
Player.Source = WinMediaSource.CreateFromUri(new Uri(uri));
Player.MediaPlayer.SetUriSource(new Uri(uri));
}
}
else if (MediaElement.Source is FileMediaSource fileMediaSource)
Expand All @@ -297,7 +297,7 @@ protected virtual async partial ValueTask PlatformUpdateSource()
if (!string.IsNullOrWhiteSpace(filename))
{
StorageFile storageFile = await StorageFile.GetFileFromPathAsync(filename);
Player.Source = WinMediaSource.CreateFromStorageFile(storageFile);
Player.MediaPlayer.SetFileSource(storageFile);
}
}
else if (MediaElement.Source is ResourceMediaSource resourceMediaSource)
Expand All @@ -311,7 +311,7 @@ protected virtual async partial ValueTask PlatformUpdateSource()
string path = GetFullAppPackageFilePath(resourceMediaSource.Path);
if (!string.IsNullOrWhiteSpace(path))
{
Player.Source = WinMediaSource.CreateFromUri(new Uri(path));
Player.MediaPlayer.SetUriSource(new Uri(path));
}
}
}
Expand Down
Loading