mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-13 15:56:15 -08:00
fix(dash-control): select stable representation IDs
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user