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
9e615ce5
authored
Jul 26, 2021
by
olly
Committed by
bachinger
Jul 27, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Update dev guide to use non-deprecated factory
#minor-release PiperOrigin-RevId: 386966219
parent
cdf26a01
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
docs/dash.md
docs/downloading-media.md
docs/hls.md
docs/progressive.md
docs/smoothstreaming.md
docs/dash.md
View file @
9e615ce5
...
...
@@ -39,7 +39,7 @@ directly to the player instead of a `MediaItem`.
~~~
// Create a data source factory.
DataSource.Factory dataSourceFactory = new DefaultHttpDataSourceFactory();
DataSource.Factory dataSourceFactory = new DefaultHttpDataSource
.
Factory();
// Create a DASH media source pointing to a DASH manifest uri.
MediaSource mediaSource =
new DashMediaSource.Factory(dataSourceFactory)
...
...
docs/downloading-media.md
View file @
9e615ce5
...
...
@@ -72,7 +72,7 @@ downloadCache = new SimpleCache(
databaseProvider);
// Create a factory for reading the data from the network.
dataSourceFactory = new DefaultHttpDataSourceFactory();
dataSourceFactory = new DefaultHttpDataSource
.
Factory();
// Choose an executor for downloading data. Using Runnable::run will cause each download task to
// download data on its own thread. Passing an executor that uses multiple threads will speed up
...
...
docs/hls.md
View file @
9e615ce5
...
...
@@ -42,7 +42,7 @@ directly to the player instead of a `MediaItem`.
~~~
// Create a data source factory.
DataSource.Factory dataSourceFactory = new DefaultHttpDataSourceFactory();
DataSource.Factory dataSourceFactory = new DefaultHttpDataSource
.
Factory();
// Create a HLS media source pointing to a playlist uri.
HlsMediaSource hlsMediaSource =
new HlsMediaSource.Factory(dataSourceFactory)
...
...
docs/progressive.md
View file @
9e615ce5
...
...
@@ -26,7 +26,7 @@ directly to the player instead of a `MediaItem`.
~~~
// Create a data source factory.
DataSource.Factory dataSourceFactory = new DefaultHttpDataSourceFactory();
DataSource.Factory dataSourceFactory = new DefaultHttpDataSource
.
Factory();
// Create a progressive media source pointing to a stream uri.
MediaSource mediaSource = new ProgressiveMediaSource.Factory(dataSourceFactory)
.createMediaSource(MediaItem.fromUri(progressiveUri));
...
...
docs/smoothstreaming.md
View file @
9e615ce5
...
...
@@ -41,7 +41,7 @@ directly to the player instead of a `MediaItem`.
~~~
// Create a data source factory.
DataSource.Factory dataSourceFactory = new DefaultHttpDataSourceFactory();
DataSource.Factory dataSourceFactory = new DefaultHttpDataSource
.
Factory();
// Create a SmoothStreaming media source pointing to a manifest uri.
MediaSource mediaSource =
new SsMediaSource.Factory(dataSourceFactory)
...
...
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