fix: add the stretch style class

This commit is contained in:
Thibault Nocchi
2022-08-13 21:57:26 +02:00
committed by Fernando Fernández
parent c68f0d5a06
commit 3c552d2de2
2 changed files with 15 additions and 1 deletions
@@ -26,7 +26,10 @@
<v-hover v-slot="{ hover }">
<v-card class="player-card" width="100%">
<v-container fill-height fluid class="pa-0 justify-center">
<shaka-player ref="videoPlayer" />
<shaka-player
ref="videoPlayer"
:stretch="stretchVideo && !playbackManager.isMinimized"
/>
</v-container>
<!-- Mini Player Overlay -->
<v-fade-transition>
@@ -3,6 +3,7 @@
<component
:is="mediaElement"
ref="shakaPlayer"
:class="{ stretch: stretch }"
:poster="poster.url"
autoplay
crossorigin="anonymous"
@@ -69,6 +70,12 @@ declare global {
}
export default Vue.extend({
props: {
stretch: {
type: Boolean,
default: false
}
},
data() {
return {
playbackInfo: {} as PlaybackInfoResponse,
@@ -482,4 +489,8 @@ video {
width: 100%;
height: 100%;
}
.stretch {
width: 100vw !important;
}
</style>