mirror of
https://github.com/ZuneDev/ZuneShell.dll.git
synced 2026-07-27 13:11:51 -07:00
Recursive cancellation for MFAudioService.Play
This commit is contained in:
@@ -94,7 +94,10 @@ namespace Microsoft.Zune.Playback
|
||||
else if (sourceConfig.MediaConfig.MediaSourceUri.Scheme.StartsWith("http"))
|
||||
{
|
||||
System.Net.Http.HttpClient client = new();
|
||||
stream = await client.GetStreamAsync(sourceConfig.MediaConfig.MediaSourceUri);
|
||||
|
||||
stream = await client.GetStreamAsync(sourceConfig.MediaConfig.MediaSourceUri, cancellationToken);
|
||||
cancellationToken.ThrowIfCancellationRequested();
|
||||
|
||||
reader = new StreamMediaFoundationReader(stream);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user