From fb82ff9fa188769f7cf7bb02c1c574201cbe9f85 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 23 Mar 2021 12:33:40 +0100 Subject: disablePictureInPicture={true} --- frontend/app/views/tile/handles/tile.video.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'frontend/app/views/tile/handles') diff --git a/frontend/app/views/tile/handles/tile.video.js b/frontend/app/views/tile/handles/tile.video.js index a34d348..b4183ce 100644 --- a/frontend/app/views/tile/handles/tile.video.js +++ b/frontend/app/views/tile/handles/tile.video.js @@ -29,6 +29,15 @@ export default class TileVideo extends Component { this.el = this.videoRef.current this.el.addEventListener('ended', this.handleEnded) this.el.addEventListener('timeupdate', this.handleTimeUpdate) + const muted = this.props.viewing + ? this.props.tile.settings.muted + : true + const volume = muted + ? 0.0 + : ('volume' in this.props.tile.settings) + ? this.props.tile.settings.volume + : 1.0 + this.el.volume = volume } unbind() { @@ -71,6 +80,9 @@ export default class TileVideo extends Component { return null } className += ' ' + tile.settings.align + const muted = viewing + ? tile.settings.muted + : true return (
-- cgit v1.2.3-70-g09d2