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
da1f3f01
authored
Jun 14, 2019
by
Toni
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge pull request #6036 from angelrc96:dev-v2
PiperOrigin-RevId: 253228214
parents
30ac71d4
28ee05f6
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 @
da1f3f01
...
@@ -19,6 +19,8 @@
...
@@ -19,6 +19,8 @@
*
Add VR player demo.
*
Add VR player demo.
*
Wrap decoder exceptions in a new
`DecoderException`
class and report as
*
Wrap decoder exceptions in a new
`DecoderException`
class and report as
renderer error.
renderer error.
*
Add support for auto-detecting UDP streams in
`DefaultDataSource`
(
[
#6036
](
https://github.com/google/ExoPlayer/pull/6036
)
).
### 2.10.2 ###
### 2.10.2 ###
...
...
library/core/src/main/java/com/google/android/exoplayer2/upstream/DefaultDataSource.java
View file @
da1f3f01
...
@@ -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, String, boolean)}, or any other
* if constructed using {@link #DefaultDataSource(Context, String, boolean)}, or any other
* schemes supported by a base data source if constructed using {@link
* schemes supported by a base data source if constructed using {@link
...
@@ -164,7 +165,7 @@ public final class DefaultDataSource implements DataSource {
...
@@ -164,7 +165,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
();
...
@@ -204,7 +205,7 @@ public final class DefaultDataSource implements DataSource {
...
@@ -204,7 +205,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