[BUG] MediaElement does not support all formats
See original GitHub issueIs there an existing issue for this?
- I have searched the existing issues
Did you read the “Reporting a bug” section on Contributing file?
- I have read the “Reporting a bug” section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug
Current Behavior
On iOS devices it seems that not all video formats are supported by the MediaElement. On Xamarin.Forms these worked (and when I understood it right, the AVPlayer was also used in Xamarin.Forms). In our concrete case, we are working with the .m3u8 format.
When running the reproduction repository and trying to playback the following video stream, we get the sound, but no video(pictures) is shown. https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8
Expected Behavior
The video (pictures) should also be shown, not only the sound. In addition, the playback controls should be visible.
Steps To Reproduce
- Open the solution from the public reproduction repository
- Build & Run the app on an iOS simulator
- Turn your volume on and hear the sound
Link to public reproduction project repository
https://github.com/TimLandskron/MediaElementVideoStreamFormatIssue
Environment
- .NET MAUI CommunityToolkit: current main branch
- OS: Mac OS X 13.4.0
- .NET MAUI: 7.0.86
Anything else?
No response
Issue Analytics
- State:
- Created 3 months ago
- Reactions:2
- Comments:16 (7 by maintainers)
Top Results From Across the Web
MediaElement won't play supported video format
MediaElement won't play supported video format ... As I can tell from the MSDN documentation (here and here), the encoding should be supported....
Read more >MediaElement - .NET MAUI Community Toolkit
This article explains how to use MediaElement to play video and audio in a .NET MAUI application.
Read more >Xamarin Community Toolkit MediaElement
This article explains how to use MediaElement to play video and audio in a Xamarin.Forms application.
Read more >Mediaelement.Js Reviews & Product Details
It provides support for almost every audio & video format with no issues in playing the media file. It is very lite and...
Read more >HTMLMediaElement - Web APIs | MDN
Chrome Edge
HTMLMediaElement Full support. Chrome3. Toggle history Full support. Edge12. T...
abort event Full support. Chrome3. Toggle history Full support. Edge12. T...
addTextTrack Full support....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks Tim! The reproduction sample not only helps us reproduce the issue, but it also helps us confirm that we have indeed fixed the bug reported
Public reproduction repository added https://github.com/TimLandskron/MediaElementVideoStreamFormatIssue