mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-05-11 00:49:34 +08:00
😋 修复精简模式下切换视频无法保留历史记录的问题
This commit is contained in:
@@ -92,6 +92,7 @@ export default {
|
||||
this.xg.on('ended', () => {
|
||||
if (this.d.m3u8_urls.length > 1 && (this.d.m3u8_urls.length - 1 > this.index)) {
|
||||
this.video.currentTime = 0
|
||||
this.video.index++
|
||||
this.index++
|
||||
let src = this.d.m3u8_urls[this.index]
|
||||
src = src.split('$')[1]
|
||||
@@ -122,6 +123,7 @@ export default {
|
||||
if (res) {
|
||||
const v = res
|
||||
v.currentTime = this.xg.currentTime
|
||||
v.index = this.index
|
||||
const id = v.id
|
||||
delete v.id
|
||||
history.update(id, v)
|
||||
|
||||
Reference in New Issue
Block a user