Commit 8c029ded authored by Ben Hayward's avatar Ben Hayward

Commenting out lines

1 merge request!446WIP: [Sprint/InterestingIguana](bug): Pause video when scrolled offscreen #1418
Pipeline #70798892 canceled with stages
in 35 seconds
......@@ -198,29 +198,30 @@ export class MindsVideoComponent {
setTimeout(() => this.playerRef.resumeFromTime(time), 0);
}
isVisible() {
if (this.autoplay)
return;
// if (!this.visibleplay)
// return;
if (!this.guid)
return;
if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
this.muted = false;
return;
}
/*var bounds = this.element.getBoundingClientRect();
if (bounds.top < this.scroll.view.clientHeight && bounds.top + (this.scroll.view.clientHeight / 2) >= 0) {
if (!this.torrentVideo.isPlaying()) {
this.torrentVideo.play();
}
} else {
if (this.torrentVideo.isPlaying()) {
// this.element.muted = true;
this.torrentVideo.pause();
}
}*/
}
// isVisible() {
// if (this.autoplay)
// return;
// // if (!this.visibleplay)
// // return;
// if (!this.guid)
// return;
// if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
// this.muted = false;
// return;
// }
// /*var bounds = this.element.getBoundingClientRect();
// if (bounds.top < this.scroll.view.clientHeight && bounds.top + (this.scroll.view.clientHeight / 2) >= 0) {
// if (!this.torrentVideo.isPlaying()) {
// this.torrentVideo.play();
// }
// } else {
// if (this.torrentVideo.isPlaying()) {
// // this.element.muted = true;
// this.torrentVideo.pause();
// }
// }*/
// }
toggleTorrentInfo() {
this.torrentInfo = !this.torrentInfo;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment