Fix/track selection by title (#4129)

* chore(sample): make track selection by title possible

* fix(android): fix test for track selection by title
This commit is contained in:
Olivier Bouillet
2024-09-02 19:10:39 +02:00
committed by GitHub
parent 89df9d69ff
commit 308447a5ba
5 changed files with 32 additions and 34 deletions

View File

@@ -1940,7 +1940,7 @@ public class ReactExoplayerView extends FrameLayout implements
} else if ("title".equals(type)) {
for (int i = 0; i < groups.length; ++i) {
Format format = groups.get(i).getFormat(0);
if (format.id != null && format.id.equals(value)) {
if (format.label != null && format.label.equals(value)) {
groupIndex = i;
break;
}