提交 430f92fd authored 作者: wangjiahao's avatar wangjiahao

refactor:优化视频拖拽效果

上级 b9aa0b58
<template> <template>
<el-row ref="mainPlayer"> <el-row ref="mainPlayer">
<div v-if="this.element.videoLinks[this.element.videoLinks.videoType].sources[0].src" :class="{'move-bg':moveFlag}" class="player"> <div v-if="this.element.videoLinks[this.element.videoLinks.videoType].sources[0].src" class="player">
<video-player <video-player
v-if="!moveFlag"
ref="videoPlayer" ref="videoPlayer"
class="vjs-custom-skin" class="vjs-custom-skin"
:options="playerOptions" :options="playerOptions"
......
...@@ -26,6 +26,7 @@ export const VIDEOLINKS = { ...@@ -26,6 +26,7 @@ export const VIDEOLINKS = {
videoType: 'web', videoType: 'web',
web: { web: {
autoplay: true, autoplay: true,
height: 300,
muted: true, muted: true,
loop: true, loop: true,
controlBar: { controlBar: {
...@@ -43,6 +44,7 @@ export const VIDEOLINKS = { ...@@ -43,6 +44,7 @@ export const VIDEOLINKS = {
sources: [{ sources: [{
type: 'rtmp/mp4' type: 'rtmp/mp4'
}], }],
height: 300,
techOrder: ['flash'], techOrder: ['flash'],
autoplay: false, autoplay: false,
controls: true, controls: true,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论