Skip to content

Conversation

eFloh
Copy link

@eFloh eFloh commented Jan 11, 2022

When MediaElement.Source is set to a HTTPS-Uri

  • .NET 4.8 Project throws NullReferenceException
    at System.Windows.Media.MediaPlayerState.OpenMedia(Uri source)
    at System.Windows.Media.MediaPlayerState.SetSource(Uri source)
    at System.Windows.Media.MediaPlayerState.Open(Uri source)
  • .NET Core 5.0 Application sucessfully plays the Source.

Plain HTTP works in both runtimes.

See
https://stackoverflow.com/questions/30702505/playing-media-from-https-site-in-media-element-throwing-null-reference-exception
dotnet/wpf#722
fixed and merged with dotnet/wpf#969
into .NET Core.

This PR does not solve the problem, justs proofes the bug and shows a Workaround: Using .NET Core 5.0 Runtime instead of classic .NET Framework App.

FloH added 3 commits January 11, 2022 22:04
When `MediaElement.Source` is set to a HTTPS-Uri
- .NET 4.8 Project throws `NullReferenceException`
   at System.Windows.Media.MediaPlayerState.OpenMedia(Uri source)
   at System.Windows.Media.MediaPlayerState.SetSource(Uri source)
   at System.Windows.Media.MediaPlayerState.Open(Uri source)
- .NET Core 5.0 Application sucessfully plays the Source.

Plain HTTP works in both runtimes.

See
https://stackoverflow.com/questions/30702505/playing-media-from-https-site-in-media-element-throwing-null-reference-exception
dotnet/wpf#722
fixed and merged with dotnet/wpf#969
into .NET Core.
- Window Icons funktionieren wohl anders, vorübergehend entfernt
@eFloh eFloh force-pushed the bugs/https-mediaelement-repro branch from 004348c to f8973e6 Compare January 11, 2022 21:04
@marcelwirtz marcelwirtz merged commit 0f1afab into marcelwirtz:master Jan 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants