Commit fb70471a authored by Anton's avatar Anton

Disable scaleVideo function in mosys CellVideo

parent 453e9b24
......@@ -102,22 +102,23 @@
},
resizeVideo () {
if (this.$refs) {
let player = this.$refs.videoPlayer
if (player) {
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'
}
}
}
// TODO: fix scaling issues with youtube
// let player = this.$refs.videoPlayer
// if (player) {
// 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'
// }
// }
// }
}
},
getSignature () {
......
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