Skip to content

Commit

Permalink
fix(UI): Fix the position of save video frame in the overflow menu (#…
Browse files Browse the repository at this point in the history
…7438)

This change is necessary because the remote playback button is not in
the initial list, and this causes it to be positioned in last place when
we do not want this to happen.
  • Loading branch information
avelad authored Oct 18, 2024
1 parent 263c6a6 commit 85282ce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ shaka.ui.Overlay = class {
'playback_rate',
'recenter_vr',
'toggle_stereoscopic',
'save_video_frame',
],
statisticsList: [
'width',
Expand Down Expand Up @@ -292,6 +291,9 @@ shaka.ui.Overlay = class {
(name) => name != 'play_pause' && name != 'volume');
}

// Set this button here to push it at the end.
config.overflowMenuButtons.push('save_video_frame');

return config;
}

Expand Down

0 comments on commit 85282ce

Please sign in to comment.