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> <template>
<div ref="container" data-shaka-player-container :class="{ 'player-container': !isEmbed }"> <div
<video ref="videoEl" data-shaka-player class="w-full" :autoplay="shouldAutoPlay" :loop="selectedAutoLoop" /> 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> </div>
</template> </template>

View file

@ -1,5 +1,5 @@
<template> <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 <VideoPlayer
ref="videoPlayer" ref="videoPlayer"
:video="video" :video="video"