Repository navigation
Closed
Labels
difficulty/tbdCategorizes an issue for which the difficulty level needs to be defined.kind/bugSomething isn't workingproject/media 📺Categorizes an issue or PR as relevant to media (MediaPlayer, WebView, PDF, Image, …)triage/untriagedIndicates an issue requires triaging or verification
Description
Current behavior
Multiple MediaPlayerElement controls on the same page are not working properly on Wasm
(Still waiting on MediaPlayer Skia to be done to test on this platform)
Expected behavior
Having multiple MediaPlayerElement controls on the same page should work properly like on the other platforms
How to reproduce it (as minimally and precisely as possible)
- Launch the sample app attached on Wasm while comparing it with Windows
- Notice multiple issues including that when you press play on the first video it starts the second video
Sample app for the repro:
MediaPlayerElementSample.zip
<Page x:Class="MediaPlayerElementSample.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:MediaPlayerElementSample"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<StackPanel>
<MediaPlayerElement x:Name="MediaPlayerElementSample1"
Source="https://uno-assets.platform.uno/tests/videos/Mobile_Development_in_VS_Code_with_Uno_Platform_orDotNetMAUI.mp4"
AreTransportControlsEnabled="True"
AutoPlay="False"
MaxWidth="720">
<MediaPlayerElement.TransportControls>
<MediaTransportControls IsCompact="True" />
</MediaPlayerElement.TransportControls>
</MediaPlayerElement>
<MediaPlayerElement x:Name="MediaPlayerElementSample2"
Source="https://uno-assets.platform.uno/tests/videos/Getting_Started_with_Uno_Platform_and_Visual_Studio_Code.mp4"
AreTransportControlsEnabled="True"
AutoPlay="False"
MaxWidth="720">
<MediaPlayerElement.TransportControls>
<MediaTransportControls IsCompact="True" />
</MediaPlayerElement.TransportControls>
</MediaPlayerElement>
</StackPanel>
</Page>
Workaround
N/A
Works on UWP/WinUI
Yes
Environment
Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia
NuGet package version(s)
Uno.UI/Uno.WinUI: 4.9.0-dev.1113
Uno.UI.MediaPlayer.WebAssembly/Uno.WinUI.MediaPlayer.WebAssembly: 4.9.0-dev.1113
Affected platforms
WebAssembly
IDE
Visual Studio 2022
IDE version
17.5.5
Relevant plugins
No response
Anything else we need to know?
A fix could be to individualize the IDs on the HTML page.
Metadata
Metadata
Assignees
Labels
difficulty/tbdCategorizes an issue for which the difficulty level needs to be defined.kind/bugSomething isn't workingproject/media 📺Categorizes an issue or PR as relevant to media (MediaPlayer, WebView, PDF, Image, …)triage/untriagedIndicates an issue requires triaging or verification
Activity