diff --git a/core/core-frontend/package.json b/core/core-frontend/package.json index 71aeda025a..43ca839c9b 100644 --- a/core/core-frontend/package.json +++ b/core/core-frontend/package.json @@ -20,6 +20,7 @@ "@codemirror/lang-sql": "^6.4.0", "@npkg/tinymce-plugins": "^0.0.7", "@tinymce/tinymce-vue": "^5.1.0", + "@videojs-player/vue": "^1.0.0", "@vueuse/core": "^9.13.0", "ace-builds": "^1.15.3", "axios": "^1.3.3", @@ -45,6 +46,7 @@ "snowflake-id": "^1.1.0", "tinymce": "^5.8.2", "vant": "^4.8.3", + "video.js": "^8.12.0", "vue": "^3.3.4", "vue-clipboard3": "^2.0.0", "vue-codemirror": "^6.1.1", @@ -53,7 +55,6 @@ "vue-types": "^5.0.2", "vue-uuid": "^3.0.0", "vue3-ace-editor": "^2.2.2", - "vue3-video-play": "^1.3.2", "vuedraggable": "^4.1.0", "web-storage-cache": "^1.1.1", "xss": "^1.0.14" diff --git a/core/core-frontend/src/custom-component/component-list.ts b/core/core-frontend/src/custom-component/component-list.ts index 8b6e3a5e4d..f4183e92eb 100644 --- a/core/core-frontend/src/custom-component/component-list.ts +++ b/core/core-frontend/src/custom-component/component-list.ts @@ -26,21 +26,20 @@ export const VIDEO_LINKS_DE2 = { videoType: 'web', poster: null, web: { - width: '100%', //播放器宽度 - height: '100%', //播放器高度 - color: '#409eff', //主题色 - title: '', //视频名称 src: null, //视频源 - muted: false, //静音 - webFullScreen: false, - speedRate: ['0.75', '1.0', '1.25', '1.5', '2.0'], //播放倍速 - autoPlay: true, //自动播放 - loop: false, //循环播放 - mirror: false, //镜像画面 - lightOff: false, //关灯模式 - volume: 0.3, //默认音量大小 - control: true, //是否显示控制 - controlBtns: ['audioTrack', 'quality', 'volume', 'fullScreen'] //显示所有按钮, + autoplay: true, // 如果true,浏览器准备好时开始回放。 + muted: true, // 默认情况下将会消除任何音频。 + loop: true, // 导致视频一结束就重新开始。 + preload: 'auto', // 建议浏览器在