Commit 022c1ad6 by Rik Heijdens

Store HLS trackname in the Variant class instead of Format class

parent 1c1f5af5
......@@ -26,16 +26,13 @@ public final class Variant implements FormatWrapper {
public final String url;
public final Format format;
public final String name;
public Variant(int index, String name, String url, int bitrate, String codecs, int width, int height) {
this.url = url;
if (name != null) {
format = new Format(name, MimeTypes.APPLICATION_M3U8, width, height, -1, -1,
-1, bitrate, null, codecs);
} else {
format = new Format(Integer.toString(index), MimeTypes.APPLICATION_M3U8, width, height, -1, -1,
-1, bitrate, null, codecs);
}
this.name = name;
format = new Format(Integer.toString(index), MimeTypes.APPLICATION_M3U8, width, height, -1, -1,
-1, bitrate, null, codecs);
}
@Override
......@@ -43,4 +40,8 @@ public final class Variant implements FormatWrapper {
return format;
}
public String getName() {
return name;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment