Maui: [BUG] MediaElement does not support all formats
Is 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
About this issue
- Original URL
- State: open
- Created a year ago
- Reactions: 2
- Comments: 17 (12 by maintainers)
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