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

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