Center videos, and limit video size in embeds. (#848)

This commit is contained in:
Kavin 2022-02-22 06:13:36 +00:00 committed by GitHub
parent dd80665ba5
commit f93f52051c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View File

@ -1,6 +1,11 @@
<template>
<div ref="container" data-shaka-player-container :class="{ 'player-container': !isEmbed }">
<video ref="videoEl" data-shaka-player class="w-full" :autoplay="shouldAutoPlay" :loop="selectedAutoLoop" />
<div
ref="container"
data-shaka-player-container
class="w-full max-h-screen flex justify-center"
:class="{ 'player-container': !isEmbed }"
>
<video ref="videoEl" class="w-full" data-shaka-player :autoplay="shouldAutoPlay" :loop="selectedAutoLoop" />
</div>
</template>

View File

@ -1,5 +1,5 @@
<template>
<div v-if="video && isEmbed" class="absolute top-0 left-0 h-full w-full z-50">
<div v-if="video && isEmbed" class="absolute top-0 left-0 h-full w-full bg-black z-50">
<VideoPlayer
ref="videoPlayer"
:video="video"