Add optional prevention of playing a clip on snapshot click

This commit is contained in:
Dermot Duffy
2022-10-12 17:58:36 -07:00
parent 7a3b86d2a3
commit cfdf0a429b
7 changed files with 32 additions and 4 deletions
+4
View File
@@ -25,6 +25,7 @@ import {
CONF_MEDIA_VIEWER_AUTO_MUTE,
CONF_MEDIA_VIEWER_AUTO_PAUSE,
CONF_MEDIA_VIEWER_AUTO_PLAY,
CONF_MEDIA_VIEWER_SNAPSHOT_CLICK_PLAYS_CLIP,
CONF_MEDIA_VIEWER_CONTROLS_NEXT_PREVIOUS_STYLE,
CONF_MEDIA_VIEWER_CONTROLS_THUMBNAILS_MODE,
CONF_MEDIA_VIEWER_CONTROLS_THUMBNAILS_SHOW_DETAILS,
@@ -122,6 +123,9 @@ const LOW_PROFILE_DEFAULTS = {
// Disable all expensive CSS features.
[CONF_PERFORMANCE_STYLE_BORDER_RADIUS]: false,
[CONF_PERFORMANCE_STYLE_BOX_SHADOW]: false,
// Clicking on a snapshot should not play a clip.
[CONF_MEDIA_VIEWER_SNAPSHOT_CLICK_PLAYS_CLIP]: false,
};
const LOW_PROFILE_CAMERA_DEFAULTS = {