mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-09 10:56:47 +08:00
视频组件
This commit is contained in:
@@ -4,11 +4,13 @@
|
||||
<video-player
|
||||
:url="fileUrl"
|
||||
:name="title"
|
||||
:inittime="initTime"
|
||||
:drag="true"
|
||||
@onPlay="videoPlay"
|
||||
@onPause="videoPause"
|
||||
@onPlaying="videoPlaying"
|
||||
@onEnded="videoEnd">
|
||||
@play="videoPlay"
|
||||
@pause="videoPause"
|
||||
@playing="videoPlaying"
|
||||
@ended="videoEnd"
|
||||
@fullscreenchange="videoScreen">
|
||||
</video-player>
|
||||
</view>
|
||||
<!-- <view style="padding-top: 30px;display: flex;justify-content: center;">
|
||||
@@ -22,6 +24,7 @@
|
||||
data(){
|
||||
return {
|
||||
fileUrl:'/static/temp/test.mp4',
|
||||
initTime:20,
|
||||
title:'测试播放',
|
||||
author:'',
|
||||
}
|
||||
@@ -51,6 +54,9 @@
|
||||
},
|
||||
videoPlaying(){
|
||||
console.log('videoPlaying');
|
||||
},
|
||||
videoScreen(e){
|
||||
console.log('全屏',e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user