From 9e615ce5f39fbb314271c937f62f648bcca03557 Mon Sep 17 00:00:00 2001 From: olly Date: Mon, 26 Jul 2021 22:57:06 +0100 Subject: [PATCH] Update dev guide to use non-deprecated factory #minor-release PiperOrigin-RevId: 386966219 --- docs/dash.md | 2 +- docs/downloading-media.md | 2 +- docs/hls.md | 2 +- docs/progressive.md | 2 +- docs/smoothstreaming.md | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/dash.md b/docs/dash.md index 8b3ef2571e..01bf698455 100644 --- a/docs/dash.md +++ b/docs/dash.md @@ -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) diff --git a/docs/downloading-media.md b/docs/downloading-media.md index 61cf771815..d696520a2f 100644 --- a/docs/downloading-media.md +++ b/docs/downloading-media.md @@ -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 diff --git a/docs/hls.md b/docs/hls.md index 9718306ac7..bc017ae74d 100644 --- a/docs/hls.md +++ b/docs/hls.md @@ -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) diff --git a/docs/progressive.md b/docs/progressive.md index 91ef639f1c..061e9cf522 100644 --- a/docs/progressive.md +++ b/docs/progressive.md @@ -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)); diff --git a/docs/smoothstreaming.md b/docs/smoothstreaming.md index fb6824cde4..67c04cbd49 100644 --- a/docs/smoothstreaming.md +++ b/docs/smoothstreaming.md @@ -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)