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

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