Repository navigation
Labels
no-reproplatform/android 🤖Categorizes an issue or PR as relevant to the Android platformplatform/ios 🍎Categorizes an issue or PR as relevant to the iOS platformplatform/wasm 🌐Categorizes an issue or PR as relevant to the WebAssembly platformproject/media 📺Categorizes an issue or PR as relevant to media (MediaPlayer, WebView, PDF, Image, …)
Description
What would you like to be added:
Windows.UI.Xaml.Controls.MediaPlayerElement and/or Windows.Media.Playback.MediaPlayer
Why is this needed:
I'm currently converting an UWP game (Minesweeper 10) to Uno. This game should play sounds. I would love to play them using an MediaPlayerElement or MediaPlayer.
I use the following SoundHelper to play my sounds. It works currently in UWP only.
Related issues
Support issues
- Captions support Add Captions support to MediaPlayer #4636
- DRM support DRM Support for Media Player #4637
- Playback speed other controls Add Playback Speed, skip forward, skip back to MediaPlayer #4638
- Real-time playback Support MediaPlayer.RealTimePlayback #4445
- [WASM] Add support for MediaPlayerElement MediaPlayer WebAssembly #11967
- Skia support MediaPlayer Skia #12240
Other issues
All targets
- [MPE] Runtime tests #12510
- [Gallery][Wasm/iOS/Android] MediaPlayerElement does not play a local source #12331
- [Gallery][Wasm/iOS/Android] MediaPlayerElement does not display PosterSource when using a URL #12332
- [Gallery][Wasm/iOS/Android] MediaPlayerElement incorrect visual with only AreTransportControlsEnabled=true #12336
-
MediaPlayerElementCast to device support #12337 - [Gallery][Wasm/iOS/Android] MediaPlayerElement missing tooltip on transport controls #12333
- [Gallery][Wasm/iOS/Android] MediaPlayerElement contains extra "..." button in transport controls #12335
- [Gallery][Wasm/iOS/Android] MediaPlayerElement with Compact Overlay Visible and Enabled #12338
- [Gallery][Wasm/iOS/Android] MediaPlayerElement with ShowAndHideAutomatically=false only work once #12341
- [Gallery][Wasm/iOS/Android] MediaPlayerElement Repeat Button does not change visually when toggled #12344
- [Gallery][Wasm/iOS/Android] MediaPlayerElement PlaybackRate Button does not display the list of rates #12352
- [Gallery][Wasm/iOS/Android]MediaPlayerElement does not display Transport controls for mp3 format(Audio only) and Customizable options. #12574
- [Gallery][Wasm/iOS/Android]MediaPlayerElement Fastforward and Fastrewind button is not working properly for all options. #12649
- [Gallery][Wasm/Android/iOS]MediaPlayerElement , CompactOverlayButton is not similar to windows. #12650
- [Gallery][Wasm/Android/iOS]MediaPlayerElement , Fastforward and Fastrewind buttons are not similar to windows. #12651
- [Gallery][Wasm/Android/iOS]MediaPlayerElement(First sample option)- when first click 'Full screen' and then click 'Enter Mini view' option then both option gets disappear. #12696
iOS/Android
- [Gallery][iOS/Android] MediaPlayerElement sample using a playlist not working properly with Previous/Next track #12396
- [Gallery][iOS/Android] MediaPlayerElement Repeat Button does not work #12346
- [Gallery][iOS/Android][MediaPlayerElement] For the 'Sample using a playlist' option when click Full screen option and close the mobile and reopen it, gallery app getting freeze. #12659
Android
- https://github.com/unoplatform/nventive-private/issues/451
- [Android]
MediaPlayerElementcan't play audio #3112 - [Gallery][Android][MediaPlayerElement] 'Exit Full screen' Icon is missing or not displaying. #12661
iOS
- [Gallery][iOS] MediaPlayerElement with ShowAndHideAutomatically set to true will hide the transport controls outside of the control area #12343
- [Gallery][iOS] MediaPlayerElement transport controls icons are not displayed properly #12347
- [Gallery][iOS]MediaPlayerElement for 'sample using customizable' options is not working. Uno.Gallery#875
Mac Catalyst
Wasm/Skia
- [Gallery][Wasm/Skia] MediaPlayerElement sample using a playlist not working #12394
- [MediaPlayerElement] IsRepeatButtonVisible just works on Fluent Layout - not on Generic #12664
Wasm/iOS
Wasm
- [MPE][Wasm] Setting the
AutoPlayproperty to false removes hides the MTC buttons #12535 - [Wasm] Multiple MediaPlayerElement controls on the same page are not working properly #12350
- [Gallery][WASM] MediaPlayerElement fullscreen not working properly #12330
- [Gallery][Wasm] MediaPlayerElement, [X] Close button does not work for customizable option once click on the last sample option. #12653
- [MediaPlayerElement][Test][Wasm] As the tests run on Headless Chrome the buffer for the video os not working #12665
- WASM: Media player fails to load local asset #17771
Skia
Example
using System;
using Windows.Media.Core;
using Windows.UI.Xaml.Controls;
namespace Minesweeper.Helpers {
static class SoundHelper {
public static MediaPlayerElement Player { get; set; } = new MediaPlayerElement();
public static bool IsMuted { get; set; }
public static void Play(Sound sound, double volume = 1D) {
if (!IsMuted) {
switch (sound) {
case Sound.Gameover:
Player.Source = MediaSource.CreateFromUri(new Uri("ms-appx:///Assets/Sounds/Yeah.wav"));
break;
case Sound.Explode:
Player.Source = MediaSource.CreateFromUri(new Uri("ms-appx:///Assets/Sounds/Explode.mp3"));
break;
default:
break;
}
Player.MediaPlayer.Volume = volume;
Player.MediaPlayer.Play();
}
}
}
public enum Sound {
Gameover,
Explode,
}
}
For which Platform:
- iOS
- Android
- WebAssembly
- WebAssembly renderers for Xamarin.Forms
- macOS
- Windows
- Build tasks
- Solution Templates
Anything else we need to know?
Reacted by Martin Zikmund, Michael A. Hawker, José Luis, Tomas Fabian, Kot, Antony Scott, José Manuel Nieto, Andoni Morales Alastruey, Alecks Gates and Yegor Stepanov
Sub-issues
Collapse Sub-issuesSub-issues
Loading 18 sub-issues
Metadata
Metadata
Assignees
Labels
no-reproplatform/android 🤖Categorizes an issue or PR as relevant to the Android platformplatform/ios 🍎Categorizes an issue or PR as relevant to the iOS platformplatform/wasm 🌐Categorizes an issue or PR as relevant to the WebAssembly platformproject/media 📺Categorizes an issue or PR as relevant to media (MediaPlayer, WebView, PDF, Image, …)
Activity
MartinZikmund commentedon Feb 12, 2020
If I understand correctly, neither
wavnormp3work? Where do you store the sound files, in the Shared project? Thinking it could be related to #183924 remaining items
MediaPlayerElementcan't play audio #3112[-][ROADMAP] Support for `MediaPlayerElement`/`MediaPlayer`[/-][+]Support for `MediaPlayerElement`/`MediaPlayer`[/+]MartinZikmund commentedon Apr 7, 2026
Repro generator
This issue was classified as not reproducible with a code sample or test.
Reason: This is a meta tracking epic for
MediaPlayerElement/MediaPlayersupport with many sub-issues (most already resolved).MediaPlayerElementhas been implemented and is tracked by specific sub-issues. If there are remaining broken scenarios, please refer to the individual open sub-issues.