|
|
|
@ -20375,20 +20375,26 @@ class PlexMeetsHomeAssistant extends HTMLElement {
|
|
|
|
|
if (this.videoElem) {
|
|
|
|
|
const videoPlayer = this.getElementsByClassName('videoPlayer')[0];
|
|
|
|
|
const video = videoPlayer.children[0];
|
|
|
|
|
if (video.requestFullscreen) {
|
|
|
|
|
if (video.requestFullscreen && false) {
|
|
|
|
|
video.requestFullscreen();
|
|
|
|
|
}
|
|
|
|
|
else if (video.webkitRequestFullscreen) {
|
|
|
|
|
else if (video.webkitRequestFullscreen && false) {
|
|
|
|
|
video.webkitRequestFullscreen();
|
|
|
|
|
}
|
|
|
|
|
else if (video.msRequestFullscreen) {
|
|
|
|
|
else if (video.msRequestFullscreen && false) {
|
|
|
|
|
video.msRequestFullscreen();
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
const videobg1 = this.getElementsByClassName('videobg1')[0];
|
|
|
|
|
const videobg2 = this.getElementsByClassName('videobg2')[0];
|
|
|
|
|
const videobgs1 = this.getElementsByClassName('videobg1');
|
|
|
|
|
const videobgs2 = this.getElementsByClassName('videobg2');
|
|
|
|
|
// eslint-disable-next-line no-restricted-syntax
|
|
|
|
|
for (const videobg1 of videobgs1) {
|
|
|
|
|
videobg1.classList.add('transparent');
|
|
|
|
|
}
|
|
|
|
|
// eslint-disable-next-line no-restricted-syntax
|
|
|
|
|
for (const videobg2 of videobgs2) {
|
|
|
|
|
videobg2.classList.add('transparent');
|
|
|
|
|
}
|
|
|
|
|
this.videoElem.classList.add('maxZIndex');
|
|
|
|
|
this.videoElem.classList.add('simulatedFullScreen');
|
|
|
|
|
video.controls = true;
|
|
|
|
@ -20420,10 +20426,16 @@ class PlexMeetsHomeAssistant extends HTMLElement {
|
|
|
|
|
this.videoElem.classList.remove('maxZIndex');
|
|
|
|
|
this.videoElem.classList.remove('simulatedFullScreen');
|
|
|
|
|
}
|
|
|
|
|
const videobg1 = this.getElementsByClassName('videobg1')[0];
|
|
|
|
|
const videobg2 = this.getElementsByClassName('videobg2')[0];
|
|
|
|
|
const videobgs1 = this.getElementsByClassName('videobg1');
|
|
|
|
|
const videobgs2 = this.getElementsByClassName('videobg2');
|
|
|
|
|
// eslint-disable-next-line no-restricted-syntax
|
|
|
|
|
for (const videobg1 of videobgs1) {
|
|
|
|
|
videobg1.classList.remove('transparent');
|
|
|
|
|
}
|
|
|
|
|
// eslint-disable-next-line no-restricted-syntax
|
|
|
|
|
for (const videobg2 of videobgs2) {
|
|
|
|
|
videobg2.classList.remove('transparent');
|
|
|
|
|
}
|
|
|
|
|
video.controls = false;
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
@ -20522,11 +20534,17 @@ class PlexMeetsHomeAssistant extends HTMLElement {
|
|
|
|
|
videoPlayer.innerHTML = '';
|
|
|
|
|
this.videoElem.classList.remove('maxZIndex');
|
|
|
|
|
this.videoElem.classList.remove('simulatedFullScreen');
|
|
|
|
|
const videobg1 = this.getElementsByClassName('videobg1')[0];
|
|
|
|
|
const videobg2 = this.getElementsByClassName('videobg2')[0];
|
|
|
|
|
const videobgs1 = this.getElementsByClassName('videobg1');
|
|
|
|
|
const videobgs2 = this.getElementsByClassName('videobg2');
|
|
|
|
|
// eslint-disable-next-line no-restricted-syntax
|
|
|
|
|
for (const videobg1 of videobgs1) {
|
|
|
|
|
videobg1.classList.remove('transparent');
|
|
|
|
|
}
|
|
|
|
|
// eslint-disable-next-line no-restricted-syntax
|
|
|
|
|
for (const videobg2 of videobgs2) {
|
|
|
|
|
videobg2.classList.remove('transparent');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
this.minimizeAll = () => {
|
|
|
|
|
this.detailsShown = false;
|
|
|
|
@ -20732,8 +20750,8 @@ class PlexMeetsHomeAssistant extends HTMLElement {
|
|
|
|
|
video.load();
|
|
|
|
|
video.play();
|
|
|
|
|
let playingFired = false;
|
|
|
|
|
const videobg1 = this.getElementsByClassName('videobg1')[0];
|
|
|
|
|
const videobg2 = this.getElementsByClassName('videobg2')[0];
|
|
|
|
|
const videobgs1 = this.getElementsByClassName('videobg1');
|
|
|
|
|
const videobgs2 = this.getElementsByClassName('videobg2');
|
|
|
|
|
video.addEventListener('click', event => {
|
|
|
|
|
if (isVideoFullScreen(this)) {
|
|
|
|
|
event.stopPropagation();
|
|
|
|
@ -20742,15 +20760,27 @@ class PlexMeetsHomeAssistant extends HTMLElement {
|
|
|
|
|
const fullScreenChangeAction = () => {
|
|
|
|
|
if (this.videoElem) {
|
|
|
|
|
if (isVideoFullScreen(this)) {
|
|
|
|
|
// eslint-disable-next-line no-restricted-syntax
|
|
|
|
|
for (const videobg1 of videobgs1) {
|
|
|
|
|
videobg1.classList.add('transparent');
|
|
|
|
|
}
|
|
|
|
|
// eslint-disable-next-line no-restricted-syntax
|
|
|
|
|
for (const videobg2 of videobgs2) {
|
|
|
|
|
videobg2.classList.add('transparent');
|
|
|
|
|
}
|
|
|
|
|
this.videoElem.classList.add('maxZIndex');
|
|
|
|
|
video.controls = true;
|
|
|
|
|
video.muted = false;
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
// eslint-disable-next-line no-restricted-syntax
|
|
|
|
|
for (const videobg1 of videobgs1) {
|
|
|
|
|
videobg1.classList.remove('transparent');
|
|
|
|
|
}
|
|
|
|
|
// eslint-disable-next-line no-restricted-syntax
|
|
|
|
|
for (const videobg2 of videobgs2) {
|
|
|
|
|
videobg2.classList.remove('transparent');
|
|
|
|
|
}
|
|
|
|
|
this.videoElem.classList.remove('maxZIndex');
|
|
|
|
|
video.controls = false;
|
|
|
|
|
window.scroll({
|
|
|
|
|