12.3
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
:object-fit="objectFit"
|
||||
:style="{width: addUnit(videoWidth), height: addUnit(videoHeight)}"
|
||||
@play="play"
|
||||
@pause="emit('pause')"
|
||||
@pause="pauseVideo"
|
||||
@ended="ended"
|
||||
@error="(e) => emit('playError', e)"
|
||||
@timeupdate="timeupdate"
|
||||
@@ -321,6 +321,11 @@
|
||||
state.enablePlayGesture = true
|
||||
emit('play', e)
|
||||
};
|
||||
|
||||
function pauseVideo() {
|
||||
state.isPlay = false;
|
||||
emit('pause',e)
|
||||
}
|
||||
/**
|
||||
* 视频播放进度变化 - 会触发emit事件
|
||||
* @param {Object} e event.detail = {currentTime, duration}
|
||||
|
||||
Reference in New Issue
Block a user