question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] MediaElement does not support all formats

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the “Reporting a bug” section on Contributing file?

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

  1. Open the solution from the public reproduction repository
  2. Build & Run the app on an iOS simulator
  3. 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:open
  • Created 3 months ago
  • Reactions:2
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
brminnickcommented, Jun 13, 2023

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

1reaction
TimLandskroncommented, Jun 13, 2023
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found