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
49f4fe78
authored
Jun 15, 2015
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Rename URL->URI for manifest fetching
parent
ded10605
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
19 deletions
library/src/main/java/com/google/android/exoplayer/dash/mpd/MediaPresentationDescription.java
library/src/main/java/com/google/android/exoplayer/util/ManifestFetcher.java
library/src/main/java/com/google/android/exoplayer/dash/mpd/MediaPresentationDescription.java
View file @
49f4fe78
...
...
@@ -58,7 +58,7 @@ public class MediaPresentationDescription implements RedirectingManifest {
}
@Override
public
String
getNextManifestUr
l
()
{
public
String
getNextManifestUr
i
()
{
return
location
;
}
...
...
library/src/main/java/com/google/android/exoplayer/util/ManifestFetcher.java
View file @
49f4fe78
...
...
@@ -86,15 +86,15 @@ public class ManifestFetcher<T> implements Loader.Callback {
/**
* Interface for manifests that are able to specify that subsequent loads should use a different
* UR
L
.
* UR
I
.
*/
public
interface
RedirectingManifest
{
/**
* Returns the UR
L
from which subsequent manifests should be requested, or null to continue
* using the current UR
L
.
* Returns the UR
I
from which subsequent manifests should be requested, or null to continue
* using the current UR
I
.
*/
public
String
getNextManifestUr
l
();
public
String
getNextManifestUr
i
();
}
...
...
@@ -103,7 +103,7 @@ public class ManifestFetcher<T> implements Loader.Callback {
private
final
Handler
eventHandler
;
private
final
EventListener
eventListener
;
/* package */
volatile
String
manifestUr
l
;
/* package */
volatile
String
manifestUr
i
;
private
int
enabledCount
;
private
Loader
loader
;
...
...
@@ -117,27 +117,27 @@ public class ManifestFetcher<T> implements Loader.Callback {
private
volatile
long
manifestLoadTimestamp
;
/**
* @param manifestUr
l
The manifest location.
* @param manifestUr
i
The manifest location.
* @param uriDataSource The {@link UriDataSource} to use when loading the manifest.
* @param parser A parser to parse the loaded manifest data.
*/
public
ManifestFetcher
(
String
manifestUr
l
,
UriDataSource
uriDataSource
,
public
ManifestFetcher
(
String
manifestUr
i
,
UriDataSource
uriDataSource
,
UriLoadable
.
Parser
<
T
>
parser
)
{
this
(
manifestUr
l
,
uriDataSource
,
parser
,
null
,
null
);
this
(
manifestUr
i
,
uriDataSource
,
parser
,
null
,
null
);
}
/**
* @param manifestUr
l
The manifest location.
* @param manifestUr
i
The manifest location.
* @param uriDataSource The {@link UriDataSource} to use when loading the manifest.
* @param parser A parser to parse the loaded manifest data.
* @param eventHandler A handler to use when delivering events to {@code eventListener}. May be
* null if delivery of events is not required.
* @param eventListener A listener of events. May be null if delivery of events is not required.
*/
public
ManifestFetcher
(
String
manifestUr
l
,
UriDataSource
uriDataSource
,
public
ManifestFetcher
(
String
manifestUr
i
,
UriDataSource
uriDataSource
,
UriLoadable
.
Parser
<
T
>
parser
,
Handler
eventHandler
,
EventListener
eventListener
)
{
this
.
parser
=
parser
;
this
.
manifestUr
l
=
manifestUrl
;
this
.
manifestUr
i
=
manifestUri
;
this
.
uriDataSource
=
uriDataSource
;
this
.
eventHandler
=
eventHandler
;
this
.
eventListener
=
eventListener
;
...
...
@@ -146,10 +146,10 @@ public class ManifestFetcher<T> implements Loader.Callback {
/**
* Updates the manifest location.
*
* @param manifestUr
l
The manifest location.
* @param manifestUr
i
The manifest location.
*/
public
void
updateManifestUr
l
(
String
manifestUrl
)
{
this
.
manifestUr
l
=
manifestUrl
;
public
void
updateManifestUr
i
(
String
manifestUri
)
{
this
.
manifestUr
i
=
manifestUri
;
}
/**
...
...
@@ -161,7 +161,7 @@ public class ManifestFetcher<T> implements Loader.Callback {
*/
public
void
singleLoad
(
Looper
callbackLooper
,
final
ManifestCallback
<
T
>
callback
)
{
SingleFetchHelper
fetchHelper
=
new
SingleFetchHelper
(
new
UriLoadable
<>(
manifestUr
l
,
uriDataSource
,
parser
),
callbackLooper
,
callback
);
new
UriLoadable
<>(
manifestUr
i
,
uriDataSource
,
parser
),
callbackLooper
,
callback
);
fetchHelper
.
startLoading
();
}
...
...
@@ -234,7 +234,7 @@ public class ManifestFetcher<T> implements Loader.Callback {
loader
=
new
Loader
(
"manifestLoader"
);
}
if
(!
loader
.
isLoading
())
{
currentLoadable
=
new
UriLoadable
<>(
manifestUr
l
,
uriDataSource
,
parser
);
currentLoadable
=
new
UriLoadable
<>(
manifestUr
i
,
uriDataSource
,
parser
);
loader
.
startLoading
(
currentLoadable
,
this
);
notifyManifestRefreshStarted
();
}
...
...
@@ -254,9 +254,9 @@ public class ManifestFetcher<T> implements Loader.Callback {
if
(
manifest
instanceof
RedirectingManifest
)
{
RedirectingManifest
redirectingManifest
=
(
RedirectingManifest
)
manifest
;
String
nextLocation
=
redirectingManifest
.
getNextManifestUr
l
();
String
nextLocation
=
redirectingManifest
.
getNextManifestUr
i
();
if
(!
TextUtils
.
isEmpty
(
nextLocation
))
{
manifestUr
l
=
nextLocation
;
manifestUr
i
=
nextLocation
;
}
}
...
...
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