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:
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.
Indeed, if you stress the button or press it continuously not interspersing, it should work normally, as seen from Exhibit-02.
It is not related to duration, as a test was conducted with a higher duration video, as seen in Exhibit-03.
please fix
Steps to reproduce the bug
- Edit MediaPlayerElement within MediaPlayerElementPage.xaml to display Skip transport controls
- Run code
- Go to Media Player Page
- Play video for any duration(or not)
- Skip Forwards
- Skip Backwards
- 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