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
MediaElement.SeekTo() does not work correctly on macOS / Mac Catalyst.
Calling SeekTo() either has no effect, does not seek to the correct position,
or the SeekCompleted event never fires after the seek operation.
Expected Behavior
SeekTo() should seek the media to the specified TimeSpan position
The SeekCompleted event should fire after the seek operation completes
Behavior should be consistent across all platforms (Android, Windows, macOS)
Steps To Reproduce
Create a .NET MAUI app targeting macOS / Mac Catalyst
Add a MediaElement and load any video/audio source
Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
MediaElement.SeekTo()does not work correctly on macOS / Mac Catalyst.Calling
SeekTo()either has no effect, does not seek to the correct position,or the
SeekCompletedevent never fires after the seek operation.Expected Behavior
SeekTo()should seek the media to the specifiedTimeSpanpositionSeekCompletedevent should fire after the seek operation completesSteps To Reproduce
MediaElementand load any video/audio sourceawait mediaElement.SeekTo(TimeSpan.FromSeconds(10), CancellationToken.None);SeekCompletedevent does not fireLink to public reproduction project repository
https://github.com/CommunityToolkit/Maui/issues
Environment
Anything else?
MediaElementHandler.macios.csSeekTo()insideStateChangedevent after checkingthe state, but this is inconsistent and unreliable on macOS