Skip to content

[MediaPlayerElement] Skip transport controls are inverted #8083

Open

Description

While building a Media Player in UWP applications, it was noticed that the buttons assigned to properties "IsSkipBackward" "IsSkipFoward" are inverted in runtime, as seen from an example from a customized version of the WinUi 2 Gallery in which i made available in the code bellow:

<MediaPlayerElement Source="ms-appx:///Assets/SampleMedia/ladybug.wmv" MaxWidth="400" AutoPlay="False" AreTransportControlsEnabled="True" x:Name="testet"> <MediaPlayerElement.TransportControls> <MediaTransportControls IsSkipBackwardButtonVisible="True" IsSkipForwardButtonVisible="True" IsSkipBackwardEnabled="True" IsSkipForwardEnabled="True"/> </MediaPlayerElement.TransportControls> </MediaPlayerElement>

Ending up like this:

image

If you press the foward button a first time, it does nothing regarding skipping time, if you press the skip backwards button after that, it skips foward, and pressing skip foward reproduces the skip backward intended event (-10 sec) as seen in Exhibit-01.

ApplicationFrameHost_2XDByM6ajr

Indeed, if you stress the button or press it continuously not interspersing, it should work normally, as seen from Exhibit-02.

ApplicationFrameHost_MJEYxd5vM8

It is not related to duration, as a test was conducted with a higher duration video, as seen in Exhibit-03.

ApplicationFrameHost_rW7N7i4bk8

please fix

Steps to reproduce the bug

  1. Edit MediaPlayerElement within MediaPlayerElementPage.xaml to display Skip transport controls
  2. Run code
  3. Go to Media Player Page
  4. Play video for any duration(or not)
  5. Skip Forwards
  6. Skip Backwards
  7. Skip Forwards again

Expected behavior

Each transport control should have it respective function.

Screenshots

No response

NuGet package version

WinUI 2 - Microsoft.UI.Xaml 2.8.1

Windows version

Windows 10 (21H1): Build 19043

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions