From 88543e95caadfb3a210f69ab23c280557dd1bd82 Mon Sep 17 00:00:00 2001 From: Kayoshi-dev Date: Tue, 4 May 2021 23:50:37 +0200 Subject: [PATCH] Add an optional props to hide the PiP icon Use the boolean props pip-visible to hide or show the Picture in Picture button. --- src/dashboard/controls.vue | 5 +++-- src/dashboard/dashboard.vue | 5 +++-- src/dashboard/picture-in-picture.vue | 5 +++-- src/vue-core-video-player.vue | 6 +++++- 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/dashboard/controls.vue b/src/dashboard/controls.vue index 6170d51..6ad8058 100644 --- a/src/dashboard/controls.vue +++ b/src/dashboard/controls.vue @@ -6,7 +6,7 @@
- +
@@ -33,7 +33,8 @@ export default { }, props: { visible: Boolean, - muted: Boolean + muted: Boolean, + pipVisible: Boolean } } diff --git a/src/dashboard/dashboard.vue b/src/dashboard/dashboard.vue index 834159a..5bea832 100644 --- a/src/dashboard/dashboard.vue +++ b/src/dashboard/dashboard.vue @@ -1,7 +1,7 @@ @@ -26,7 +26,8 @@ export default { }, props: { controls: [Boolean, String], - muted: Boolean + muted: Boolean, + pipVisible: Boolean }, data () { return { diff --git a/src/dashboard/picture-in-picture.vue b/src/dashboard/picture-in-picture.vue index 609c58f..47fe55a 100644 --- a/src/dashboard/picture-in-picture.vue +++ b/src/dashboard/picture-in-picture.vue @@ -1,5 +1,5 @@ @@ -55,6 +55,10 @@ export default { type: Boolean, default: false }, + pipVisible: { + type: Boolean, + default: true + }, controls: { type: [String, Boolean], default: true