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
7f435b47
authored
Jun 14, 2019
by
Toni
Committed by
Oliver Woodman
Jun 19, 2019
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Merge pull request #6036 from angelrc96:dev-v2
PiperOrigin-RevId: 253228214
parent
692f4152
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
RELEASENOTES.md
library/core/src/main/java/com/google/android/exoplayer2/upstream/DefaultDataSource.java
RELEASENOTES.md
View file @
7f435b47
...
@@ -39,6 +39,8 @@
...
@@ -39,6 +39,8 @@
(
[
#5971
](
https://github.com/google/ExoPlayer/issues/5971
)
).
(
[
#5971
](
https://github.com/google/ExoPlayer/issues/5971
)
).
*
Fix bug in
`CastPlayer.getCurrentWindowIndex()`
*
Fix bug in
`CastPlayer.getCurrentWindowIndex()`
(
[
#5955
](
https://github.com/google/ExoPlayer/issues/5955
)
).
(
[
#5955
](
https://github.com/google/ExoPlayer/issues/5955
)
).
*
Add support for auto-detecting UDP streams in
`DefaultDataSource`
(
[
#6036
](
https://github.com/google/ExoPlayer/pull/6036
)
).
### 2.10.1 ###
### 2.10.1 ###
...
...
library/core/src/main/java/com/google/android/exoplayer2/upstream/DefaultDataSource.java
View file @
7f435b47
...
@@ -42,6 +42,7 @@ import java.util.Map;
...
@@ -42,6 +42,7 @@ import java.util.Map;
* <li>rtmp: For fetching data over RTMP. Only supported if the project using ExoPlayer has an
* <li>rtmp: For fetching data over RTMP. Only supported if the project using ExoPlayer has an
* explicit dependency on ExoPlayer's RTMP extension.
* explicit dependency on ExoPlayer's RTMP extension.
* <li>data: For parsing data inlined in the URI as defined in RFC 2397.
* <li>data: For parsing data inlined in the URI as defined in RFC 2397.
* <li>udp: For fetching data over UDP (e.g. udp://something.com/media).
* <li>http(s): For fetching data over HTTP and HTTPS (e.g. https://www.something.com/media.mp4),
* <li>http(s): For fetching data over HTTP and HTTPS (e.g. https://www.something.com/media.mp4),
* if constructed using {@link #DefaultDataSource(Context, TransferListener, String,
* if constructed using {@link #DefaultDataSource(Context, TransferListener, String,
* boolean)}, or any other schemes supported by a base data source if constructed using {@link
* boolean)}, or any other schemes supported by a base data source if constructed using {@link
...
@@ -243,7 +244,7 @@ public final class DefaultDataSource implements DataSource {
...
@@ -243,7 +244,7 @@ public final class DefaultDataSource implements DataSource {
dataSource
=
getContentDataSource
();
dataSource
=
getContentDataSource
();
}
else
if
(
SCHEME_RTMP
.
equals
(
scheme
))
{
}
else
if
(
SCHEME_RTMP
.
equals
(
scheme
))
{
dataSource
=
getRtmpDataSource
();
dataSource
=
getRtmpDataSource
();
}
else
if
(
SCHEME_UDP
.
equals
(
scheme
))
{
}
else
if
(
SCHEME_UDP
.
equals
(
scheme
))
{
dataSource
=
getUdpDataSource
();
dataSource
=
getUdpDataSource
();
}
else
if
(
DataSchemeDataSource
.
SCHEME_DATA
.
equals
(
scheme
))
{
}
else
if
(
DataSchemeDataSource
.
SCHEME_DATA
.
equals
(
scheme
))
{
dataSource
=
getDataSchemeDataSource
();
dataSource
=
getDataSchemeDataSource
();
...
@@ -282,7 +283,7 @@ public final class DefaultDataSource implements DataSource {
...
@@ -282,7 +283,7 @@ public final class DefaultDataSource implements DataSource {
}
}
}
}
private
DataSource
getUdpDataSource
(){
private
DataSource
getUdpDataSource
()
{
if
(
udpDataSource
==
null
)
{
if
(
udpDataSource
==
null
)
{
udpDataSource
=
new
UdpDataSource
();
udpDataSource
=
new
UdpDataSource
();
addListenersToDataSource
(
udpDataSource
);
addListenersToDataSource
(
udpDataSource
);
...
...
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