Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
022c1ad6
authored
Oct 28, 2015
by
Rik Heijdens
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Store HLS trackname in the Variant class instead of Format class
parent
1c1f5af5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
library/src/main/java/com/google/android/exoplayer/hls/Variant.java
library/src/main/java/com/google/android/exoplayer/hls/Variant.java
View file @
022c1ad6
...
@@ -26,16 +26,13 @@ public final class Variant implements FormatWrapper {
...
@@ -26,16 +26,13 @@ public final class Variant implements FormatWrapper {
public
final
String
url
;
public
final
String
url
;
public
final
Format
format
;
public
final
Format
format
;
public
final
String
name
;
public
Variant
(
int
index
,
String
name
,
String
url
,
int
bitrate
,
String
codecs
,
int
width
,
int
height
)
{
public
Variant
(
int
index
,
String
name
,
String
url
,
int
bitrate
,
String
codecs
,
int
width
,
int
height
)
{
this
.
url
=
url
;
this
.
url
=
url
;
if
(
name
!=
null
)
{
this
.
name
=
name
;
format
=
new
Format
(
name
,
MimeTypes
.
APPLICATION_M3U8
,
width
,
height
,
-
1
,
-
1
,
format
=
new
Format
(
Integer
.
toString
(
index
),
MimeTypes
.
APPLICATION_M3U8
,
width
,
height
,
-
1
,
-
1
,
-
1
,
bitrate
,
null
,
codecs
);
-
1
,
bitrate
,
null
,
codecs
);
}
else
{
format
=
new
Format
(
Integer
.
toString
(
index
),
MimeTypes
.
APPLICATION_M3U8
,
width
,
height
,
-
1
,
-
1
,
-
1
,
bitrate
,
null
,
codecs
);
}
}
}
@Override
@Override
...
@@ -43,4 +40,8 @@ public final class Variant implements FormatWrapper {
...
@@ -43,4 +40,8 @@ public final class Variant implements FormatWrapper {
return
format
;
return
format
;
}
}
public
String
getName
()
{
return
name
;
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment