zlm适配新的云端录像播放界面

This commit is contained in:
lin
2025-09-19 23:52:24 +08:00
parent ff0d54968d
commit a2ac65dc70
2 changed files with 31 additions and 74 deletions

View File

@@ -167,7 +167,10 @@ export default {
this.mediaInfo = h265web.mediaInfo()
}
h265web.onPlayTime = (videoPTS) => {
this.$emit('playTimeChange', videoPTS)
if (h265web.videoPTS) {
this.$emit('playTimeChange', videoPTS - h265web.videoPTS)
}
h265web.videoPTS = videoPTS
}
h265web.do()
},
@@ -256,9 +259,6 @@ export default {
},
setPlaybackRate: function(speed) {
h265webPlayer[this._uid].setPlaybackRate(speed)
},
playNextFrame: function() {
h265webPlayer[this._uid].do()
}
}
}