Commit 6df3a0b2 authored by xiabin's avatar xiabin

修改视频直播的位置

parent 1d2d4565
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
</div> </div>
</div> </div>
<div class="video-main"> <div v-show="videoShow" class="video-main">
<video id="my-video-play" class="video-js vjs-default-skin vjs-big-play-centered" <video id="my-video-play" class="video-js vjs-default-skin vjs-big-play-centered"
controls preload="auto"> controls preload="auto">
<source :src="coursewareInfo.videoUrl"/> <source :src="coursewareInfo.videoUrl"/>
...@@ -254,7 +254,6 @@ ...@@ -254,7 +254,6 @@
"language": "zh-CN", "language": "zh-CN",
poster: this.coursewareInfo.previewUrl poster: this.coursewareInfo.previewUrl
}).ready(function () { }).ready(function () {
self.videoShow = true;
var rate = 9 / 16; var rate = 9 / 16;
$('#my-video-play').css('width', '100%'); $('#my-video-play').css('width', '100%');
var wVideo = $('.video-detail-info').width(); var wVideo = $('.video-detail-info').width();
...@@ -265,7 +264,7 @@ ...@@ -265,7 +264,7 @@
var hVideo = wVideo * rate; var hVideo = wVideo * rate;
$('#my-video-play').css('height', hVideo); $('#my-video-play').css('height', hVideo);
}; };
self.videoShow = true;
}); });
} }
} }
...@@ -275,5 +274,7 @@ ...@@ -275,5 +274,7 @@
</script> </script>
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