diff --git a/config/_project_json.yaml b/config/_project_json.yaml
index 138f6d9..bcd7fb4 100644
--- a/config/_project_json.yaml
+++ b/config/_project_json.yaml
@@ -25,7 +25,7 @@ localization:
ui_voice_lang: Voice Language
ui_voice_idle: Idle Timeout
ui_voice_next: Voice Interval
- ui_subtitle_title:
@@ -743,6 +776,25 @@ export default class Settings {
_this.#sync(e.currentTarget, "music_switch_offset_slider");
window.music.timeOffset = parseFloat(e.currentTarget.value)
}
+ }, {
+ id: "video", event: "click", handler: e => {
+ _this.#showRelated(e.currentTarget, "video_realted");
+ if (!e.currentTarget.checked) _this.resetVideo()
+ }
+ }, {
+ id: "custom_video_background", event: "change", handler: e => _this.setVideo(e)
+ }, {
+ id: "custom_video_background_clear", event: "click", handler: () => _this.resetVideo()
+ }, {
+ id: "video_volume_slider", event: "input", handler: e => {
+ _this.#sync(e.currentTarget, "video_volume_input");
+ this.setVideoVolume(parseInt(e.currentTarget.value))
+ }
+ }, {
+ id: "video_volume_input", event: "change", handler: e => {
+ _this.#sync(e.currentTarget, "video_volume_slider");
+ this.setVideoVolume(parseInt(e.currentTarget.value))
+ }
}, {
id: "position", event: "click", handler: e => {
_this.#showRelated(e.currentTarget, "position_realted");
diff --git a/showcase/src/index.css b/showcase/src/index.css
index 2facf67..fdc130d 100644
--- a/showcase/src/index.css
+++ b/showcase/src/index.css
@@ -37,4 +37,24 @@ body,
.invert-filter {
filter: invert(1);
opacity: 0.3;
+}
+
+#video_background {
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ width: 100%;
+ height: 100%;
+ overflow: hidden;
+}
+
+#video_background video {
+ min-width: 100%;
+ min-height: 100%;
+ width: auto;
+ height: auto;
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%,-50%);
}
\ No newline at end of file
diff --git a/showcase/src/index.js b/showcase/src/index.js
index 5f3a78e..ba30522 100644
--- a/showcase/src/index.js
+++ b/showcase/src/index.js
@@ -10,7 +10,9 @@ document.querySelector('#app').innerHTML = `
-
+
+
+