Apply autostartVideoOnPlaySelected to queue (#2896)

This commit is contained in:
WithoutPants 2022-09-14 14:22:11 +10:00 committed by GitHub
parent 5db42f4882
commit e6b7d40784
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -538,6 +538,8 @@ const SceneLoader: React.FC = () => {
}
const autoplay = queryParams?.autoplay === "true";
const autoPlayOnSelected =
configuration?.interface.autostartVideoOnPlaySelected ?? false;
const currentQueueIndex = queueScenes
? queueScenes.findIndex((s) => s.id === id)
: -1;
@ -621,7 +623,7 @@ const SceneLoader: React.FC = () => {
function playScene(sceneID: string, newPage?: number) {
sceneQueue.playScene(history, sceneID, {
newPage,
autoPlay: true,
autoPlay: autoPlayOnSelected,
continue: continuePlaylist,
});
}

View File

@ -519,7 +519,7 @@
"options": {
"auto_start_video": "Auto-start video",
"auto_start_video_on_play_selected": {
"description": "Auto-start scene videos when playing selected or random from Scenes page",
"description": "Auto-start scene videos when playing from queue, or playing selected or random from Scenes page",
"heading": "Auto-start video when playing selected"
},
"continue_playlist_default": {