1.0.4 • Published 1 month ago
videoplay-preview v1.0.4
Vue 3 + Vite
This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 <script setup>
SFCs, check out the script setup docs to learn more.
Recommended IDE Setup
- VS Code + Vue - Official (previously Volar) and disable Vetur
参数
- 全局视频组件 videoObj:{ originalUrl: string, 视频播放路径 autoPlay: boolean, 是否自动播放 coverUrl: string,视频封面 height: 400,视频高度 position: false,是否绝对定位,用在套餐展示里 videoSecond: 2000,视频时长 isPaused: false,是否暂停 loop:false,是否循环播放 } isShowVideoPopup:false,监听视频组件被引用
播放视频暴露的接口:parseOrPlayVideo 播放视频结束暴露的接口:parseVideo