Skip to content

[Wasm] Multiple MediaPlayerElement controls on the same page are not working properly #12350

Closed

Description

@agneszitte

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.

Activity

  1. added
    kind/bug
    triage/untriaged
    difficulty/tbd
    on May 17, 2023
  2. added
    project/media 📺
    on Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

difficulty/tbdkind/bugproject/media 📺triage/untriaged

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions