提交 f9b445a8 authored 作者: lihuihui's avatar lihuihui

修改视频不能拖拽问题

上级 b748be9c
...@@ -60,7 +60,7 @@ export default { ...@@ -60,7 +60,7 @@ export default {
const loading = this.$loading({ lock: true, text: '', spinner: '', background: 'rgba(255, 255, 255, 0.9)' }) const loading = this.$loading({ lock: true, text: '', spinner: '', background: 'rgba(255, 255, 255, 0.9)' })
cAction.Player.getCurrentChapterDetailAliyun(this.videoId).then(json => { cAction.Player.getCurrentChapterDetailAliyun(this.videoId).then(json => {
this.videoArr = json.video this.videoArr = json.video
isLocked = json.isLocked isLocked = json.is_locked
const player = this.getPlayer() const player = this.getPlayer()
if (!objPlayer || !player.innerHTML) { if (!objPlayer || !player.innerHTML) {
this.renderPlayer(PLAYER_ID, this.videoId, this.autoPlay, this.videoSrt, this.username, this.width, this.height) this.renderPlayer(PLAYER_ID, this.videoId, this.autoPlay, this.videoSrt, this.username, this.width, this.height)
...@@ -86,6 +86,7 @@ export default { ...@@ -86,6 +86,7 @@ export default {
} }
/* 是否可以 第一次调整音视频进度 */ /* 是否可以 第一次调整音视频进度 */
if (!isLocked) { if (!isLocked) {
console.log(isLocked, '========')
if (that.chapterVideo.progress.mpt + 20 < videoPlayer.getDuration()) { if (that.chapterVideo.progress.mpt + 20 < videoPlayer.getDuration()) {
$('.prism-progress').css({ 'pointer-events': 'none' }) $('.prism-progress').css({ 'pointer-events': 'none' })
$('.rate-components').hide() $('.rate-components').hide()
...@@ -163,7 +164,7 @@ export default { ...@@ -163,7 +164,7 @@ export default {
const loading = that.$loading({ lock: true, text: '', spinner: '', background: 'rgba(255, 255, 255, 0.9)' }) const loading = that.$loading({ lock: true, text: '', spinner: '', background: 'rgba(255, 255, 255, 0.9)' })
cAction.Player.getCurrentChapterDetailAliyun(that.videoId).then(json => { cAction.Player.getCurrentChapterDetailAliyun(that.videoId).then(json => {
that.videoArr = json.video that.videoArr = json.video
isLocked = json.isLocked isLocked = json.is_locked
const player = that.getPlayer() const player = that.getPlayer()
if (!objPlayer || !player.innerHTML) { if (!objPlayer || !player.innerHTML) {
that.renderPlayer(PLAYER_ID, that.videoId, that.autoPlay, that.videoSrt, that.username, that.width, that.height) that.renderPlayer(PLAYER_ID, that.videoId, that.autoPlay, that.videoSrt, that.username, that.width, that.height)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论