[webkit-changes] [WebKit/WebKit] c89127: [visionOS] Unable to set playback speed back to 1x...
aestes
noreply at github.com
Thu Mar 28 13:02:38 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c891276841b8a3fdf2198720f71010d4382a8848
https://github.com/WebKit/WebKit/commit/c891276841b8a3fdf2198720f71010d4382a8848
Author: Andy Estes <aestes at apple.com>
Date: 2024-03-28 (Thu, 28 Mar 2024)
Changed paths:
M Source/WebKit/Platform/ios/PlaybackSessionInterfaceLMK.mm
Log Message:
-----------
[visionOS] Unable to set playback speed back to 1x after changing it to a different speed
https://bugs.webkit.org/show_bug.cgi?id=271813
rdar://125522760
Reviewed by Eric Carlson.
In LinearMediaPlayer we set selectedPlaybackRate to 1 and never updated it when the playback rate
changed. As a result, if you set the playback rate to, e.g., 1.25x then attempt to change it back to
1x, LinearMediaKit would never call playbackRateChanged() on our Playable object because it belives
1x is already the selected rate.
Resolved this by updating selectedPlaybackRate when the playback rate changes.
* Source/WebKit/Platform/ios/PlaybackSessionInterfaceLMK.mm:
(WebKit::PlaybackSessionInterfaceLMK::rateChanged):
Canonical link: https://commits.webkit.org/276795@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list