fix(dash-control): select stable representation IDs

This commit is contained in:
Harvey Zhao committed 2026-09-10 17:17:54 +08:00
1 parent cb69e4ad66
commit 59d3c9f50c
12 files changed
+133 -8

No files matched your search

@@ -36,6 +36,7 @@ export default function artplayerPluginDashControl(option = {}) {
return {
html: getName(item),
value: index,
id: item.id,
default: !currentAuto && !!currentId && item.id === currentId,
}
}),
@@ -70,7 +71,7 @@ export default function artplayerPluginDashControl(option = {}) {
},
},
})
dash.setRepresentationForTypeByIndex('video', item.value)
dash.setRepresentationForTypeById('video', item.id)
}
art.notice.show = `${title}: ${item.html}`
if (config.control)