From 96b99f16d175fa74ac10f1a22a0ef252cc4e8d01 Mon Sep 17 00:00:00 2001 From: greg kolb Date: Tue, 29 Oct 2024 13:59:17 -0600 Subject: [PATCH 1/4] disable cast and pip for drm streams --- .../VideoPlayerControlsContainer.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/components/VideoPlayerControls/VideoPlayerControlsContainer.vue b/src/components/VideoPlayerControls/VideoPlayerControlsContainer.vue index 357f549..56c9be2 100644 --- a/src/components/VideoPlayerControls/VideoPlayerControlsContainer.vue +++ b/src/components/VideoPlayerControls/VideoPlayerControlsContainer.vue @@ -48,7 +48,9 @@ - + state.isLive, castAvailable: (state) => state.castAvailable, }), + ...mapState('Params', { + viewer: (state) => state.viewer, + }), isVideoTag() { return this.video?.nodeName === 'VIDEO' }, @@ -109,7 +114,8 @@ export default { this.showButton('pip') && document.pictureInPictureEnabled && this.isLive && - this.isVideoTag + this.isVideoTag && + !this.viewer.drm ) }, }, @@ -117,6 +123,7 @@ export default { ...mapMutations('Controls', ['setDropup', 'toggleFullscreen']), }, async beforeMount() { + console.log('!!! before mount this.drm: ', this.viewer.drm) await setCast() }, } From 650d9361858ca041b5e4530534ef5d9b48f1cf09 Mon Sep 17 00:00:00 2001 From: greg kolb Date: Tue, 29 Oct 2024 14:28:30 -0600 Subject: [PATCH 2/4] hide cast button for drm --- .../VideoPlayerControls/VideoPlayerControlsContainer.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/VideoPlayerControls/VideoPlayerControlsContainer.vue b/src/components/VideoPlayerControls/VideoPlayerControlsContainer.vue index 56c9be2..58ec068 100644 --- a/src/components/VideoPlayerControls/VideoPlayerControlsContainer.vue +++ b/src/components/VideoPlayerControls/VideoPlayerControlsContainer.vue @@ -16,7 +16,7 @@ :streamId="streamId" v-if="showButton('settings')" /> - + Date: Tue, 29 Oct 2024 14:33:21 -0600 Subject: [PATCH 3/4] disable all ui for cast when drm stream --- .../VideoPlayerControls/VideoPlayerControlsCast.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/VideoPlayerControls/VideoPlayerControlsCast.vue b/src/components/VideoPlayerControls/VideoPlayerControlsCast.vue index bd2990c..1038e99 100644 --- a/src/components/VideoPlayerControls/VideoPlayerControlsCast.vue +++ b/src/components/VideoPlayerControls/VideoPlayerControlsCast.vue @@ -1,7 +1,7 @@