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 and joeyparrish committed Oct 18, 2024
1 parent 6c1fcd8 commit 6998802
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 @@ -192,7 +192,6 @@ shaka.ui.Overlay = class {
'playback_rate',
'recenter_vr',
'toggle_stereoscopic',
'save_video_frame',
],
statisticsList: [
'width',
Expand Down Expand Up @@ -290,6 +289,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 6998802

Please sign in to comment.