Commit 65344e88 authored by xiabin's avatar xiabin

修改video

parent 4af0645e
......@@ -15,12 +15,11 @@
window.VIDEOJS_NO_BASE_THEME = true;
export default{
data(){
return{
}
return {}
},
props:{
videoUrl:String,
previewUrl:String
props: {
videoUrl: String,
previewUrl: String
},
ready(){
var self = this;
......@@ -28,12 +27,12 @@
var w = $('.video-main').width();
var h = w * rate;
videojs("my-video-play", {
"techOrder": ['html5','flash'],
"techOrder": ['html5', 'flash'],
"controls": true,
"autoplay": false,
"language": "zh-CN",
"width":w,
"height":h,
"width": w,
"height": h,
"poster": self.previewUrl
}).ready(function () {
$('#my-video-play').css('width', '100%');
......@@ -50,6 +49,4 @@
}
</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