You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a slider bound to an object that updates it as the position of a MediaPlayer changes, and allows it to update the position by dragging along the slider. This works for most songs, but sone of the songs I have will jump forward about 9 seconds from where I click on the slider, or where I set the position programatically. This also only happens once playing. For example, if I pause the playback, then set the time it seems to set properly, but when I start playback again it jumps forward 9 seconds.
This is using
Microsoft.UI.XAML 2.8.6
Microsoft.Windows.SDK.BuildTools 10.0.26100.1
Microsoft.WindowsAppSDK 1.5.240627000
The app is being tested unpackaged.
Steps to reproduce the bug
Demo Code adapted from the larger project where I'm experiencing this issue. Note that this code works fine with most files I've tried. If asked I can provide a few of the files that cause the issue for me (one example is the flac file for Hollowheart - Porter Robinson):
MainWindow.cs
Sometimes this happens when the file has a bad index, or no index at all. We end up making a 'best guess' of translating seek position in 'time' to seek position in bytes.
Describe the bug
I have a slider bound to an object that updates it as the position of a MediaPlayer changes, and allows it to update the position by dragging along the slider. This works for most songs, but sone of the songs I have will jump forward about 9 seconds from where I click on the slider, or where I set the position programatically. This also only happens once playing. For example, if I pause the playback, then set the time it seems to set properly, but when I start playback again it jumps forward 9 seconds.
This is using
The app is being tested unpackaged.
Steps to reproduce the bug
Demo Code adapted from the larger project where I'm experiencing this issue. Note that this code works fine with most files I've tried. If asked I can provide a few of the files that cause the issue for me (one example is the flac file for Hollowheart - Porter Robinson):
MainWindow.cs
MainWindow.xaml
PlaybackObservables.cs
StateManager.cs
DoubleDurationToTime.cs
Expected behavior
Song should not jump forward 9 seconds after being set to a set time. The expected behavior does happen, just inconsistently between files.
Screenshots
NuGet package version
Windows App SDK 1.5.5: 1.5.240627000
Packaging type
Unpackaged
Windows version
Insider Build (xxxxx)
IDE
Visual Studio 2022
Additional context
No response
The text was updated successfully, but these errors were encountered: