Commit c07f59d6 authored by christianrhansen's avatar christianrhansen

fixed the problem

parent 6d2eb85a
Pipeline #12107 passed with stage
in 7 minutes and 46 seconds
......@@ -106,19 +106,21 @@
resizeVideo () {
if (this.$refs) {
let player = this.$refs.videoPlayer
let vjs = player.$el.querySelector('.video-js')
if (player && !vjs.classList.contains('vjs-youtube')) {
let video = player.$el.querySelector('.vjs-tech')
if (video) {
let pw = video.clientWidth
let cw = this.$el.clientWidth
if (cw > pw) {
video.style.width = '100%'
video.style.height = 'auto'
}
else {
video.style.height = '100%'
video.style.width = 'auto'
if (player) {
let vjs = player.$el.querySelector('.video-js')
if (player && !vjs.classList.contains('vjs-youtube')) {
let video = player.$el.querySelector('.vjs-tech')
if (video) {
let pw = video.clientWidth
let cw = this.$el.clientWidth
if (cw > pw) {
video.style.width = '100%'
video.style.height = 'auto'
}
else {
video.style.height = '100%'
video.style.width = 'auto'
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment