From 17c47f3ae0bd2f8cba5e9212df9ed28b44da0c18 Mon Sep 17 00:00:00 2001 From: hyelynkim <150755065+mmyelyn@users.noreply.github.com> Date: Mon, 30 Sep 2024 11:33:43 +0900 Subject: [PATCH] WRR-4591: Fix `VideoPlayer` to show only the mini feedback when pressing play/pause key (#1701) * Set the initial value so that playbackRate is not undefined Enact-DCO-1.0-Signed-off-by: Hyelyn Kim (myelyn.kim@lge.com) * Added a fixed log to CHANGELOG Enact-DCO-1.0-Signed-off-by: Hyelyn Kim (myelyn.kim@lge.com) * Modified change log properly Enact-DCO-1.0-Signed-off-by: Hyelyn Kim (myelyn.kim@lge.com) --- CHANGELOG.md | 1 + VideoPlayer/VideoPlayer.js | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8da1fc4d07..78d71c8c9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ The following is a curated list of changes in the Enact sandstone module, newest - `sandstone/Scroller` to show scroll indicator when `focusableScrollbar` prop is `true` - `sandstone/Scroller` to read out properly when `sandstone/Panels` has `sandstone/Scroller` with `focusableScrollbar` - `sandstone/Steps` prop `size` to accept number type +- `sandstone/VideoPlayer` to show only the mini feedback when pressing play/pause key ## [2.9.0] - 2024-07-17 diff --git a/VideoPlayer/VideoPlayer.js b/VideoPlayer/VideoPlayer.js index 06133cf2f1..6895238a48 100644 --- a/VideoPlayer/VideoPlayer.js +++ b/VideoPlayer/VideoPlayer.js @@ -812,6 +812,7 @@ const VideoPlayerBase = class extends Component { this.mediaControlsSpotlightId = props.spotlightId + '_mediaControls'; this.jumpButtonPressed = null; this.playerRef = createRef(); + this.playbackRate = 1; // Re-render-necessary State this.state = {