Merge pull request #1215 from dataease/pr@dev@refactor_panel-video

refactor:优化视频拖拽效果
This commit is contained in:
王嘉豪 2021-11-16 18:32:46 +08:00 committed by GitHub
commit 33b057aefa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -1,8 +1,7 @@
<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"

View File

@ -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 = {
sources: [{ sources: [{
type: 'rtmp/mp4' type: 'rtmp/mp4'
}], }],
height: 300,
techOrder: ['flash'], techOrder: ['flash'],
autoplay: false, autoplay: false,
controls: true, controls: true,