diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 94b349b217..388b2ed259 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -19,8 +19,6 @@ We will also consider high quality pull requests. These should normally merge into the `dev-v2` branch. Before a pull request can be accepted you must submit a Contributor License Agreement, as described below. -[dev]: https://github.com/google/ExoPlayer/tree/dev - ## Contributor license agreement ## Contributions to any Google project must be accompanied by a Contributor diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 17a41a0618..093665e647 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -3,35 +3,40 @@ ### dev-v2 (not yet released) * Core Library: + * Add protected method `DefaultRenderersFactory.getCodecAdapterFactory()` + so that subclasses of `DefaultRenderersFactory` that override + `buildVideoRenderers()` or `buildAudioRenderers()` can access the codec + adapter factory and pass it to `MediaCodecRenderer` instances they + create. + +### 2.16.0 (2021-11-04) + +* Core Library: + * Deprecate `SimpleExoPlayer`. All functionality has been moved to + `ExoPlayer` instead. `ExoPlayer.Builder` can be used instead of + `SimpleExoPlayer.Builder`. + * Add track selection methods to the `Player` interface, for example, + `Player.getCurrentTracksInfo` and `Player.setTrackSelectionParameters`. + These methods can be used instead of directly accessing the track + selector. * Enable MediaCodec asynchronous queueing by default on devices with API level >= 31. Add methods in `DefaultMediaCodecRendererFactory` and `DefaultRenderersFactory` to force enable or force disable asynchronous queueing ([6348](https://github.com/google/ExoPlayer/issues/6348)). - * Add 12 public method headers to `ExoPlayer` that exist in - `SimpleExoPlayer`, such that all public methods in `SimpleExoPlayer` are - overrides. + * Remove final dependency on `jcenter()`. + * Fix `mediaMetadata` being reset when media is repeated + ([#9458](https://github.com/google/ExoPlayer/issues/9458)). + * Adjust `ExoPlayer` `MediaMetadata` update priority, such that values + input through the `MediaItem.MediaMetadata` are used above media derived + values. * Move `com.google.android.exoplayer2.device.DeviceInfo` to `com.google.android.exoplayer2.DeviceInfo`. * Move `com.google.android.exoplayer2.drm.DecryptionException` to `com.google.android.exoplayer2.decoder.CryptoException`. * Move `com.google.android.exoplayer2.upstream.cache.CachedRegionTracker` to `com.google.android.exoplayer2.upstream.CachedRegionTracker`. - * Make `ExoPlayer.Builder` return a `SimpleExoPlayer` instance. - * Deprecate `SimpleExoPlayer.Builder`. Use `ExoPlayer.Builder` instead. - * Remove `ExoPlayerLibraryInfo.GL_ASSERTIONS_ENABLED`. Use - `GlUtil.glAssertionsEnabled` instead. * Move `Player.addListener(EventListener)` and `Player.removeListener(EventListener)` out of `Player` into subclasses. - * Fix `mediaMetadata` being reset when media is repeated - ([#9458](https://github.com/google/ExoPlayer/issues/9458)). -* Video: - * Fix bug in `MediaCodecVideoRenderer` that resulted in re-using a - released `Surface` when playing without an app-provided `Surface` - ([#9476](https://github.com/google/ExoPlayer/issues/9476)). -* DRM: - * Log an error (instead of throwing `IllegalStateException`) when calling - `DefaultDrmSession#release()` on a fully released session - ([#9392](https://github.com/google/ExoPlayer/issues/9392)). * Android 12 compatibility: * Keep `DownloadService` started and in the foreground whilst waiting for requirements to be met on Android 12. This is necessary due to new @@ -47,6 +52,14 @@ are not compatible with apps targeting Android 12, and will crash with an `IllegalArgumentException` when creating `PendingIntent`s ([#9181](https://github.com/google/ExoPlayer/issues/9181)). +* Video: + * Fix bug in `MediaCodecVideoRenderer` that resulted in re-using a + released `Surface` when playing without an app-provided `Surface` + ([#9476](https://github.com/google/ExoPlayer/issues/9476)). +* DRM: + * Log an error (instead of throwing `IllegalStateException`) when calling + `DefaultDrmSession#release()` on a fully released session + ([#9392](https://github.com/google/ExoPlayer/issues/9392)). * UI: * `SubtitleView` no longer implements `TextOutput`. `SubtitleView` implements `Player.Listener`, so can be registered to a player with @@ -59,6 +72,10 @@ * MP4: Correctly handle HEVC tracks with pixel aspect ratios other than 1. * MP4: Add support for Dolby TrueHD (only for unfragmented streams) ([#9496](https://github.com/google/ExoPlayer/issues/9496)). + * MP4: Avoid throwing `ArrayIndexOutOfBoundsException` when parsing + invalid `colr` boxes produced by some device cameras + ([#9332](https://github.com/google/ExoPlayer/issues/9332)). + * MP4: Parse HDR static metadata from the `clli` and `mdcv` boxes. * TS: Correctly handle HEVC tracks with pixel aspect ratios other than 1. * TS: Map stream type 0x80 to H262 ([#9472](https://github.com/google/ExoPlayer/issues/9472)). @@ -68,7 +85,7 @@ requirements for downloads to continue. In both cases, `DownloadService` will now remain started and in the foreground whilst waiting for requirements to be met. - * Modify `DownlaodService` behavior when running on Android 12 and above. + * Modify `DownloadService` behavior when running on Android 12 and above. See the "Android 12 compatibility" section above. * RTSP: * Support RFC4566 SDP attribute field grammar @@ -79,6 +96,22 @@ * Populate `Format.sampleMimeType`, `width` and `height` for image `AdaptationSet` elements ([#9500](https://github.com/google/ExoPlayer/issues/9500)). +* HLS: + * Fix rounding error in HLS playlists + ([#9575](https://github.com/google/ExoPlayer/issues/9575)). + * Fix `NoSuchElementException` thrown when an HLS manifest declares + `#EXT-X-RENDITION-REPORT` at the beginning of the playlist + ([#9592](https://github.com/google/ExoPlayer/issues/9592)). +* RTMP extension: + * Upgrade to `io.antmedia:rtmp_client`, which does not rely on `jcenter()` + ([#9591](https://github.com/google/ExoPlayer/issues/9591)). +* MediaSession extension: + * Rename + `MediaSessionConnector.QueueNavigator#onCurrentWindowIndexChanged` to + `onCurrentMediaItemIndexChanged`. +* Transformer: + * Avoid sending a duplicate timestamp to the encoder with the end of + stream buffer. * Remove deprecated symbols: * Remove `Renderer.VIDEO_SCALING_MODE_*` constants. Use identically named constants in `C` instead. diff --git a/build.gradle b/build.gradle index da37ad7bf6..d362ff785b 100644 --- a/build.gradle +++ b/build.gradle @@ -17,7 +17,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.0.0' + classpath 'com.android.tools.build:gradle:7.0.3' classpath 'com.google.android.gms:strict-version-matcher-plugin:1.2.2' } } @@ -25,7 +25,6 @@ allprojects { repositories { google() mavenCentral() - jcenter() } if (it.hasProperty('externalBuildDir')) { if (!new File(externalBuildDir).isAbsolute()) { diff --git a/common_library_config.gradle b/common_library_config.gradle index 431a7ab14d..6164b35e15 100644 --- a/common_library_config.gradle +++ b/common_library_config.gradle @@ -11,7 +11,6 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. - apply from: "$gradle.ext.exoplayerSettingsDir/constants.gradle" apply plugin: 'com.android.library' diff --git a/constants.gradle b/constants.gradle index 400eba8c9f..bd4a545c4c 100644 --- a/constants.gradle +++ b/constants.gradle @@ -13,8 +13,8 @@ // limitations under the License. project.ext { // ExoPlayer version and version code. - releaseVersion = '2.15.1' - releaseVersionCode = 2015001 + releaseVersion = '2.16.0' + releaseVersionCode = 2016000 minSdkVersion = 16 appTargetSdkVersion = 29 // Upgrading this requires [Internal ref: b/193254928] to be fixed, or some diff --git a/core_settings.gradle b/core_settings.gradle index 3002d134fb..83ec79ef72 100644 --- a/core_settings.gradle +++ b/core_settings.gradle @@ -51,6 +51,11 @@ project(modulePrefix + 'library-ui').projectDir = new File(rootDir, 'library/ui' include modulePrefix + 'extension-leanback' project(modulePrefix + 'extension-leanback').projectDir = new File(rootDir, 'extensions/leanback') +include modulePrefix + 'library-database' +project(modulePrefix + 'library-database').projectDir = new File(rootDir, 'library/database') + +include modulePrefix + 'library-datasource' +project(modulePrefix + 'library-datasource').projectDir = new File(rootDir, 'library/datasource') include modulePrefix + 'extension-cronet' project(modulePrefix + 'extension-cronet').projectDir = new File(rootDir, 'extensions/cronet') include modulePrefix + 'extension-rtmp' diff --git a/demos/README.md b/demos/README.md index 2360e01137..1ec3a1f306 100644 --- a/demos/README.md +++ b/demos/README.md @@ -21,5 +21,5 @@ the demo project. Choose an install option from the `Install tasks` section. **Example**: -`./gradlew :demo:installNoExtensionsDebug` installs the main ExoPlayer demo app - in debug mode with no extensions. +`./gradlew :demo:installNoDecoderExtensionsDebug` installs the main ExoPlayer +demo app in debug mode with no decoder extensions. diff --git a/demos/cast/src/main/java/com/google/android/exoplayer2/castdemo/MainActivity.java b/demos/cast/src/main/java/com/google/android/exoplayer2/castdemo/MainActivity.java index 478f11d74f..ef91f29e48 100644 --- a/demos/cast/src/main/java/com/google/android/exoplayer2/castdemo/MainActivity.java +++ b/demos/cast/src/main/java/com/google/android/exoplayer2/castdemo/MainActivity.java @@ -27,7 +27,6 @@ import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.TextView; import android.widget.Toast; -import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.appcompat.app.AlertDialog; import androidx.appcompat.app.AppCompatActivity; @@ -199,7 +198,6 @@ public class MainActivity extends AppCompatActivity private class MediaQueueListAdapter extends RecyclerView.Adapter { @Override - @NonNull public QueueItemViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { TextView v = (TextView) @@ -240,9 +238,7 @@ public class MainActivity extends AppCompatActivity @Override public boolean onMove( - @NonNull RecyclerView list, - RecyclerView.ViewHolder origin, - RecyclerView.ViewHolder target) { + RecyclerView list, RecyclerView.ViewHolder origin, RecyclerView.ViewHolder target) { int fromPosition = origin.getAdapterPosition(); int toPosition = target.getAdapterPosition(); if (draggingFromPosition == C.INDEX_UNSET) { @@ -266,7 +262,7 @@ public class MainActivity extends AppCompatActivity } @Override - public void clearView(@NonNull RecyclerView recyclerView, @NonNull ViewHolder viewHolder) { + public void clearView(RecyclerView recyclerView, ViewHolder viewHolder) { super.clearView(recyclerView, viewHolder); if (draggingFromPosition != C.INDEX_UNSET) { QueueItemViewHolder queueItemHolder = (QueueItemViewHolder) viewHolder; @@ -306,8 +302,7 @@ public class MainActivity extends AppCompatActivity } @Override - @NonNull - public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) { + public View getView(int position, @Nullable View convertView, ViewGroup parent) { View view = super.getView(position, convertView, parent); ((TextView) view).setText(Util.castNonNull(getItem(position)).mediaMetadata.title); return view; diff --git a/demos/cast/src/main/java/com/google/android/exoplayer2/castdemo/PlayerManager.java b/demos/cast/src/main/java/com/google/android/exoplayer2/castdemo/PlayerManager.java index 0c9406227d..54174b0c53 100644 --- a/demos/cast/src/main/java/com/google/android/exoplayer2/castdemo/PlayerManager.java +++ b/demos/cast/src/main/java/com/google/android/exoplayer2/castdemo/PlayerManager.java @@ -18,7 +18,6 @@ package com.google.android.exoplayer2.castdemo; import android.content.Context; import android.view.KeyEvent; import android.view.View; -import androidx.annotation.NonNull; import com.google.android.exoplayer2.C; import com.google.android.exoplayer2.ExoPlayer; import com.google.android.exoplayer2.MediaItem; @@ -226,7 +225,7 @@ import java.util.ArrayList; } @Override - public void onTimelineChanged(@NonNull Timeline timeline, @TimelineChangeReason int reason) { + public void onTimelineChanged(Timeline timeline, @TimelineChangeReason int reason) { updateCurrentItemIndex(); } @@ -262,7 +261,7 @@ import java.util.ArrayList; int playbackState = currentPlayer.getPlaybackState(); maybeSetCurrentItemAndNotify( playbackState != Player.STATE_IDLE && playbackState != Player.STATE_ENDED - ? currentPlayer.getCurrentWindowIndex() + ? currentPlayer.getCurrentMediaItemIndex() : C.INDEX_UNSET); } @@ -282,7 +281,7 @@ import java.util.ArrayList; // Player state management. long playbackPositionMs = C.TIME_UNSET; - int windowIndex = C.INDEX_UNSET; + int currentItemIndex = C.INDEX_UNSET; boolean playWhenReady = false; Player previousPlayer = this.currentPlayer; @@ -292,10 +291,10 @@ import java.util.ArrayList; if (playbackState != Player.STATE_ENDED) { playbackPositionMs = previousPlayer.getCurrentPosition(); playWhenReady = previousPlayer.getPlayWhenReady(); - windowIndex = previousPlayer.getCurrentWindowIndex(); - if (windowIndex != currentItemIndex) { + currentItemIndex = previousPlayer.getCurrentMediaItemIndex(); + if (currentItemIndex != this.currentItemIndex) { playbackPositionMs = C.TIME_UNSET; - windowIndex = currentItemIndex; + currentItemIndex = this.currentItemIndex; } } previousPlayer.stop(); @@ -305,7 +304,7 @@ import java.util.ArrayList; this.currentPlayer = currentPlayer; // Media queue management. - currentPlayer.setMediaItems(mediaQueue, windowIndex, playbackPositionMs); + currentPlayer.setMediaItems(mediaQueue, currentItemIndex, playbackPositionMs); currentPlayer.setPlayWhenReady(playWhenReady); currentPlayer.prepare(); } diff --git a/demos/gl/src/main/java/com/google/android/exoplayer2/gldemo/BitmapOverlayVideoProcessor.java b/demos/gl/src/main/java/com/google/android/exoplayer2/gldemo/BitmapOverlayVideoProcessor.java index 13e2a60684..ecae8033e4 100644 --- a/demos/gl/src/main/java/com/google/android/exoplayer2/gldemo/BitmapOverlayVideoProcessor.java +++ b/demos/gl/src/main/java/com/google/android/exoplayer2/gldemo/BitmapOverlayVideoProcessor.java @@ -15,6 +15,8 @@ */ package com.google.android.exoplayer2.gldemo; +import static com.google.android.exoplayer2.util.Assertions.checkNotNull; + import android.content.Context; import android.content.pm.PackageManager; import android.graphics.Bitmap; @@ -26,11 +28,11 @@ import android.opengl.GLES20; import android.opengl.GLUtils; import androidx.annotation.Nullable; import com.google.android.exoplayer2.C; -import com.google.android.exoplayer2.util.Assertions; import com.google.android.exoplayer2.util.GlUtil; import java.io.IOException; import java.util.Locale; import javax.microedition.khronos.opengles.GL10; +import org.checkerframework.checker.nullness.qual.MonotonicNonNull; /** * Video processor that demonstrates how to overlay a bitmap on video output using a GL shader. The @@ -49,7 +51,7 @@ import javax.microedition.khronos.opengles.GL10; private final Bitmap logoBitmap; private final Canvas overlayCanvas; - private int program; + private GlUtil.@MonotonicNonNull Program program; @Nullable private GlUtil.Attribute[] attributes; @Nullable private GlUtil.Uniform[] uniforms; @@ -77,27 +79,39 @@ import javax.microedition.khronos.opengles.GL10; @Override public void initialize() { - String vertexShaderCode; - String fragmentShaderCode; try { - vertexShaderCode = GlUtil.loadAsset(context, "bitmap_overlay_video_processor_vertex.glsl"); - fragmentShaderCode = - GlUtil.loadAsset(context, "bitmap_overlay_video_processor_fragment.glsl"); + program = + new GlUtil.Program( + context, + /* vertexShaderFilePath= */ "bitmap_overlay_video_processor_vertex.glsl", + /* fragmentShaderFilePath= */ "bitmap_overlay_video_processor_fragment.glsl"); } catch (IOException e) { throw new IllegalStateException(e); } - program = GlUtil.compileProgram(vertexShaderCode, fragmentShaderCode); - GlUtil.Attribute[] attributes = GlUtil.getAttributes(program); - GlUtil.Uniform[] uniforms = GlUtil.getUniforms(program); + GlUtil.Attribute[] attributes = program.getAttributes(); for (GlUtil.Attribute attribute : attributes) { if (attribute.name.equals("a_position")) { - attribute.setBuffer(new float[] {-1, -1, 0, 1, 1, -1, 0, 1, -1, 1, 0, 1, 1, 1, 0, 1}, 4); + attribute.setBuffer( + new float[] { + -1, -1, 0, 1, + 1, -1, 0, 1, + -1, 1, 0, 1, + 1, 1, 0, 1 + }, + 4); } else if (attribute.name.equals("a_texcoord")) { - attribute.setBuffer(new float[] {0, 0, 0, 1, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1}, 4); + attribute.setBuffer( + new float[] { + 0, 0, 0, 1, + 1, 0, 0, 1, + 0, 1, 0, 1, + 1, 1, 0, 1 + }, + 4); } } this.attributes = attributes; - this.uniforms = uniforms; + this.uniforms = program.getUniforms(); GLES20.glGenTextures(1, textures, 0); GLES20.glBindTexture(GL10.GL_TEXTURE_2D, textures[0]); GLES20.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST); @@ -126,9 +140,9 @@ import javax.microedition.khronos.opengles.GL10; GlUtil.checkGlError(); // Run the shader program. - GlUtil.Uniform[] uniforms = Assertions.checkNotNull(this.uniforms); - GlUtil.Attribute[] attributes = Assertions.checkNotNull(this.attributes); - GLES20.glUseProgram(program); + GlUtil.Uniform[] uniforms = checkNotNull(this.uniforms); + GlUtil.Attribute[] attributes = checkNotNull(this.attributes); + checkNotNull(program).use(); for (GlUtil.Uniform uniform : uniforms) { switch (uniform.name) { case "tex_sampler_0": diff --git a/demos/gl/src/main/java/com/google/android/exoplayer2/gldemo/VideoProcessingGLSurfaceView.java b/demos/gl/src/main/java/com/google/android/exoplayer2/gldemo/VideoProcessingGLSurfaceView.java index 4c04ca4c70..4cc0813dab 100644 --- a/demos/gl/src/main/java/com/google/android/exoplayer2/gldemo/VideoProcessingGLSurfaceView.java +++ b/demos/gl/src/main/java/com/google/android/exoplayer2/gldemo/VideoProcessingGLSurfaceView.java @@ -23,7 +23,6 @@ import android.opengl.GLES20; import android.opengl.GLSurfaceView; import android.os.Handler; import android.view.Surface; -import androidx.annotation.NonNull; import androidx.annotation.Nullable; import com.google.android.exoplayer2.C; import com.google.android.exoplayer2.ExoPlayer; @@ -290,7 +289,7 @@ public final class VideoProcessingGLSurfaceView extends GLSurfaceView { public void onVideoFrameAboutToBeRendered( long presentationTimeUs, long releaseTimeNs, - @NonNull Format format, + Format format, @Nullable MediaFormat mediaFormat) { sampleTimestampQueue.add(releaseTimeNs, presentationTimeUs); } diff --git a/demos/main/src/main/java/com/google/android/exoplayer2/demo/DemoDownloadService.java b/demos/main/src/main/java/com/google/android/exoplayer2/demo/DemoDownloadService.java index e32f72f39f..a83992d9b7 100644 --- a/demos/main/src/main/java/com/google/android/exoplayer2/demo/DemoDownloadService.java +++ b/demos/main/src/main/java/com/google/android/exoplayer2/demo/DemoDownloadService.java @@ -19,7 +19,6 @@ import static com.google.android.exoplayer2.demo.DemoUtil.DOWNLOAD_NOTIFICATION_ import android.app.Notification; import android.content.Context; -import androidx.annotation.NonNull; import androidx.annotation.Nullable; import com.google.android.exoplayer2.offline.Download; import com.google.android.exoplayer2.offline.DownloadManager; @@ -48,7 +47,6 @@ public class DemoDownloadService extends DownloadService { } @Override - @NonNull protected DownloadManager getDownloadManager() { // This will only happen once, because getDownloadManager is guaranteed to be called only once // in the life cycle of the process. @@ -67,9 +65,8 @@ public class DemoDownloadService extends DownloadService { } @Override - @NonNull protected Notification getForegroundNotification( - @NonNull List downloads, @Requirements.RequirementFlags int notMetRequirements) { + List downloads, @Requirements.RequirementFlags int notMetRequirements) { return DemoUtil.getDownloadNotificationHelper(/* context= */ this) .buildProgressNotification( /* context= */ this, diff --git a/demos/main/src/main/java/com/google/android/exoplayer2/demo/DemoUtil.java b/demos/main/src/main/java/com/google/android/exoplayer2/demo/DemoUtil.java index a4193184bc..62c3a5a005 100644 --- a/demos/main/src/main/java/com/google/android/exoplayer2/demo/DemoUtil.java +++ b/demos/main/src/main/java/com/google/android/exoplayer2/demo/DemoUtil.java @@ -19,7 +19,7 @@ import android.content.Context; import com.google.android.exoplayer2.DefaultRenderersFactory; import com.google.android.exoplayer2.RenderersFactory; import com.google.android.exoplayer2.database.DatabaseProvider; -import com.google.android.exoplayer2.database.ExoDatabaseProvider; +import com.google.android.exoplayer2.database.StandaloneDatabaseProvider; import com.google.android.exoplayer2.ext.cronet.CronetDataSource; import com.google.android.exoplayer2.ext.cronet.CronetUtil; import com.google.android.exoplayer2.offline.ActionFileUpgradeUtil; @@ -194,7 +194,7 @@ public final class DemoUtil { private static synchronized DatabaseProvider getDatabaseProvider(Context context) { if (databaseProvider == null) { - databaseProvider = new ExoDatabaseProvider(context); + databaseProvider = new StandaloneDatabaseProvider(context); } return databaseProvider; } diff --git a/demos/main/src/main/java/com/google/android/exoplayer2/demo/DownloadTracker.java b/demos/main/src/main/java/com/google/android/exoplayer2/demo/DownloadTracker.java index 2bbf99b03c..9eb141e659 100644 --- a/demos/main/src/main/java/com/google/android/exoplayer2/demo/DownloadTracker.java +++ b/demos/main/src/main/java/com/google/android/exoplayer2/demo/DownloadTracker.java @@ -23,7 +23,6 @@ import android.content.DialogInterface; import android.net.Uri; import android.os.AsyncTask; import android.widget.Toast; -import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.RequiresApi; import androidx.fragment.app.FragmentManager; @@ -142,9 +141,7 @@ public class DownloadTracker { @Override public void onDownloadChanged( - @NonNull DownloadManager downloadManager, - @NonNull Download download, - @Nullable Exception finalException) { + DownloadManager downloadManager, Download download, @Nullable Exception finalException) { downloads.put(download.request.uri, download); for (Listener listener : listeners) { listener.onDownloadsChanged(); @@ -152,8 +149,7 @@ public class DownloadTracker { } @Override - public void onDownloadRemoved( - @NonNull DownloadManager downloadManager, @NonNull Download download) { + public void onDownloadRemoved(DownloadManager downloadManager, Download download) { downloads.remove(download.request.uri); for (Listener listener : listeners) { listener.onDownloadsChanged(); @@ -196,7 +192,7 @@ public class DownloadTracker { // DownloadHelper.Callback implementation. @Override - public void onPrepared(@NonNull DownloadHelper helper) { + public void onPrepared(DownloadHelper helper) { @Nullable Format format = getFirstFormatWithDrmInitData(helper); if (format == null) { onDownloadPrepared(helper); @@ -231,7 +227,7 @@ public class DownloadTracker { } @Override - public void onPrepareError(@NonNull DownloadHelper helper, @NonNull IOException e) { + public void onPrepareError(DownloadHelper helper, IOException e) { boolean isLiveContent = e instanceof LiveContentUnsupportedException; int toastStringId = isLiveContent ? R.string.download_live_unsupported : R.string.download_start_error; diff --git a/demos/main/src/main/java/com/google/android/exoplayer2/demo/PlayerActivity.java b/demos/main/src/main/java/com/google/android/exoplayer2/demo/PlayerActivity.java index b5a1eefdfd..ca9fd45d42 100644 --- a/demos/main/src/main/java/com/google/android/exoplayer2/demo/PlayerActivity.java +++ b/demos/main/src/main/java/com/google/android/exoplayer2/demo/PlayerActivity.java @@ -28,7 +28,6 @@ import android.widget.Button; import android.widget.LinearLayout; import android.widget.TextView; import android.widget.Toast; -import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.appcompat.app.AppCompatActivity; import com.google.android.exoplayer2.C; @@ -66,7 +65,7 @@ public class PlayerActivity extends AppCompatActivity // Saved instance state keys. private static final String KEY_TRACK_SELECTION_PARAMETERS = "track_selection_parameters"; - private static final String KEY_WINDOW = "window"; + private static final String KEY_ITEM_INDEX = "item_index"; private static final String KEY_POSITION = "position"; private static final String KEY_AUTO_PLAY = "auto_play"; @@ -84,7 +83,7 @@ public class PlayerActivity extends AppCompatActivity private DebugTextViewHelper debugViewHelper; private TracksInfo lastSeenTracksInfo; private boolean startAutoPlay; - private int startWindow; + private int startItemIndex; private long startPosition; // For ad playback only. @@ -115,7 +114,7 @@ public class PlayerActivity extends AppCompatActivity DefaultTrackSelector.Parameters.CREATOR.fromBundle( savedInstanceState.getBundle(KEY_TRACK_SELECTION_PARAMETERS)); startAutoPlay = savedInstanceState.getBoolean(KEY_AUTO_PLAY); - startWindow = savedInstanceState.getInt(KEY_WINDOW); + startItemIndex = savedInstanceState.getInt(KEY_ITEM_INDEX); startPosition = savedInstanceState.getLong(KEY_POSITION); } else { trackSelectionParameters = @@ -185,7 +184,7 @@ public class PlayerActivity extends AppCompatActivity @Override public void onRequestPermissionsResult( - int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { + int requestCode, String[] permissions, int[] grantResults) { super.onRequestPermissionsResult(requestCode, permissions, grantResults); if (grantResults.length == 0) { // Empty results are triggered if a permission is requested while another request was already @@ -201,13 +200,13 @@ public class PlayerActivity extends AppCompatActivity } @Override - public void onSaveInstanceState(@NonNull Bundle outState) { + public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); updateTrackSelectorParameters(); updateStartPosition(); outState.putBundle(KEY_TRACK_SELECTION_PARAMETERS, trackSelectionParameters.toBundle()); outState.putBoolean(KEY_AUTO_PLAY, startAutoPlay); - outState.putInt(KEY_WINDOW, startWindow); + outState.putInt(KEY_ITEM_INDEX, startItemIndex); outState.putLong(KEY_POSITION, startPosition); } @@ -283,9 +282,9 @@ public class PlayerActivity extends AppCompatActivity debugViewHelper = new DebugTextViewHelper(player, debugTextView); debugViewHelper.start(); } - boolean haveStartPosition = startWindow != C.INDEX_UNSET; + boolean haveStartPosition = startItemIndex != C.INDEX_UNSET; if (haveStartPosition) { - player.seekTo(startWindow, startPosition); + player.seekTo(startItemIndex, startPosition); } player.setMediaItems(mediaItems, /* resetPosition= */ !haveStartPosition); player.prepare(); @@ -383,14 +382,14 @@ public class PlayerActivity extends AppCompatActivity private void updateStartPosition() { if (player != null) { startAutoPlay = player.getPlayWhenReady(); - startWindow = player.getCurrentWindowIndex(); + startItemIndex = player.getCurrentMediaItemIndex(); startPosition = Math.max(0, player.getContentPosition()); } } protected void clearStartPosition() { startAutoPlay = true; - startWindow = C.INDEX_UNSET; + startItemIndex = C.INDEX_UNSET; startPosition = C.TIME_UNSET; } @@ -424,7 +423,7 @@ public class PlayerActivity extends AppCompatActivity } @Override - public void onPlayerError(@NonNull PlaybackException error) { + public void onPlayerError(PlaybackException error) { if (error.errorCode == PlaybackException.ERROR_CODE_BEHIND_LIVE_WINDOW) { player.seekToDefaultPosition(); player.prepare(); @@ -454,8 +453,7 @@ public class PlayerActivity extends AppCompatActivity private class PlayerErrorMessageProvider implements ErrorMessageProvider { @Override - @NonNull - public Pair getErrorMessage(@NonNull PlaybackException e) { + public Pair getErrorMessage(PlaybackException e) { String errorString = getString(R.string.error_generic); Throwable cause = e.getCause(); if (cause instanceof DecoderInitializationException) { diff --git a/demos/main/src/main/java/com/google/android/exoplayer2/demo/SampleChooserActivity.java b/demos/main/src/main/java/com/google/android/exoplayer2/demo/SampleChooserActivity.java index 70a215ee8f..6cfe215a78 100644 --- a/demos/main/src/main/java/com/google/android/exoplayer2/demo/SampleChooserActivity.java +++ b/demos/main/src/main/java/com/google/android/exoplayer2/demo/SampleChooserActivity.java @@ -40,7 +40,6 @@ import android.widget.ExpandableListView.OnChildClickListener; import android.widget.ImageButton; import android.widget.TextView; import android.widget.Toast; -import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.appcompat.app.AppCompatActivity; import com.google.android.exoplayer2.MediaItem; @@ -163,7 +162,7 @@ public class SampleChooserActivity extends AppCompatActivity @Override public void onRequestPermissionsResult( - int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { + int requestCode, String[] permissions, int[] grantResults) { super.onRequestPermissionsResult(requestCode, permissions, grantResults); if (grantResults.length == 0) { // Empty results are triggered if a permission is requested while another request was already diff --git a/demos/main/src/main/java/com/google/android/exoplayer2/demo/TrackSelectionDialog.java b/demos/main/src/main/java/com/google/android/exoplayer2/demo/TrackSelectionDialog.java index 5b50298df0..00d90bbcf5 100644 --- a/demos/main/src/main/java/com/google/android/exoplayer2/demo/TrackSelectionDialog.java +++ b/demos/main/src/main/java/com/google/android/exoplayer2/demo/TrackSelectionDialog.java @@ -24,7 +24,6 @@ import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; -import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.appcompat.app.AppCompatDialog; import androidx.fragment.app.DialogFragment; @@ -213,7 +212,6 @@ public final class TrackSelectionDialog extends DialogFragment { } @Override - @NonNull public Dialog onCreateDialog(Bundle savedInstanceState) { // We need to own the view to let tab layout work correctly on all API levels. We can't use // AlertDialog because it owns the view itself, so we use AppCompatDialog instead, themed using @@ -225,7 +223,7 @@ public final class TrackSelectionDialog extends DialogFragment { } @Override - public void onDismiss(@NonNull DialogInterface dialog) { + public void onDismiss(DialogInterface dialog) { super.onDismiss(dialog); onDismissListener.onDismiss(dialog); } @@ -290,7 +288,6 @@ public final class TrackSelectionDialog extends DialogFragment { } @Override - @NonNull public Fragment getItem(int position) { return tabFragments.valueAt(position); } @@ -364,8 +361,7 @@ public final class TrackSelectionDialog extends DialogFragment { } @Override - public void onTrackSelectionChanged( - boolean isDisabled, @NonNull List overrides) { + public void onTrackSelectionChanged(boolean isDisabled, List overrides) { this.isDisabled = isDisabled; this.overrides = overrides; } diff --git a/docs/ad-insertion.md b/docs/ad-insertion.md index 0886ca6a92..4e42430f5b 100644 --- a/docs/ad-insertion.md +++ b/docs/ad-insertion.md @@ -178,7 +178,10 @@ MediaItem preRollAd = MediaItem.fromUri(preRollAdUri); MediaItem contentStart = new MediaItem.Builder() .setUri(contentUri) - .setClipEndPositionMs(120_000) + .setClippingConfiguration( + new ClippingConfiguration.Builder() + .setEndPositionMs(120_000) + .build()) .build(); // A mid-roll ad. MediaItem midRollAd = MediaItem.fromUri(midRollAdUri); @@ -186,7 +189,10 @@ MediaItem midRollAd = MediaItem.fromUri(midRollAdUri); MediaItem contentEnd = new MediaItem.Builder() .setUri(contentUri) - .setClipStartPositionMs(120_000) + .setClippingConfiguration( + new ClippingConfiguration.Builder() + .setStartPositionMs(120_000) + .build()) .build(); // Build the playlist. diff --git a/docs/doc/reference/allclasses-index.html b/docs/doc/reference/allclasses-index.html index 0b597a9f2a..f99c81d555 100644 --- a/docs/doc/reference/allclasses-index.html +++ b/docs/doc/reference/allclasses-index.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":2,"i1":32,"i2":2,"i3":2,"i4":2,"i5":2,"i6":2,"i7":2,"i8":32,"i9":2,"i10":2,"i11":2,"i12":2,"i13":2,"i14":2,"i15":2,"i16":2,"i17":2,"i18":2,"i19":2,"i20":2,"i21":2,"i22":2,"i23":2,"i24":2,"i25":2,"i26":2,"i27":2,"i28":2,"i29":2,"i30":2,"i31":2,"i32":2,"i33":2,"i34":2,"i35":2,"i36":2,"i37":2,"i38":2,"i39":2,"i40":2,"i41":2,"i42":2,"i43":2,"i44":2,"i45":1,"i46":2,"i47":2,"i48":1,"i49":2,"i50":2,"i51":1,"i52":2,"i53":2,"i54":2,"i55":2,"i56":2,"i57":2,"i58":32,"i59":2,"i60":2,"i61":32,"i62":1,"i63":1,"i64":2,"i65":8,"i66":32,"i67":2,"i68":32,"i69":2,"i70":1,"i71":2,"i72":2,"i73":2,"i74":2,"i75":1,"i76":2,"i77":32,"i78":2,"i79":1,"i80":32,"i81":2,"i82":2,"i83":2,"i84":2,"i85":2,"i86":2,"i87":1,"i88":32,"i89":2,"i90":2,"i91":8,"i92":2,"i93":2,"i94":2,"i95":2,"i96":2,"i97":1,"i98":1,"i99":1,"i100":2,"i101":8,"i102":1,"i103":2,"i104":1,"i105":8,"i106":8,"i107":1,"i108":32,"i109":8,"i110":8,"i111":2,"i112":2,"i113":1,"i114":1,"i115":2,"i116":2,"i117":2,"i118":2,"i119":2,"i120":2,"i121":2,"i122":2,"i123":2,"i124":2,"i125":2,"i126":2,"i127":8,"i128":2,"i129":2,"i130":2,"i131":2,"i132":2,"i133":1,"i134":2,"i135":1,"i136":2,"i137":1,"i138":1,"i139":2,"i140":2,"i141":2,"i142":2,"i143":2,"i144":2,"i145":2,"i146":2,"i147":2,"i148":32,"i149":32,"i150":32,"i151":32,"i152":32,"i153":32,"i154":32,"i155":32,"i156":32,"i157":32,"i158":32,"i159":32,"i160":32,"i161":32,"i162":32,"i163":32,"i164":32,"i165":32,"i166":32,"i167":32,"i168":32,"i169":32,"i170":32,"i171":32,"i172":1,"i173":8,"i174":1,"i175":2,"i176":2,"i177":2,"i178":8,"i179":2,"i180":2,"i181":2,"i182":32,"i183":1,"i184":2,"i185":32,"i186":2,"i187":2,"i188":1,"i189":1,"i190":2,"i191":2,"i192":1,"i193":1,"i194":2,"i195":2,"i196":32,"i197":2,"i198":2,"i199":2,"i200":2,"i201":2,"i202":2,"i203":2,"i204":2,"i205":2,"i206":1,"i207":1,"i208":1,"i209":2,"i210":2,"i211":2,"i212":1,"i213":1,"i214":2,"i215":2,"i216":8,"i217":32,"i218":1,"i219":2,"i220":2,"i221":2,"i222":2,"i223":2,"i224":2,"i225":1,"i226":2,"i227":2,"i228":2,"i229":1,"i230":2,"i231":2,"i232":8,"i233":1,"i234":2,"i235":1,"i236":2,"i237":2,"i238":2,"i239":8,"i240":2,"i241":2,"i242":2,"i243":2,"i244":2,"i245":32,"i246":2,"i247":32,"i248":32,"i249":32,"i250":1,"i251":1,"i252":2,"i253":2,"i254":2,"i255":2,"i256":8,"i257":2,"i258":2,"i259":1,"i260":2,"i261":2,"i262":8,"i263":1,"i264":2,"i265":1,"i266":2,"i267":1,"i268":1,"i269":1,"i270":1,"i271":2,"i272":2,"i273":2,"i274":2,"i275":8,"i276":2,"i277":2,"i278":2,"i279":32,"i280":32,"i281":2,"i282":1,"i283":2,"i284":2,"i285":2,"i286":8,"i287":2,"i288":32,"i289":8,"i290":2,"i291":32,"i292":32,"i293":2,"i294":8,"i295":2,"i296":2,"i297":1,"i298":2,"i299":8,"i300":32,"i301":2,"i302":2,"i303":2,"i304":2,"i305":2,"i306":2,"i307":2,"i308":2,"i309":2,"i310":2,"i311":2,"i312":2,"i313":2,"i314":2,"i315":2,"i316":2,"i317":2,"i318":8,"i319":32,"i320":2,"i321":2,"i322":2,"i323":2,"i324":2,"i325":2,"i326":2,"i327":2,"i328":2,"i329":2,"i330":2,"i331":2,"i332":2,"i333":2,"i334":2,"i335":2,"i336":2,"i337":2,"i338":2,"i339":1,"i340":2,"i341":2,"i342":32,"i343":2,"i344":2,"i345":2,"i346":2,"i347":2,"i348":2,"i349":2,"i350":2,"i351":2,"i352":2,"i353":2,"i354":2,"i355":2,"i356":2,"i357":2,"i358":32,"i359":2,"i360":2,"i361":32,"i362":1,"i363":2,"i364":2,"i365":32,"i366":32,"i367":2,"i368":1,"i369":1,"i370":1,"i371":1,"i372":8,"i373":2,"i374":1,"i375":8,"i376":1,"i377":2,"i378":1,"i379":2,"i380":2,"i381":2,"i382":2,"i383":8,"i384":2,"i385":2,"i386":2,"i387":1,"i388":8,"i389":32,"i390":1,"i391":2,"i392":1,"i393":1,"i394":1,"i395":2,"i396":32,"i397":2,"i398":2,"i399":2,"i400":2,"i401":2,"i402":2,"i403":1,"i404":2,"i405":2,"i406":2,"i407":2,"i408":1,"i409":2,"i410":2,"i411":2,"i412":1,"i413":32,"i414":2,"i415":8,"i416":32,"i417":1,"i418":1,"i419":2,"i420":1,"i421":2,"i422":2,"i423":2,"i424":2,"i425":2,"i426":2,"i427":2,"i428":2,"i429":1,"i430":1,"i431":2,"i432":2,"i433":32,"i434":2,"i435":1,"i436":1,"i437":1,"i438":1,"i439":2,"i440":8,"i441":32,"i442":1,"i443":1,"i444":1,"i445":2,"i446":1,"i447":1,"i448":1,"i449":1,"i450":2,"i451":2,"i452":2,"i453":8,"i454":32,"i455":1,"i456":2,"i457":1,"i458":1,"i459":32,"i460":2,"i461":2,"i462":2,"i463":1,"i464":2,"i465":1,"i466":1,"i467":1,"i468":2,"i469":2,"i470":2,"i471":2,"i472":2,"i473":2,"i474":2,"i475":2,"i476":2,"i477":2,"i478":2,"i479":2,"i480":2,"i481":2,"i482":2,"i483":2,"i484":2,"i485":2,"i486":2,"i487":2,"i488":2,"i489":2,"i490":8,"i491":2,"i492":2,"i493":2,"i494":2,"i495":2,"i496":1,"i497":2,"i498":2,"i499":2,"i500":2,"i501":2,"i502":2,"i503":2,"i504":2,"i505":2,"i506":1,"i507":2,"i508":2,"i509":2,"i510":2,"i511":8,"i512":2,"i513":2,"i514":2,"i515":8,"i516":2,"i517":2,"i518":32,"i519":1,"i520":2,"i521":2,"i522":2,"i523":2,"i524":2,"i525":8,"i526":2,"i527":2,"i528":32,"i529":32,"i530":2,"i531":2,"i532":2,"i533":2,"i534":2,"i535":2,"i536":2,"i537":2,"i538":2,"i539":2,"i540":2,"i541":2,"i542":2,"i543":2,"i544":2,"i545":2,"i546":2,"i547":2,"i548":2,"i549":32,"i550":2,"i551":2,"i552":2,"i553":2,"i554":8,"i555":2,"i556":2,"i557":2,"i558":2,"i559":2,"i560":2,"i561":2,"i562":2,"i563":2,"i564":2,"i565":1,"i566":1,"i567":2,"i568":2,"i569":1,"i570":2,"i571":1,"i572":2,"i573":2,"i574":2,"i575":2,"i576":1,"i577":2,"i578":2,"i579":2,"i580":32,"i581":2,"i582":2,"i583":2,"i584":2,"i585":2,"i586":2,"i587":32,"i588":2,"i589":2,"i590":8,"i591":1,"i592":1,"i593":1,"i594":1,"i595":8,"i596":8,"i597":1,"i598":2,"i599":2,"i600":2,"i601":2,"i602":1,"i603":1,"i604":2,"i605":8,"i606":1,"i607":8,"i608":32,"i609":8,"i610":8,"i611":2,"i612":2,"i613":2,"i614":2,"i615":2,"i616":2,"i617":2,"i618":2,"i619":1,"i620":2,"i621":2,"i622":2,"i623":8,"i624":2,"i625":2,"i626":2,"i627":2,"i628":2,"i629":2,"i630":2,"i631":2,"i632":8,"i633":1,"i634":2,"i635":2,"i636":2,"i637":2,"i638":2,"i639":2,"i640":2,"i641":2,"i642":2,"i643":1,"i644":1,"i645":1,"i646":1,"i647":2,"i648":1,"i649":1,"i650":2,"i651":1,"i652":8,"i653":1,"i654":2,"i655":1,"i656":2,"i657":2,"i658":32,"i659":2,"i660":2,"i661":2,"i662":2,"i663":2,"i664":2,"i665":2,"i666":2,"i667":2,"i668":1,"i669":2,"i670":2,"i671":2,"i672":32,"i673":2,"i674":2,"i675":1,"i676":1,"i677":1,"i678":2,"i679":1,"i680":1,"i681":2,"i682":8,"i683":2,"i684":2,"i685":8,"i686":1,"i687":2,"i688":8,"i689":8,"i690":2,"i691":2,"i692":1,"i693":8,"i694":2,"i695":2,"i696":2,"i697":2,"i698":2,"i699":2,"i700":2,"i701":2,"i702":2,"i703":1,"i704":1,"i705":2,"i706":2,"i707":2,"i708":32,"i709":32,"i710":2,"i711":2,"i712":2,"i713":2,"i714":1,"i715":1,"i716":2,"i717":1,"i718":2,"i719":2,"i720":1,"i721":1,"i722":1,"i723":2,"i724":1,"i725":1,"i726":32,"i727":1,"i728":1,"i729":1,"i730":1,"i731":1,"i732":2,"i733":1,"i734":1,"i735":2,"i736":1,"i737":2,"i738":2,"i739":8,"i740":32,"i741":2,"i742":1,"i743":1,"i744":1,"i745":2,"i746":1,"i747":2,"i748":2,"i749":2,"i750":2,"i751":2,"i752":2,"i753":32,"i754":2,"i755":32,"i756":2,"i757":2,"i758":2,"i759":2,"i760":2,"i761":2,"i762":2,"i763":2,"i764":2,"i765":1,"i766":32,"i767":2,"i768":2,"i769":2,"i770":32,"i771":2,"i772":2,"i773":2,"i774":2,"i775":2,"i776":2,"i777":2,"i778":8,"i779":2,"i780":2,"i781":2,"i782":1,"i783":2,"i784":2,"i785":2,"i786":2,"i787":8,"i788":2,"i789":1,"i790":2,"i791":2,"i792":2,"i793":2,"i794":2,"i795":2,"i796":2,"i797":2,"i798":8,"i799":32,"i800":32,"i801":2,"i802":2,"i803":1,"i804":1,"i805":2,"i806":2,"i807":2,"i808":2,"i809":2,"i810":1,"i811":1,"i812":32,"i813":2,"i814":2,"i815":32,"i816":32,"i817":1,"i818":2,"i819":1,"i820":32,"i821":32,"i822":32,"i823":2,"i824":32,"i825":32,"i826":32,"i827":2,"i828":1,"i829":1,"i830":2,"i831":1,"i832":2,"i833":1,"i834":1,"i835":2,"i836":2,"i837":1,"i838":1,"i839":1,"i840":32,"i841":32,"i842":2,"i843":32,"i844":2,"i845":2,"i846":2,"i847":2,"i848":8,"i849":2,"i850":2,"i851":2,"i852":2,"i853":2,"i854":1,"i855":1,"i856":2,"i857":2,"i858":2,"i859":2,"i860":2,"i861":2,"i862":2,"i863":2,"i864":2,"i865":2,"i866":2,"i867":8,"i868":1,"i869":32,"i870":32,"i871":1,"i872":1,"i873":32,"i874":32,"i875":32,"i876":32,"i877":2,"i878":1,"i879":2,"i880":2,"i881":32,"i882":2,"i883":2,"i884":2,"i885":2,"i886":32,"i887":2,"i888":1,"i889":2,"i890":2,"i891":1,"i892":2,"i893":2,"i894":2,"i895":2,"i896":2,"i897":2,"i898":2,"i899":2,"i900":2,"i901":1,"i902":1,"i903":2,"i904":2,"i905":2,"i906":8,"i907":2,"i908":2,"i909":2,"i910":1,"i911":8,"i912":1,"i913":32,"i914":32,"i915":1,"i916":1,"i917":2,"i918":1,"i919":2,"i920":2,"i921":2,"i922":2,"i923":2,"i924":2,"i925":2,"i926":2,"i927":2,"i928":2,"i929":2,"i930":2,"i931":2,"i932":1,"i933":1,"i934":2,"i935":2,"i936":2,"i937":1,"i938":2,"i939":1,"i940":1,"i941":2,"i942":1,"i943":2,"i944":1,"i945":1,"i946":1,"i947":1,"i948":2,"i949":2,"i950":1,"i951":2,"i952":2,"i953":2,"i954":2,"i955":2,"i956":2,"i957":2,"i958":2,"i959":2,"i960":2,"i961":2,"i962":2,"i963":2,"i964":2,"i965":2,"i966":2,"i967":2,"i968":2,"i969":2,"i970":2,"i971":2,"i972":2,"i973":1,"i974":2,"i975":2,"i976":1,"i977":1,"i978":1,"i979":1,"i980":1,"i981":1,"i982":1,"i983":1,"i984":1,"i985":2,"i986":2,"i987":1,"i988":2,"i989":2,"i990":2,"i991":2,"i992":2,"i993":2,"i994":2,"i995":2,"i996":2,"i997":1,"i998":1,"i999":2,"i1000":2,"i1001":2,"i1002":2,"i1003":2,"i1004":8,"i1005":2,"i1006":2,"i1007":2,"i1008":2,"i1009":2,"i1010":2,"i1011":2,"i1012":2,"i1013":2,"i1014":1,"i1015":1,"i1016":1,"i1017":2,"i1018":32,"i1019":2,"i1020":1,"i1021":1,"i1022":8,"i1023":1,"i1024":2,"i1025":2,"i1026":2,"i1027":32,"i1028":2,"i1029":2,"i1030":2,"i1031":2,"i1032":1,"i1033":2,"i1034":2,"i1035":2,"i1036":2,"i1037":2,"i1038":2,"i1039":2,"i1040":32,"i1041":2,"i1042":32,"i1043":32,"i1044":2,"i1045":1,"i1046":2,"i1047":2,"i1048":1,"i1049":1,"i1050":2,"i1051":2,"i1052":2,"i1053":2,"i1054":2,"i1055":2,"i1056":2,"i1057":1,"i1058":2,"i1059":1,"i1060":2,"i1061":2,"i1062":2,"i1063":2,"i1064":1,"i1065":2,"i1066":2,"i1067":32,"i1068":2,"i1069":2,"i1070":2,"i1071":1,"i1072":1,"i1073":2,"i1074":32,"i1075":1,"i1076":2,"i1077":2,"i1078":1,"i1079":2,"i1080":2,"i1081":2,"i1082":1,"i1083":2,"i1084":1,"i1085":2,"i1086":1,"i1087":2,"i1088":1,"i1089":2,"i1090":2,"i1091":1,"i1092":32,"i1093":2,"i1094":32,"i1095":1,"i1096":2,"i1097":2,"i1098":1,"i1099":32,"i1100":2,"i1101":2,"i1102":2,"i1103":2,"i1104":2,"i1105":8,"i1106":32,"i1107":8,"i1108":8,"i1109":32,"i1110":2,"i1111":2,"i1112":2,"i1113":2,"i1114":2,"i1115":2,"i1116":2,"i1117":2,"i1118":2,"i1119":2,"i1120":1,"i1121":1,"i1122":2,"i1123":1,"i1124":1,"i1125":2,"i1126":2,"i1127":2,"i1128":2,"i1129":2,"i1130":2,"i1131":2,"i1132":2,"i1133":2,"i1134":8,"i1135":2,"i1136":2,"i1137":2,"i1138":2,"i1139":2,"i1140":2,"i1141":2,"i1142":32,"i1143":32,"i1144":2,"i1145":2,"i1146":2,"i1147":2,"i1148":2,"i1149":2,"i1150":2,"i1151":2,"i1152":1,"i1153":2}; +var data = {"i0":2,"i1":32,"i2":2,"i3":2,"i4":2,"i5":2,"i6":2,"i7":2,"i8":32,"i9":2,"i10":2,"i11":2,"i12":2,"i13":2,"i14":2,"i15":2,"i16":2,"i17":2,"i18":2,"i19":2,"i20":2,"i21":2,"i22":2,"i23":2,"i24":2,"i25":2,"i26":2,"i27":2,"i28":2,"i29":2,"i30":2,"i31":2,"i32":2,"i33":2,"i34":2,"i35":2,"i36":2,"i37":2,"i38":2,"i39":2,"i40":2,"i41":2,"i42":2,"i43":2,"i44":2,"i45":1,"i46":2,"i47":2,"i48":1,"i49":2,"i50":2,"i51":1,"i52":2,"i53":2,"i54":2,"i55":2,"i56":2,"i57":2,"i58":32,"i59":2,"i60":2,"i61":32,"i62":1,"i63":1,"i64":2,"i65":8,"i66":32,"i67":2,"i68":32,"i69":2,"i70":1,"i71":2,"i72":2,"i73":2,"i74":2,"i75":1,"i76":2,"i77":32,"i78":2,"i79":1,"i80":32,"i81":2,"i82":2,"i83":2,"i84":2,"i85":2,"i86":2,"i87":1,"i88":32,"i89":2,"i90":2,"i91":2,"i92":8,"i93":2,"i94":2,"i95":2,"i96":2,"i97":2,"i98":1,"i99":1,"i100":2,"i101":8,"i102":1,"i103":2,"i104":1,"i105":8,"i106":8,"i107":1,"i108":32,"i109":8,"i110":8,"i111":2,"i112":2,"i113":1,"i114":1,"i115":2,"i116":2,"i117":2,"i118":2,"i119":2,"i120":2,"i121":2,"i122":2,"i123":2,"i124":2,"i125":2,"i126":2,"i127":8,"i128":2,"i129":2,"i130":2,"i131":2,"i132":2,"i133":1,"i134":2,"i135":1,"i136":2,"i137":1,"i138":1,"i139":2,"i140":2,"i141":2,"i142":2,"i143":2,"i144":2,"i145":2,"i146":2,"i147":2,"i148":32,"i149":32,"i150":32,"i151":32,"i152":32,"i153":32,"i154":32,"i155":32,"i156":32,"i157":32,"i158":32,"i159":32,"i160":32,"i161":32,"i162":32,"i163":32,"i164":32,"i165":32,"i166":32,"i167":32,"i168":32,"i169":32,"i170":32,"i171":32,"i172":32,"i173":32,"i174":32,"i175":32,"i176":32,"i177":1,"i178":8,"i179":1,"i180":2,"i181":2,"i182":2,"i183":8,"i184":2,"i185":2,"i186":32,"i187":1,"i188":2,"i189":32,"i190":2,"i191":1,"i192":1,"i193":2,"i194":2,"i195":1,"i196":1,"i197":2,"i198":2,"i199":32,"i200":2,"i201":2,"i202":2,"i203":2,"i204":2,"i205":2,"i206":2,"i207":2,"i208":2,"i209":1,"i210":1,"i211":1,"i212":2,"i213":2,"i214":2,"i215":1,"i216":1,"i217":2,"i218":2,"i219":8,"i220":32,"i221":1,"i222":2,"i223":2,"i224":2,"i225":2,"i226":2,"i227":2,"i228":1,"i229":2,"i230":2,"i231":2,"i232":1,"i233":2,"i234":2,"i235":8,"i236":1,"i237":2,"i238":2,"i239":2,"i240":2,"i241":8,"i242":2,"i243":2,"i244":2,"i245":1,"i246":8,"i247":2,"i248":2,"i249":32,"i250":2,"i251":32,"i252":32,"i253":32,"i254":2,"i255":2,"i256":1,"i257":1,"i258":2,"i259":2,"i260":2,"i261":2,"i262":8,"i263":2,"i264":2,"i265":1,"i266":2,"i267":2,"i268":8,"i269":1,"i270":2,"i271":1,"i272":2,"i273":1,"i274":1,"i275":1,"i276":1,"i277":2,"i278":2,"i279":2,"i280":2,"i281":8,"i282":2,"i283":2,"i284":2,"i285":2,"i286":32,"i287":32,"i288":2,"i289":1,"i290":2,"i291":2,"i292":2,"i293":8,"i294":2,"i295":32,"i296":8,"i297":2,"i298":1,"i299":2,"i300":32,"i301":32,"i302":2,"i303":2,"i304":2,"i305":1,"i306":2,"i307":8,"i308":32,"i309":2,"i310":2,"i311":2,"i312":2,"i313":2,"i314":2,"i315":2,"i316":2,"i317":2,"i318":2,"i319":2,"i320":2,"i321":2,"i322":2,"i323":2,"i324":2,"i325":2,"i326":8,"i327":32,"i328":2,"i329":2,"i330":2,"i331":2,"i332":2,"i333":2,"i334":2,"i335":2,"i336":2,"i337":2,"i338":2,"i339":2,"i340":2,"i341":2,"i342":2,"i343":2,"i344":2,"i345":2,"i346":2,"i347":1,"i348":2,"i349":2,"i350":32,"i351":2,"i352":2,"i353":2,"i354":2,"i355":2,"i356":2,"i357":2,"i358":2,"i359":2,"i360":2,"i361":2,"i362":2,"i363":2,"i364":2,"i365":2,"i366":32,"i367":2,"i368":2,"i369":32,"i370":2,"i371":2,"i372":32,"i373":32,"i374":2,"i375":1,"i376":1,"i377":1,"i378":1,"i379":8,"i380":2,"i381":1,"i382":8,"i383":1,"i384":2,"i385":1,"i386":2,"i387":2,"i388":2,"i389":2,"i390":8,"i391":2,"i392":2,"i393":2,"i394":1,"i395":8,"i396":32,"i397":1,"i398":2,"i399":1,"i400":1,"i401":1,"i402":2,"i403":32,"i404":2,"i405":2,"i406":2,"i407":2,"i408":2,"i409":2,"i410":1,"i411":2,"i412":2,"i413":2,"i414":2,"i415":1,"i416":2,"i417":2,"i418":2,"i419":1,"i420":32,"i421":2,"i422":8,"i423":32,"i424":1,"i425":1,"i426":2,"i427":1,"i428":2,"i429":2,"i430":2,"i431":2,"i432":2,"i433":2,"i434":2,"i435":2,"i436":1,"i437":2,"i438":2,"i439":32,"i440":2,"i441":1,"i442":1,"i443":1,"i444":1,"i445":2,"i446":8,"i447":32,"i448":1,"i449":1,"i450":1,"i451":2,"i452":1,"i453":1,"i454":1,"i455":2,"i456":2,"i457":2,"i458":2,"i459":8,"i460":32,"i461":1,"i462":2,"i463":1,"i464":1,"i465":32,"i466":2,"i467":2,"i468":2,"i469":1,"i470":2,"i471":1,"i472":1,"i473":1,"i474":2,"i475":2,"i476":2,"i477":2,"i478":2,"i479":2,"i480":2,"i481":2,"i482":2,"i483":2,"i484":2,"i485":2,"i486":2,"i487":2,"i488":2,"i489":2,"i490":2,"i491":2,"i492":2,"i493":2,"i494":2,"i495":2,"i496":2,"i497":8,"i498":2,"i499":2,"i500":2,"i501":2,"i502":2,"i503":1,"i504":2,"i505":2,"i506":2,"i507":2,"i508":2,"i509":2,"i510":2,"i511":2,"i512":2,"i513":2,"i514":2,"i515":1,"i516":2,"i517":2,"i518":2,"i519":2,"i520":8,"i521":2,"i522":2,"i523":2,"i524":8,"i525":2,"i526":32,"i527":1,"i528":2,"i529":2,"i530":2,"i531":2,"i532":2,"i533":8,"i534":2,"i535":2,"i536":32,"i537":32,"i538":2,"i539":2,"i540":2,"i541":2,"i542":2,"i543":2,"i544":2,"i545":2,"i546":2,"i547":2,"i548":2,"i549":2,"i550":2,"i551":2,"i552":2,"i553":2,"i554":2,"i555":2,"i556":2,"i557":32,"i558":2,"i559":2,"i560":2,"i561":2,"i562":8,"i563":2,"i564":2,"i565":2,"i566":2,"i567":8,"i568":2,"i569":2,"i570":8,"i571":2,"i572":2,"i573":2,"i574":2,"i575":1,"i576":1,"i577":2,"i578":2,"i579":1,"i580":2,"i581":1,"i582":2,"i583":2,"i584":2,"i585":2,"i586":1,"i587":2,"i588":2,"i589":2,"i590":32,"i591":2,"i592":2,"i593":2,"i594":2,"i595":2,"i596":2,"i597":32,"i598":2,"i599":2,"i600":8,"i601":1,"i602":1,"i603":1,"i604":1,"i605":8,"i606":8,"i607":1,"i608":2,"i609":2,"i610":2,"i611":2,"i612":1,"i613":1,"i614":2,"i615":8,"i616":1,"i617":8,"i618":32,"i619":8,"i620":8,"i621":2,"i622":2,"i623":2,"i624":2,"i625":2,"i626":2,"i627":2,"i628":2,"i629":1,"i630":2,"i631":2,"i632":2,"i633":8,"i634":2,"i635":2,"i636":2,"i637":2,"i638":2,"i639":2,"i640":2,"i641":8,"i642":1,"i643":2,"i644":2,"i645":2,"i646":2,"i647":2,"i648":2,"i649":2,"i650":2,"i651":2,"i652":1,"i653":1,"i654":1,"i655":1,"i656":2,"i657":1,"i658":1,"i659":2,"i660":1,"i661":8,"i662":1,"i663":2,"i664":1,"i665":2,"i666":2,"i667":32,"i668":2,"i669":2,"i670":2,"i671":2,"i672":2,"i673":2,"i674":2,"i675":2,"i676":2,"i677":1,"i678":2,"i679":2,"i680":2,"i681":32,"i682":2,"i683":2,"i684":1,"i685":1,"i686":1,"i687":2,"i688":1,"i689":1,"i690":2,"i691":8,"i692":2,"i693":2,"i694":8,"i695":1,"i696":2,"i697":8,"i698":8,"i699":2,"i700":2,"i701":1,"i702":8,"i703":2,"i704":2,"i705":2,"i706":2,"i707":2,"i708":2,"i709":2,"i710":2,"i711":2,"i712":2,"i713":2,"i714":2,"i715":2,"i716":2,"i717":2,"i718":2,"i719":2,"i720":1,"i721":1,"i722":2,"i723":2,"i724":2,"i725":32,"i726":32,"i727":2,"i728":2,"i729":2,"i730":2,"i731":1,"i732":1,"i733":2,"i734":1,"i735":2,"i736":2,"i737":1,"i738":1,"i739":1,"i740":2,"i741":1,"i742":1,"i743":32,"i744":1,"i745":1,"i746":1,"i747":1,"i748":1,"i749":2,"i750":1,"i751":1,"i752":2,"i753":1,"i754":2,"i755":2,"i756":8,"i757":32,"i758":2,"i759":1,"i760":1,"i761":1,"i762":2,"i763":1,"i764":2,"i765":2,"i766":2,"i767":2,"i768":2,"i769":2,"i770":32,"i771":2,"i772":32,"i773":2,"i774":2,"i775":2,"i776":2,"i777":2,"i778":2,"i779":2,"i780":2,"i781":2,"i782":2,"i783":1,"i784":32,"i785":2,"i786":2,"i787":2,"i788":32,"i789":2,"i790":2,"i791":2,"i792":2,"i793":2,"i794":2,"i795":2,"i796":8,"i797":2,"i798":2,"i799":2,"i800":2,"i801":2,"i802":2,"i803":8,"i804":2,"i805":1,"i806":2,"i807":2,"i808":2,"i809":2,"i810":2,"i811":2,"i812":2,"i813":2,"i814":8,"i815":32,"i816":32,"i817":2,"i818":2,"i819":1,"i820":1,"i821":2,"i822":2,"i823":2,"i824":2,"i825":2,"i826":1,"i827":1,"i828":32,"i829":2,"i830":2,"i831":32,"i832":32,"i833":1,"i834":2,"i835":1,"i836":32,"i837":32,"i838":32,"i839":2,"i840":32,"i841":32,"i842":32,"i843":2,"i844":1,"i845":1,"i846":2,"i847":1,"i848":2,"i849":1,"i850":1,"i851":2,"i852":2,"i853":1,"i854":1,"i855":1,"i856":32,"i857":32,"i858":2,"i859":32,"i860":2,"i861":2,"i862":2,"i863":2,"i864":2,"i865":8,"i866":2,"i867":2,"i868":2,"i869":2,"i870":2,"i871":1,"i872":1,"i873":2,"i874":2,"i875":2,"i876":2,"i877":2,"i878":2,"i879":2,"i880":2,"i881":2,"i882":2,"i883":2,"i884":8,"i885":1,"i886":32,"i887":32,"i888":1,"i889":1,"i890":32,"i891":32,"i892":32,"i893":32,"i894":2,"i895":1,"i896":2,"i897":2,"i898":32,"i899":2,"i900":2,"i901":2,"i902":2,"i903":32,"i904":2,"i905":1,"i906":2,"i907":2,"i908":1,"i909":2,"i910":2,"i911":2,"i912":2,"i913":2,"i914":2,"i915":2,"i916":2,"i917":1,"i918":1,"i919":2,"i920":2,"i921":2,"i922":8,"i923":2,"i924":2,"i925":2,"i926":1,"i927":8,"i928":1,"i929":32,"i930":32,"i931":1,"i932":1,"i933":2,"i934":1,"i935":2,"i936":2,"i937":2,"i938":2,"i939":2,"i940":2,"i941":2,"i942":2,"i943":2,"i944":2,"i945":2,"i946":2,"i947":2,"i948":1,"i949":1,"i950":2,"i951":2,"i952":2,"i953":1,"i954":2,"i955":1,"i956":1,"i957":2,"i958":1,"i959":2,"i960":1,"i961":1,"i962":1,"i963":1,"i964":2,"i965":2,"i966":1,"i967":2,"i968":2,"i969":2,"i970":2,"i971":2,"i972":2,"i973":2,"i974":2,"i975":2,"i976":2,"i977":2,"i978":2,"i979":2,"i980":2,"i981":2,"i982":2,"i983":2,"i984":2,"i985":2,"i986":2,"i987":2,"i988":2,"i989":1,"i990":2,"i991":2,"i992":1,"i993":1,"i994":1,"i995":1,"i996":1,"i997":1,"i998":1,"i999":1,"i1000":1,"i1001":2,"i1002":2,"i1003":1,"i1004":2,"i1005":2,"i1006":2,"i1007":2,"i1008":2,"i1009":2,"i1010":2,"i1011":2,"i1012":2,"i1013":1,"i1014":1,"i1015":2,"i1016":2,"i1017":2,"i1018":2,"i1019":2,"i1020":8,"i1021":2,"i1022":2,"i1023":2,"i1024":2,"i1025":2,"i1026":2,"i1027":2,"i1028":2,"i1029":2,"i1030":2,"i1031":2,"i1032":1,"i1033":1,"i1034":1,"i1035":2,"i1036":32,"i1037":2,"i1038":1,"i1039":1,"i1040":8,"i1041":1,"i1042":2,"i1043":2,"i1044":2,"i1045":2,"i1046":32,"i1047":2,"i1048":2,"i1049":2,"i1050":2,"i1051":1,"i1052":2,"i1053":2,"i1054":2,"i1055":2,"i1056":2,"i1057":2,"i1058":2,"i1059":32,"i1060":2,"i1061":32,"i1062":32,"i1063":2,"i1064":1,"i1065":2,"i1066":2,"i1067":1,"i1068":1,"i1069":2,"i1070":2,"i1071":2,"i1072":2,"i1073":2,"i1074":2,"i1075":2,"i1076":1,"i1077":2,"i1078":1,"i1079":2,"i1080":2,"i1081":2,"i1082":2,"i1083":1,"i1084":2,"i1085":2,"i1086":32,"i1087":2,"i1088":2,"i1089":2,"i1090":1,"i1091":1,"i1092":2,"i1093":32,"i1094":1,"i1095":32,"i1096":2,"i1097":2,"i1098":1,"i1099":2,"i1100":2,"i1101":2,"i1102":2,"i1103":2,"i1104":2,"i1105":1,"i1106":2,"i1107":1,"i1108":2,"i1109":1,"i1110":2,"i1111":2,"i1112":2,"i1113":2,"i1114":2,"i1115":1,"i1116":32,"i1117":1,"i1118":2,"i1119":2,"i1120":1,"i1121":32,"i1122":2,"i1123":2,"i1124":32,"i1125":1,"i1126":2,"i1127":2,"i1128":1,"i1129":32,"i1130":2,"i1131":2,"i1132":2,"i1133":2,"i1134":2,"i1135":8,"i1136":32,"i1137":8,"i1138":8,"i1139":32,"i1140":2,"i1141":2,"i1142":2,"i1143":2,"i1144":2,"i1145":2,"i1146":2,"i1147":2,"i1148":1,"i1149":1,"i1150":2,"i1151":1,"i1152":2,"i1153":2,"i1154":2,"i1155":2,"i1156":2,"i1157":2,"i1158":2,"i1159":2,"i1160":2,"i1161":8,"i1162":2,"i1163":2,"i1164":2,"i1165":2,"i1166":2,"i1167":2,"i1168":2,"i1169":32,"i1170":32,"i1171":2,"i1172":2,"i1173":2,"i1174":2,"i1175":2,"i1176":2,"i1177":2,"i1178":2,"i1179":1,"i1180":2}; var tabs = {65535:["t0","All Classes"],1:["t1","Interface Summary"],2:["t2","Class Summary"],8:["t4","Exception Summary"],32:["t6","Annotation Types Summary"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -195,19 +195,19 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); Action.AddMediaItems - + Action.ClearMediaItems - + Action.ClearVideoSurface - + @@ -219,7 +219,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); Action.MoveMediaItem - + @@ -238,13 +238,13 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); Action.RemoveMediaItem - + Action.RemoveMediaItems - + @@ -262,19 +262,19 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); Action.SetAudioAttributes - + Action.SetMediaItems - + Action.SetMediaItemsResetPosition - + @@ -299,7 +299,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); Action.SetRepeatMode - + @@ -317,7 +317,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); Action.SetVideoSurface - + @@ -353,27 +353,27 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); Action.WaitForPlaybackState -
Waits for a specified playback state, returning either immediately or after a call to Player.Listener.onPlaybackStateChanged(int).
+
Waits for a specified playback state, returning either immediately or after a call to Player.Listener.onPlaybackStateChanged(int).
Action.WaitForPlayWhenReady
Waits for a specified playWhenReady value, returning either immediately or after a call to - Player.Listener.onPlayWhenReadyChanged(boolean, int).
+ Player.Listener.onPlayWhenReadyChanged(boolean, int). Action.WaitForPositionDiscontinuity -
Waits for Player.Listener.onPositionDiscontinuity(Player.PositionInfo, + Action.WaitForTimelineChanged - + @@ -655,61 +655,61 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); +AssetContentProvider + +
A ContentProvider for reading asset data.
+ + + AssetDataSource
A DataSource for reading from a local asset.
- + AssetDataSource.AssetDataSourceException
Thrown when an IOException is encountered reading a local asset.
- + AtomicFile
A helper class for performing atomic operations on a file by creating a backup file until a write has successfully completed.
- + AudioAttributes
Attributes for audio playback, which configure the underlying platform AudioTrack.
- + AudioAttributes.Builder
Builder for AudioAttributes.
- + AudioCapabilities
Represents the set of audio formats that a device is capable of playing.
- + AudioCapabilitiesReceiver
Receives broadcast events indicating changes to the device's audio capabilities, notifying a AudioCapabilitiesReceiver.Listener when audio capability changes occur.
- + AudioCapabilitiesReceiver.Listener
Listener notified when audio capabilities change.
- -AudioListener -Deprecated. - - - AudioProcessor @@ -960,7 +960,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); -BundleableUtils +BundleableUtil
Utilities for Bundleable.
@@ -1040,1041 +1040,1089 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); +C.AudioManagerOffloadMode + +
Playback offload mode.
+ + + C.AudioUsage
Usage types for audio attributes.
- + C.BufferFlags
Flags which can apply to a buffer containing a media sample.
- + C.ColorRange
Video color range.
- + C.ColorSpace
Video colorspaces.
- + C.ColorTransfer
Video color transfer characteristics.
- + C.ContentType
Represents a streaming or other media type.
- + C.CryptoMode
Crypto modes for a codec.
- + +C.CryptoType + +
Types of crypto implementation.
+ + + C.DataType
Represents a type of data.
- + C.Encoding
Represents an audio encoding, or an invalid or unset value.
- + C.FormatSupport
Level of renderer support for a format.
- + C.NetworkType
Network connection type.
- + C.PcmEncoding
Represents a PCM audio encoding, or an invalid or unset value.
- + C.Projection
Video projection types.
- + C.RoleFlags
Track role flags.
- + C.SelectionFlags
Track selection flags.
- + +C.SelectionReason + +
Represents a reason for selection.
+ + + C.StereoMode
The stereo mode for 360/3D/VR videos.
- + C.StreamType
Stream types for an AudioTrack.
- + +C.TrackType + +
Represents a type of media track.
+ + + +C.VideoChangeFrameRateStrategy + + + + + C.VideoOutputMode
Video decoder output modes.
- + C.VideoScalingMode
Video scaling modes for MediaCodec-based renderers.
- + C.WakeMode
Mode specifying whether the player should hold a WakeLock and a WifiLock.
- + Cache
A cache that supports partial caching of resources.
- + Cache.CacheException
Thrown when an error is encountered when writing data.
- + Cache.Listener
Listener of Cache events.
- + CacheAsserts
Assertion methods for Cache.
- + CacheAsserts.RequestSet
Defines a set of data requests.
- + CacheDataSink
Writes data into a cache.
- + CacheDataSink.CacheDataSinkException
Thrown when an IOException is encountered when writing data to the sink.
- + CacheDataSink.Factory - -CacheDataSinkFactory -Deprecated. - - - - + CacheDataSource
A DataSource that reads and writes a Cache.
- + CacheDataSource.CacheIgnoredReason
Reasons the cache may be ignored.
- + CacheDataSource.EventListener
Listener of CacheDataSource events.
- + CacheDataSource.Factory - + CacheDataSource.Flags
Flags controlling the CacheDataSource's behavior.
- -CacheDataSourceFactory -Deprecated. - - - - -CachedRegionTracker + +CachedRegionTracker
Utility class for efficiently tracking regions of data that are stored in a Cache for a given cache key.
- + CacheEvictor
Evicts data from a Cache.
- + CacheKeyFactory
Factory for cache keys.
- + CacheSpan
Defines a span of data that may or may not be cached (as indicated by CacheSpan.isCached).
- + CacheWriter
Caching related utility methods.
- + CacheWriter.ProgressListener
Receives progress updates during cache operations.
- + CameraMotionListener
Listens camera motion.
- + CameraMotionRenderer
A Renderer that parses the camera motion track.
- + CaptionStyleCompat
A compatibility wrapper for CaptioningManager.CaptionStyle.
- + CaptionStyleCompat.EdgeType
The type of edge, which may be none.
- + CapturingAudioSink
A ForwardingAudioSink that captures configuration, discontinuity and buffer events.
- + CapturingRenderersFactory
A RenderersFactory that captures interactions with the audio and video MediaCodecAdapter instances.
- + CastPlayer
Player implementation that communicates with a Cast receiver app.
- + Cea608Decoder
A SubtitleDecoder for CEA-608 (also known as "line 21 captions" and "EIA-608").
- + Cea708Decoder
A SubtitleDecoder for CEA-708 (also known as "EIA-708").
- + CeaUtil
Utility methods for handling CEA-608/708 messages.
- + ChapterFrame
Chapter information ID3 frame.
- + ChapterTocFrame
Chapter table of contents ID3 frame.
- + Chunk
An abstract base class for Loader.Loadable implementations that load chunks of data required for the playback of streams.
- + ChunkExtractor
Extracts samples and track Formats from chunks.
- + ChunkExtractor.Factory
Creates ChunkExtractor instances.
- + ChunkExtractor.TrackOutputProvider
Provides TrackOutput instances to be written to during extraction.
- + ChunkHolder
Holds a chunk or an indication that the end of the stream has been reached.
- + ChunkIndex
Defines chunks of samples within a media stream.
- + ChunkSampleStream<T extends ChunkSource>
A SampleStream that loads media in Chunks, obtained from a ChunkSource.
- + ChunkSampleStream.ReleaseCallback<T extends ChunkSource>
A callback to be notified when a sample stream has finished being released.
- + ChunkSource
A provider of Chunks for a ChunkSampleStream to load.
- + ClippingMediaPeriod
Wraps a MediaPeriod and clips its SampleStreams to provide a subsequence of their samples.
- + ClippingMediaSource
MediaSource that wraps a source and clips its timeline based on specified start/end positions.
- + ClippingMediaSource.IllegalClippingException
Thrown when a ClippingMediaSource cannot clip its wrapped source.
- + ClippingMediaSource.IllegalClippingException.Reason
The reason clipping failed.
- + Clock
An interface through which system clocks can be read and HandlerWrappers created.
- + CodecSpecificDataUtil
Provides utilities for handling various types of codec-specific data.
- + ColorInfo
Stores color info.
- + ColorParser
Parser for color expressions found in styling formats, e.g.
- + CommentFrame
Comment ID3 frame.
- + CompositeMediaSource<T>
Composite MediaSource consisting of multiple child sources.
- + CompositeSequenceableLoader
A SequenceableLoader that encapsulates multiple other SequenceableLoaders.
- + CompositeSequenceableLoaderFactory
A factory to create composite SequenceableLoaders.
- + ConcatenatingMediaSource
Concatenates multiple MediaSources.
- + ConditionVariable
An interruptible condition variable.
- + ConstantBitrateSeekMap
A SeekMap implementation that assumes the stream has a constant bitrate and consists of multiple independent frames of the same size.
- + Consumer<T>
Represents an operation that accepts a single input argument and returns no result.
- + ContainerMediaChunk
A BaseMediaChunk that uses an Extractor to decode sample data.
- + ContentDataSource
A DataSource for reading from a content URI.
- + ContentDataSource.ContentDataSourceException
Thrown when an IOException is encountered reading from a content URI.
- + ContentMetadata
Interface for an immutable snapshot of keyed metadata.
- + ContentMetadataMutations
Defines multiple mutations on metadata value which are applied atomically.
- -ControlDispatcher -Deprecated. -
Use a ForwardingPlayer or configure the player to customize operations.
- - - + CopyOnWriteMultiset<E>
An unordered collection of elements that allows duplicates, but also allows access to a set of unique elements.
- + CronetDataSource
DataSource without intermediate buffer based on Cronet API set using UrlRequest.
- + CronetDataSource.Factory - + CronetDataSource.OpenException
Thrown when an error is encountered when trying to open a CronetDataSource.
- + CronetDataSourceFactory Deprecated. - + CronetEngineWrapper Deprecated.
Use CronetEngine directly.
- + CronetUtil
Cronet utility methods.
- -CryptoInfo + +CryptoConfig -
Compatibility wrapper for MediaCodec.CryptoInfo.
+
Configuration for a decoder to allow it to decode encrypted media data.
- + +CryptoException + +
Thrown when a non-platform component fails to decrypt data.
+ + + +CryptoInfo + +
Metadata describing the structure of an encrypted input sample.
+ + + Cue
Contains information about a specific cue, including textual content and formatting data.
- + Cue.AnchorType
The type of anchor, which may be unset.
- + Cue.Builder
A builder for Cue objects.
- + Cue.LineType
The type of line, which may be unset.
- + Cue.TextSizeType
The type of default text size for this cue, which may be unset.
- + Cue.VerticalType
The type of vertical layout for this cue, which may be unset (i.e.
- + +CueDecoder + +
Decodes data encoded by CueEncoder.
+ + + +CueEncoder + +
Encodes data that can be decoded by CueDecoder.
+ + + DashChunkSource
A ChunkSource for DASH streams.
- + DashChunkSource.Factory
Factory for DashChunkSources.
- + DashDownloader
A downloader for DASH streams.
- + DashManifest
Represents a DASH media presentation description (mpd), as defined by ISO/IEC 23009-1:2014 Section 5.3.1.2.
- + DashManifestParser
A parser of media presentation description files.
- + DashManifestParser.RepresentationInfo
A parsed Representation element.
- + DashManifestStaleException
Thrown when a live playback's manifest is stale and a new manifest could not be loaded.
- + DashMediaSource
A DASH MediaSource.
- + DashMediaSource.Factory
Factory for DashMediaSources.
- + DashSegmentIndex
Indexes the segments within a media stream.
- + DashUtil
Utility methods for DASH streams.
- + DashWrappingSegmentIndex
An implementation of DashSegmentIndex that wraps a ChunkIndex parsed from a media stream.
- + DatabaseIOException
An IOException whose cause is an SQLException.
- + DatabaseProvider -
Provides SQLiteDatabase instances to ExoPlayer components, which may read and write +
Provides SQLiteDatabase instances to media library components, which may read and write tables prefixed with DatabaseProvider.TABLE_PREFIX.
- + DataChunk
A base class for Chunk implementations where the data should be loaded into a byte[] before being consumed.
- + DataReader
Reads bytes from a data stream.
- + DataSchemeDataSource
A DataSource for reading data URLs, as defined by RFC 2397.
- + DataSink
A component to which streams of data can be written.
- + DataSink.Factory
A factory for DataSink instances.
- + DataSource
Reads data from URI-identified resources.
- + DataSource.Factory
A factory for DataSource instances.
- + DataSourceContractTest
A collection of contract tests for DataSource implementations.
- + DataSourceContractTest.FakeTransferListener
A TransferListener that only keeps track of the transferred bytes.
- + DataSourceContractTest.TestResource
Information about a resource that can be used to test the DataSource instance.
- + DataSourceContractTest.TestResource.Builder - + DataSourceException
Used to specify reason of a DataSource error.
- + DataSourceInputStream
Allows data corresponding to a given DataSpec to be read from a DataSource and consumed through an InputStream.
- + +DataSourceUtil + +
Utility methods for DataSource.
+ + + DataSpec
Defines a region of data in a resource.
- + DataSpec.Builder
Builds DataSpec instances.
- + DataSpec.Flags
The flags that apply to any request for data.
- + DataSpec.HttpMethod
HTTP methods supported by ExoPlayer HttpDataSources.
- + DebugTextViewHelper
A helper class for periodically updating a TextView with debug information obtained from - a SimpleExoPlayer.
+ an ExoPlayer.
- + Decoder<I,​O,​E extends DecoderException>
A media decoder.
- -DecoderAudioRenderer<T extends Decoder<DecoderInputBuffer,​? extends SimpleOutputBuffer,​? extends DecoderException>> + +DecoderAudioRenderer<T extends Decoder<DecoderInputBuffer,​? extends SimpleDecoderOutputBuffer,​? extends DecoderException>>
Decodes and renders audio using a Decoder.
- + DecoderCounters
Maintains decoder event counts, for debugging purposes only.
- + DecoderCountersUtil
Assertions for DecoderCounters.
- + DecoderException
Thrown when a Decoder error occurs.
- + DecoderInputBuffer
Holds input for a decoder.
- + DecoderInputBuffer.BufferReplacementMode
The buffer replacement mode.
- + DecoderInputBuffer.InsufficientCapacityException
Thrown when an attempt is made to write into a DecoderInputBuffer whose DecoderInputBuffer.bufferReplacementMode is DecoderInputBuffer.BUFFER_REPLACEMENT_MODE_DISABLED and who DecoderInputBuffer.data capacity is smaller than required.
- + +DecoderOutputBuffer + +
Output buffer decoded by a Decoder.
+ + + +DecoderOutputBuffer.Owner<S extends DecoderOutputBuffer> + +
Buffer owner.
+ + + DecoderReuseEvaluation
The result of an evaluation to determine whether a decoder can be reused for a new input format.
- + DecoderReuseEvaluation.DecoderDiscardReasons
Possible reasons why reuse is not possible.
- + DecoderReuseEvaluation.DecoderReuseResult
Possible outcomes of the evaluation.
- + DecoderVideoRenderer
Decodes and renders video using a Decoder.
- -DecryptionException - -
Thrown when a non-platform component fails to decrypt data.
- - - + DefaultAllocator
Default implementation of Allocator.
- + DefaultAudioSink
Plays audio data.
- + DefaultAudioSink.AudioProcessorChain
Provides a chain of audio processors, which are used for any user-defined processing and applying playback parameters (if supported).
- + DefaultAudioSink.DefaultAudioProcessorChain
The default audio processor chain, which applies a (possibly empty) chain of user-defined audio processors followed by SilenceSkippingAudioProcessor and SonicAudioProcessor.
- + DefaultAudioSink.InvalidAudioTrackTimestampException
Thrown when the audio track has provided a spurious timestamp, if DefaultAudioSink.failOnSpuriousAudioTimestamp is set.
- + DefaultAudioSink.OffloadMode
Audio offload mode configuration.
- + DefaultBandwidthMeter
Estimates bandwidth by listening to data transfers.
- + DefaultBandwidthMeter.Builder
Builder for a bandwidth meter.
- + DefaultCastOptionsProvider
A convenience OptionsProvider to target the default cast receiver app.
- + DefaultCompositeSequenceableLoaderFactory
Default implementation of CompositeSequenceableLoaderFactory.
- + DefaultContentMetadata
Default implementation of ContentMetadata.
- -DefaultControlDispatcher -Deprecated. -
Use a ForwardingPlayer or configure the player to customize operations.
- - - + DefaultDashChunkSource
A default DashChunkSource implementation.
- + DefaultDashChunkSource.Factory   - + DefaultDashChunkSource.RepresentationHolder
Holds information about a snapshot of a single Representation.
- + DefaultDashChunkSource.RepresentationSegmentIterator - + DefaultDatabaseProvider
A DatabaseProvider that provides instances obtained from a SQLiteOpenHelper.
- + DefaultDataSource
A DataSource that supports multiple URI schemes.
- -DefaultDataSourceFactory + +DefaultDataSource.Factory -
A DataSource.Factory that produces DefaultDataSource instances that delegate to DefaultHttpDataSources for non-file/asset/content URIs.
+ - + +DefaultDataSourceFactory +Deprecated. + + + + DefaultDownloaderFactory
Default DownloaderFactory, supporting creation of progressive, DASH, HLS and SmoothStreaming downloaders.
- + DefaultDownloadIndex
A DownloadIndex that uses SQLite to persist Downloads.
- + DefaultDrmSessionManager
A DrmSessionManager that supports playbacks using ExoMediaDrm.
- + DefaultDrmSessionManager.Builder
Builder for DefaultDrmSessionManager instances.
- + DefaultDrmSessionManager.MissingSchemeDataException - + DefaultDrmSessionManager.Mode
Determines the action to be done after a session acquired.
- + DefaultDrmSessionManagerProvider
Default implementation of DrmSessionManagerProvider.
- + DefaultExtractorInput
An ExtractorInput that wraps a DataReader.
- + DefaultExtractorsFactory
An ExtractorsFactory that provides an array of extractors for the following formats: @@ -2099,1745 +2147,1760 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); com.google.android.exoplayer2.ext.flac.FlacExtractor is used.
- + DefaultHlsDataSourceFactory
Default implementation of HlsDataSourceFactory.
- + DefaultHlsExtractorFactory
Default HlsExtractorFactory implementation.
- + DefaultHlsPlaylistParserFactory
Default implementation for HlsPlaylistParserFactory.
- + DefaultHlsPlaylistTracker
Default implementation for HlsPlaylistTracker.
- + DefaultHttpDataSource
An HttpDataSource that uses Android's HttpURLConnection.
- + DefaultHttpDataSource.Factory - -DefaultHttpDataSourceFactory -Deprecated. - - - - + DefaultLivePlaybackSpeedControl
A LivePlaybackSpeedControl that adjusts the playback speed using a proportional controller.
- + DefaultLivePlaybackSpeedControl.Builder - + DefaultLoadControl
The default LoadControl implementation.
- + DefaultLoadControl.Builder
Builder for DefaultLoadControl.
- + DefaultLoadErrorHandlingPolicy
Default implementation of LoadErrorHandlingPolicy.
- + +DefaultMediaCodecAdapterFactory + + + + + DefaultMediaDescriptionAdapter - + DefaultMediaItemConverter
Default MediaItemConverter implementation.
- + DefaultMediaItemConverter
Default implementation of MediaItemConverter.
- + DefaultMediaSourceFactory
The default MediaSourceFactory implementation.
- + DefaultMediaSourceFactory.AdsLoaderProvider -
Provides AdsLoader instances for media items that have ad tag URIs.
+
Provides AdsLoader instances for media items that have ad tag URIs.
- + DefaultPlaybackSessionManager
Default PlaybackSessionManager which instantiates a new session for each window in the timeline and also for each ad within the windows.
- + DefaultRenderersFactory
Default RenderersFactory implementation.
- + DefaultRenderersFactory.ExtensionRendererMode
Modes for using extension renderers.
- + DefaultRenderersFactoryAsserts
Assertions for DefaultRenderersFactory.
- + DefaultRtpPayloadReaderFactory
Default RtpPayloadReader.Factory implementation.
- + DefaultSsChunkSource
A default SsChunkSource implementation.
- + DefaultSsChunkSource.Factory   - + DefaultTimeBar
A time bar that shows a current position, buffered position, duration and ad markers.
- + DefaultTrackNameProvider - + DefaultTrackSelector
A default TrackSelector suitable for most use cases.
- + DefaultTrackSelector.AudioTrackScore
Represents how well an audio track matches the selection DefaultTrackSelector.Parameters.
- + DefaultTrackSelector.OtherTrackScore
Represents how well any other track (non video, audio or text) matches the selection DefaultTrackSelector.Parameters.
- + DefaultTrackSelector.Parameters
Extends DefaultTrackSelector.Parameters by adding fields that are specific to DefaultTrackSelector.
- + DefaultTrackSelector.ParametersBuilder - + DefaultTrackSelector.SelectionOverride
A track selection override.
- + DefaultTrackSelector.TextTrackScore
Represents how well a text track matches the selection DefaultTrackSelector.Parameters.
- + DefaultTrackSelector.VideoTrackScore
Represents how well a video track matches the selection DefaultTrackSelector.Parameters.
- + DefaultTsPayloadReaderFactory
Default TsPayloadReader.Factory implementation.
- + DefaultTsPayloadReaderFactory.Flags
Flags controlling elementary stream readers' behavior.
- + Descriptor
A descriptor, as defined by ISO 23009-1, 2nd edition, 5.8.2.
- -DeviceInfo + +DeviceInfo
Information about the playback device.
- -DeviceInfo.PlaybackType + +DeviceInfo.PlaybackType
Types of playback.
- -DeviceListener -Deprecated. - - - - + DolbyVisionConfig
Dolby Vision configuration data.
- + Download
Represents state of a download.
- + Download.FailureReason
Failure reasons.
- + Download.State
Download states.
- + DownloadBuilder
Builder for Download.
- + DownloadCursor
Provides random read-write access to the result set returned by a database query.
- + Downloader
Downloads and removes a piece of content.
- + Downloader.ProgressListener
Receives progress updates during download operations.
- + DownloaderFactory
Creates Downloaders for given DownloadRequests.
- + DownloadException
Thrown on an error during downloading.
- + DownloadHelper
A helper for initializing and removing downloads.
- + DownloadHelper.Callback
A callback to be notified when the DownloadHelper is prepared.
- + DownloadHelper.LiveContentUnsupportedException
Thrown at an attempt to download live content.
- + DownloadIndex
An index of Downloads.
- + DownloadManager
Manages downloads.
- + DownloadManager.Listener
Listener for DownloadManager events.
- + DownloadNotificationHelper
Helper for creating download notifications.
- + DownloadProgress
Mutable Download progress.
- + DownloadRequest
Defines content to be downloaded.
- + DownloadRequest.Builder
A builder for download requests.
- + DownloadRequest.UnsupportedRequestException
Thrown when the encoded request data belongs to an unsupported request type.
- + DownloadService
A Service for downloading media.
- + DrmInitData
Initialization data for one or more DRM schemes.
- + DrmInitData.SchemeData
Scheme initialization data.
- + DrmSession
A DRM session.
- + DrmSession.DrmSessionException
Wraps the throwable which is the cause of the error state.
- + DrmSession.State
The state of the DRM session.
- + DrmSessionEventListener
Listener of DrmSessionManager events.
- + DrmSessionEventListener.EventDispatcher
Dispatches events to DrmSessionEventListeners.
- + DrmSessionManager
Manages a DRM session.
- + DrmSessionManager.DrmSessionReference
Represents a single reference count of a DrmSession, while deliberately not giving access to the underlying session.
- + DrmSessionManagerProvider
A provider to obtain a DrmSessionManager suitable for playing the content described by a MediaItem.
- + DrmUtil
DRM-related utility methods.
- + DrmUtil.ErrorSource
Identifies the operation which caused a DRM-related error.
- + DtsReader
Parses a continuous DTS byte stream and extracts individual samples.
- + DtsUtil
Utility methods for parsing DTS frames.
- + DummyDataSource
A DataSource which provides no data.
- + DummyExoMediaDrm
An ExoMediaDrm that does not support any protection schemes.
- + DummyExtractorOutput
A fake ExtractorOutput implementation.
- + DummyMainThread
Helper class to simulate main/UI thread in tests.
- + DummyMainThread.TestRunnable
Runnable variant which can throw a checked exception.
- + DummySurface
A dummy Surface.
- + DummyTrackOutput
A fake TrackOutput implementation.
- + DumpableFormat
Wraps a Format to allow dumping it.
- + Dumper
Helper utility to dump field values.
- + Dumper.Dumpable
Provides custom dump method.
- + DumpFileAsserts
Helper class to enable assertions based on golden-data dump files.
- + DvbDecoder
A SimpleSubtitleDecoder for DVB subtitles.
- + DvbSubtitleReader
Parses DVB subtitle data and extracts individual frames.
- + EbmlProcessor
Defines EBML element IDs/types and processes events.
- + EbmlProcessor.ElementType
EBML element types.
- + EGLSurfaceTexture
Generates a SurfaceTexture using EGL/GLES functions.
- + EGLSurfaceTexture.GlException
A runtime exception to be thrown if some EGL operations failed.
- + EGLSurfaceTexture.SecureMode
Secure mode to be used by the EGL surface and context.
- + EGLSurfaceTexture.TextureImageListener
Listener to be called when the texture image on SurfaceTexture has been updated.
- + ElementaryStreamReader
Extracts individual samples from an elementary media stream, preserving original order.
- + EmptySampleStream
An empty SampleStream.
- + ErrorMessageProvider<T extends Throwable>
Converts throwables into error codes and user readable error messages.
- + ErrorStateDrmSession
A DrmSession that's in a terminal error state.
- + EventLogger
Logs events from Player and other core components using Log.
- + EventMessage
An Event Message (emsg) as defined in ISO 23009-1.
- + EventMessageDecoder
Decodes data encoded by EventMessageEncoder.
- + EventMessageEncoder
Encodes data that can be decoded by EventMessageDecoder.
- + EventStream
A DASH in-MPD EventStream element, as defined by ISO/IEC 23009-1, 2nd edition, section 5.10.
- + ExoDatabaseProvider - -
An SQLiteOpenHelper that provides instances of a standalone ExoPlayer database.
+Deprecated. + - + ExoHostedTest
A HostActivity.HostedTest for ExoPlayer playback tests.
- -ExoMediaCrypto - -
Enables decoding of encrypted data using keys in a DRM session.
- - - + ExoMediaDrm
Used to obtain keys for decrypting protected media streams.
- + ExoMediaDrm.AppManagedProvider
Provides an ExoMediaDrm instance owned by the app.
- + ExoMediaDrm.KeyRequest
Contains data used to request keys from a license server.
- + ExoMediaDrm.KeyRequest.RequestType
Key request types.
- + ExoMediaDrm.KeyStatus
Defines the status of a key.
- + ExoMediaDrm.OnEventListener
Called when a DRM event occurs.
- + ExoMediaDrm.OnExpirationUpdateListener
Called when a session expiration update occurs.
- + ExoMediaDrm.OnKeyStatusChangeListener
Called when the keys in a DRM session change state.
- + ExoMediaDrm.Provider
Provider for ExoMediaDrm instances.
- + ExoMediaDrm.ProvisionRequest
Contains data to request a certificate from a provisioning server.
- + ExoPlaybackException
Thrown when a non locally recoverable playback failure occurs.
- + ExoPlaybackException.Type
The type of source that produced the error.
- + ExoPlayer
An extensible media player that plays MediaSources.
- + ExoPlayer.AudioComponent - -
The audio component of an ExoPlayer.
+Deprecated. +
Use ExoPlayer, as the ExoPlayer.AudioComponent methods are defined by that + interface.
- + ExoPlayer.AudioOffloadListener
A listener for audio offload events.
- + ExoPlayer.Builder -Deprecated. - + +
A builder for ExoPlayer instances.
- + ExoPlayer.DeviceComponent - -
The device component of an ExoPlayer.
+Deprecated. +
Use Player, as the ExoPlayer.DeviceComponent methods are defined by that + interface.
- -ExoPlayer.MetadataComponent - -
The metadata component of an ExoPlayer.
- - - + ExoPlayer.TextComponent - -
The text component of an ExoPlayer.
+Deprecated. +
Use Player, as the ExoPlayer.TextComponent methods are defined by that + interface.
- + ExoPlayer.VideoComponent - -
The video component of an ExoPlayer.
+Deprecated. +
Use ExoPlayer, as the ExoPlayer.VideoComponent methods are defined by that + interface.
- + +ExoplayerCuesDecoder + +
A SubtitleDecoder that decodes subtitle samples of type MimeTypes.TEXT_EXOPLAYER_CUES
+ + + ExoPlayerLibraryInfo -
Information about the ExoPlayer library.
+
Information about the media libraries.
- + ExoPlayerTestRunner
Helper class to run an ExoPlayer test.
- + ExoPlayerTestRunner.Builder -
Builder to set-up a ExoPlayerTestRunner.
+
Builder to set-up an ExoPlayerTestRunner.
- + ExoTimeoutException
A timeout of an operation on the ExoPlayer playback thread.
- + ExoTimeoutException.TimeoutOperation
The operation which produced the timeout error.
- + ExoTrackSelection - + ExoTrackSelection.Definition
Contains of a subset of selected tracks belonging to a TrackGroup.
- + ExoTrackSelection.Factory
Factory for ExoTrackSelection instances.
- + Extractor
Extracts media data from a container format.
- + Extractor.ReadResult
Result values that can be returned by Extractor.read(ExtractorInput, PositionHolder).
- + ExtractorAsserts
Assertion methods for Extractor.
- + ExtractorAsserts.AssertionConfig
A config for the assertions made (e.g.
- + ExtractorAsserts.AssertionConfig.Builder
Builder for ExtractorAsserts.AssertionConfig instances.
- + ExtractorAsserts.ExtractorFactory
A factory for Extractor instances.
- + ExtractorAsserts.SimulationConfig
A config of different environments to simulate and extractor behaviours to test.
- + ExtractorInput
Provides data to be consumed by an Extractor.
- + ExtractorOutput
Receives stream level data extracted by an Extractor.
- + ExtractorsFactory
Factory for arrays of Extractor instances.
- + ExtractorUtil
Extractor related utility methods.
- + FailOnCloseDataSink
A DataSink that can simulate caching the bytes being written to it, and then failing to persist them when FailOnCloseDataSink.close() is called.
- + FailOnCloseDataSink.Factory
Factory to create a FailOnCloseDataSink.
- + FakeAdaptiveDataSet
Fake data set emulating the data of an adaptive media source.
- + FakeAdaptiveDataSet.Factory
Factory for FakeAdaptiveDataSets.
- + FakeAdaptiveDataSet.Iterator
MediaChunkIterator for the chunks defined by a fake adaptive data set.
- + FakeAdaptiveMediaPeriod
Fake MediaPeriod that provides tracks from the given TrackGroupArray.
- + FakeAdaptiveMediaSource
Fake MediaSource that provides a given timeline.
- + FakeAudioRenderer - + FakeChunkSource
Fake ChunkSource with adaptive media chunks of a given duration.
- + FakeChunkSource.Factory
Factory for a FakeChunkSource.
- + FakeClock
Fake Clock implementation that allows to advance the time manually to trigger pending timed messages.
- + +FakeCryptoConfig + + + + + FakeDataSet
Collection of FakeDataSet.FakeData to be served by a FakeDataSource.
- + FakeDataSet.FakeData
Container of fake data to be served by a FakeDataSource.
- + FakeDataSet.FakeData.Segment
A segment of FakeDataSet.FakeData.
- + FakeDataSource
A fake DataSource capable of simulating various scenarios.
- + FakeDataSource.Factory
Factory to create a FakeDataSource.
- + FakeExoMediaDrm
A fake implementation of ExoMediaDrm for use in tests.
- + FakeExoMediaDrm.Builder
Builder for FakeExoMediaDrm instances.
- + FakeExoMediaDrm.LicenseServer
An license server implementation to interact with FakeExoMediaDrm.
- + FakeExtractorInput
A fake ExtractorInput capable of simulating various scenarios.
- + FakeExtractorInput.Builder
Builder of FakeExtractorInput instances.
- + FakeExtractorInput.SimulatedIOException
Thrown when simulating an IOException.
- + FakeExtractorOutput - + FakeMediaChunk - + FakeMediaChunkIterator - + FakeMediaClockRenderer
Fake abstract Renderer which is also a MediaClock.
- + FakeMediaPeriod
Fake MediaPeriod that provides tracks from the given TrackGroupArray.
- + FakeMediaPeriod.TrackDataFactory
A factory to create the test data for a particular track.
- + FakeMediaSource
Fake MediaSource that provides a given timeline.
- + FakeMediaSource.InitialTimeline
A forwarding timeline to provide an initial timeline for fake multi window sources.
- + +FakeMediaSourceFactory + +
Fake MediaSourceFactory that creates a FakeMediaSource.
+ + + +FakeMetadataEntry + + + + + FakeRenderer
Fake Renderer that supports any format with the matching track type.
- + FakeSampleStream
Fake SampleStream that outputs a given Format and any amount of items.
- + FakeSampleStream.FakeSampleStreamItem - + FakeShuffleOrder
Fake ShuffleOrder which returns a reverse order.
- + FakeTimeline
Fake Timeline which can be setup to return custom FakeTimeline.TimelineWindowDefinitions.
- + FakeTimeline.TimelineWindowDefinition
Definition used to define a FakeTimeline.
- + FakeTrackOutput
A fake TrackOutput.
- + FakeTrackOutput.Factory
Factory for FakeTrackOutput instances.
- + FakeTrackSelection
A fake ExoTrackSelection that only returns 1 fixed track, and allows querying the number of calls to its methods.
- + FakeTrackSelector - + FakeVideoRenderer - + FfmpegAudioRenderer
Decodes and renders audio using FFmpeg.
- + FfmpegDecoderException
Thrown when an FFmpeg decoder error occurs.
- + FfmpegLibrary
Configures and queries the underlying native library.
- + FileDataSource
A DataSource for reading local files.
- + FileDataSource.Factory - + FileDataSource.FileDataSourceException
Thrown when a FileDataSource encounters an error reading a file.
- -FileDataSourceFactory -Deprecated. - - - - + FileTypes
Defines common file type constants and helper methods.
- + FileTypes.Type
File types.
- + FilterableManifest<T>
A manifest that can generate copies of itself including only the streams specified by the given keys.
- + FilteringHlsPlaylistParserFactory
A HlsPlaylistParserFactory that includes only the streams identified by the given stream keys.
- + FilteringManifestParser<T extends FilterableManifest<T>>
A manifest parser that includes only the streams identified by the given stream keys.
- + FixedTrackSelection
A TrackSelection consisting of a single track.
- -FlacConstants + +FlacConstants
Defines constants used by the FLAC extractor.
- + FlacDecoder
Flac decoder.
- + FlacDecoderException
Thrown when an Flac decoder error occurs.
- + FlacExtractor
Facilitates the extraction of data from the FLAC container format.
- + FlacExtractor
Extracts data from FLAC container format.
- + FlacExtractor.Flags
Flags controlling the behavior of the extractor.
- + FlacExtractor.Flags
Flags controlling the behavior of the extractor.
- + FlacFrameReader
Reads and peeks FLAC frame elements according to the FLAC format specification.
- + FlacFrameReader.SampleNumberHolder
Holds a sample number.
- + FlacLibrary
Configures and queries the underlying native library.
- + FlacMetadataReader
Reads and peeks FLAC stream metadata elements according to the FLAC format specification.
- + FlacMetadataReader.FlacStreamMetadataHolder - + FlacSeekTableSeekMap
A SeekMap implementation for FLAC streams that contain a seek table.
- + FlacStreamMetadata
Holder for FLAC metadata.
- + FlacStreamMetadata.SeekTable
A FLAC seek table.
- + FlagSet
A set of integer flags.
- + FlagSet.Builder
A builder for FlagSet instances.
- + FlvExtractor
Extracts data from the FLV container format.
- + Format
Represents a media format.
- + Format.Builder
Builds Format instances.
- + FormatHolder
Holds a Format.
- + ForwardingAudioSink
An overridable AudioSink implementation forwarding all methods to another sink.
- + ForwardingExtractorInput
An overridable ExtractorInput implementation forwarding all methods to another input.
- + ForwardingPlayer
A Player that forwards operations to another Player.
- + ForwardingTimeline
An overridable Timeline implementation forwarding all methods to another timeline.
- + FragmentedMp4Extractor
Extracts data from the FMP4 container format.
- + FragmentedMp4Extractor.Flags
Flags controlling the behavior of the extractor.
- -FrameworkMediaCrypto + +FrameworkCryptoConfig -
An ExoMediaCrypto implementation that contains the necessary information to build or - update a framework MediaCrypto.
+ - + FrameworkMediaDrm
An ExoMediaDrm implementation that wraps the framework MediaDrm.
- + GaplessInfoHolder
Holder for gapless playback information.
- + Gav1Decoder
Gav1 decoder.
- + Gav1DecoderException
Thrown when a libgav1 decoder error occurs.
- + Gav1Library
Configures and queries the underlying native library.
- + GeobFrame
GEOB (General Encapsulated Object) ID3 frame.
- + GlUtil
GL utilities.
- + GlUtil.Attribute
GL attribute, which can be attached to a buffer with GlUtil.Attribute.setBuffer(float[], int).
- + +GlUtil.GlException + +
Thrown when an OpenGL error occurs and GlUtil.glAssertionsEnabled is true.
+ + + +GlUtil.Program + +
GL program.
+ + + GlUtil.Uniform
GL uniform, which can be attached to a sampler using GlUtil.Uniform.setSamplerTexId(int, int).
- -GvrAudioProcessor -Deprecated. -
If you still need this component, please contact us by filing an issue on our issue tracker.
+ +GlUtil.UnsupportedEglVersionException + +
Thrown when the required EGL version is not supported by the device.
- + H262Reader
Parses a continuous H262 byte stream and extracts individual frames.
- + H263Reader
Parses an ISO/IEC 14496-2 (MPEG-4 Part 2) or ITU-T Recommendation H.263 byte stream and extracts individual frames.
- + H264Reader
Parses a continuous H264 byte stream and extracts individual frames.
- + H265Reader
Parses a continuous H.265 byte stream and extracts individual frames.
- + HandlerWrapper
An interface to call through to a Handler.
- + HandlerWrapper.Message
A message obtained from the handler.
- + HeartRating
A rating expressed as "heart" or "no heart".
- + HevcConfig
HEVC configuration data.
- + HlsDataSourceFactory
Creates DataSources for HLS playlists, encryption and media chunks.
- + HlsDownloader
A downloader for HLS streams.
- + HlsExtractorFactory
Factory for HLS media chunk extractors.
- + HlsManifest
Holds a master playlist along with a snapshot of one of its media playlists.
- + HlsMasterPlaylist
Represents an HLS master playlist.
- + HlsMasterPlaylist.Rendition
A rendition (i.e.
- + HlsMasterPlaylist.Variant
A variant (i.e.
- + HlsMediaChunkExtractor
Extracts samples and track Formats from HlsMediaChunks.
- + HlsMediaPeriod
A MediaPeriod that loads an HLS stream.
- + HlsMediaPlaylist
Represents an HLS media playlist.
- + HlsMediaPlaylist.Part
A media part.
- + HlsMediaPlaylist.PlaylistType
Type of the playlist, as defined by #EXT-X-PLAYLIST-TYPE.
- + HlsMediaPlaylist.RenditionReport
A rendition report for an alternative rendition defined in another media playlist.
- + HlsMediaPlaylist.Segment
Media segment reference.
- + HlsMediaPlaylist.SegmentBase
The base for a HlsMediaPlaylist.Segment or a HlsMediaPlaylist.Part required for playback.
- + HlsMediaPlaylist.ServerControl
Server control attributes.
- + HlsMediaSource
An HLS MediaSource.
- + HlsMediaSource.Factory
Factory for HlsMediaSources.
- + HlsMediaSource.MetadataType
The types of metadata that can be extracted from HLS streams.
- + HlsPlaylist
Represents an HLS playlist.
- + HlsPlaylistParser
HLS playlists parsing logic.
- + HlsPlaylistParser.DeltaUpdateException
Exception thrown when merging a delta update fails.
- + HlsPlaylistParserFactory
Factory for HlsPlaylist parsers.
- + HlsPlaylistTracker
Tracks playlists associated to an HLS stream and provides snapshots.
- + HlsPlaylistTracker.Factory
Factory for HlsPlaylistTracker instances.
- + HlsPlaylistTracker.PlaylistEventListener
Called on playlist loading events.
- + HlsPlaylistTracker.PlaylistResetException
Thrown when the media sequence of a new snapshot indicates the server has reset.
- + HlsPlaylistTracker.PlaylistStuckException
Thrown when a playlist is considered to be stuck due to a server side error.
- + HlsPlaylistTracker.PrimaryPlaylistListener
Listener for primary playlist changes.
- + HlsTrackMetadataEntry
Holds metadata associated to an HLS media track.
- + HlsTrackMetadataEntry.VariantInfo
Holds attributes defined in an EXT-X-STREAM-INF tag.
- + HorizontalTextInVerticalContextSpan
A styling span for horizontal text in a vertical context.
- + HostActivity
A host activity for performing playback tests.
- + HostActivity.HostedTest
Interface for tests that run inside of a HostActivity.
- + HttpDataSource
An HTTP DataSource.
- + HttpDataSource.BaseFactory
Base implementation of HttpDataSource.Factory that sets default request properties.
- + HttpDataSource.CleartextNotPermittedException
Thrown when cleartext HTTP traffic is not permitted.
- + HttpDataSource.Factory
A factory for HttpDataSource instances.
- + HttpDataSource.HttpDataSourceException
Thrown when an error is encountered when trying to read from a HttpDataSource.
- + HttpDataSource.HttpDataSourceException.Type
The type of operation that produced the error.
- + HttpDataSource.InvalidContentTypeException
Thrown when the content type is invalid.
- + HttpDataSource.InvalidResponseCodeException
Thrown when an attempt to open a connection results in a response code not in the 2xx range.
- + HttpDataSource.RequestProperties
Stores HTTP request properties (aka HTTP headers) and provides methods to modify the headers in @@ -3845,330 +3908,324 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); state.
- + HttpDataSourceTestEnv
A JUnit Rule that creates test resources for HttpDataSource contract tests.
- + HttpMediaDrmCallback
A MediaDrmCallback that makes requests using HttpDataSource instances.
- + HttpUtil
Utility methods for HTTP.
- + IcyDecoder
Decodes ICY stream information.
- + IcyHeaders
ICY headers.
- + IcyInfo
ICY in-stream information.
- + Id3Decoder
Decodes ID3 tags.
- + Id3Decoder.FramePredicate
A predicate for determining whether individual frames should be decoded.
- + Id3Frame
Base class for ID3 frames.
- + Id3Peeker
Peeks data from the beginning of an ExtractorInput to determine if there is any ID3 tag.
- + Id3Reader
Parses ID3 data and extracts individual text information frames.
- + IllegalSeekPositionException
Thrown when an attempt is made to seek to a position that does not exist in the player's Timeline.
- + ImaAdsLoader
AdsLoader using the IMA SDK.
- + ImaAdsLoader.Builder
Builder for ImaAdsLoader.
- + IndexSeekMap
A SeekMap implementation based on a mapping between times and positions in the input stream.
- + InitializationChunk
A Chunk that uses an Extractor to decode initialization data for single track.
- + InputReaderAdapterV30
MediaParser.SeekableInputReader implementation wrapping a DataReader.
- -IntArrayQueue - -
Array-based unbounded queue for int primitives with amortized O(1) add and remove.
- - - + InternalFrame
Internal ID3 frame that is intended for use by the player.
- + JpegExtractor
Extracts JPEG image using the Exif format.
- + KeysExpiredException
Thrown when the drm keys loaded into an open session expire.
- + LanguageFeatureSpan
Marker interface for span classes that carry language features rather than style information.
- + LatmReader
Parses and extracts samples from an AAC/LATM elementary stream.
- + LeanbackPlayerAdapter
Leanback PlayerAdapter implementation for Player.
- + LeastRecentlyUsedCacheEvictor
Evicts least recently used cache files first.
- + LibflacAudioRenderer
Decodes and renders audio using the native Flac decoder.
- + Libgav1VideoRenderer
Decodes and renders video using libgav1 decoder.
- + LibopusAudioRenderer
Decodes and renders audio using the native Opus decoder.
- + LibraryLoader
Configurable loader for native libraries.
- + LibvpxVideoRenderer
Decodes and renders video using the native VP9 decoder.
- -ListenerSet<T> + +ListenerSet<T extends @NonNull Object>
A set of listeners.
- + ListenerSet.Event<T>
An event sent to a listener.
- + ListenerSet.IterationFinishedEvent<T>
An event sent to a listener when all other events sent during one Looper message queue iteration were handled by the listener.
- + LivePlaybackSpeedControl
Controls the playback speed while playing live content in order to maintain a steady target live offset.
- + LoadControl
Controls buffering of media.
- + Loader
Manages the background loading of Loader.Loadables.
- + Loader.Callback<T extends Loader.Loadable>
A callback to be notified of Loader events.
- + Loader.Loadable
An object that can be loaded using a Loader.
- + Loader.LoadErrorAction - + Loader.ReleaseCallback
A callback to be notified when a Loader has finished being released.
- + Loader.UnexpectedLoaderException
Thrown when an unexpected exception or error is encountered during loading.
- + LoaderErrorThrower
Conditionally throws errors affecting a Loader.
- + LoaderErrorThrower.Dummy
A LoaderErrorThrower that never throws.
- + LoadErrorHandlingPolicy
A policy that defines how load errors are handled.
- + LoadErrorHandlingPolicy.FallbackOptions
Holds information about the available fallback options.
- + LoadErrorHandlingPolicy.FallbackSelection
A selected fallback option.
- + LoadErrorHandlingPolicy.FallbackType
Fallback type.
- + LoadErrorHandlingPolicy.LoadErrorInfo
Holds information about a load task error.
- + LoadEventInfo
MediaSource load event information.
- + LocalMediaDrmCallback
A MediaDrmCallback that provides a fixed response to key requests.
- + Log
Wrapper around Log which allows to set the log level.
- + LongArray
An append-only, auto-growing long[].
- + LoopingMediaSource Deprecated. -
To loop a MediaSource indefinitely, use Player.setRepeatMode(int) +
To loop a MediaSource indefinitely, use Player.setRepeatMode(int) instead of this class.
- + MappingTrackSelector
Base class for TrackSelectors that first establish a mapping between TrackGroups @@ -4176,1667 +4233,1708 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); renderer.
- + MappingTrackSelector.MappedTrackInfo
Provides mapped track information for each renderer.
- + MaskingMediaPeriod
Media period that defers calling MediaSource.createPeriod(MediaPeriodId, Allocator, long) on a given source until MaskingMediaPeriod.createPeriod(MediaPeriodId) has been called.
- + MaskingMediaPeriod.PrepareListener
Listener for preparation events.
- + MaskingMediaSource
A MediaSource that masks the Timeline with a placeholder until the actual media structure is known.
- + MaskingMediaSource.PlaceholderTimeline
A timeline with one dynamic window with a period of indeterminate duration.
- + MatroskaExtractor
Extracts data from the Matroska and WebM container formats.
- + MatroskaExtractor.Flags
Flags controlling the behavior of the extractor.
- + MdtaMetadataEntry
Stores extensible metadata with handler type 'mdta'.
- + MediaChunk
An abstract base class for Chunks that contain media samples.
- + MediaChunkIterator
Iterator for media chunk sequences.
- + MediaClock
Tracks the progression of media time.
- + MediaCodecAdapter
Abstracts MediaCodec operations.
- + MediaCodecAdapter.Configuration
Configuration parameters for a MediaCodecAdapter.
- + MediaCodecAdapter.Factory
A factory for MediaCodecAdapter instances.
- + MediaCodecAdapter.OnFrameRenderedListener
Listener to be called when an output frame has rendered on the output surface.
- + MediaCodecAudioRenderer
Decodes and renders audio using MediaCodec and an AudioSink.
- + MediaCodecDecoderException
Thrown when a failure occurs in a MediaCodec decoder.
- + MediaCodecInfo
Information about a MediaCodec for a given mime type.
- + MediaCodecRenderer
An abstract renderer that uses MediaCodec to decode samples for rendering.
- + MediaCodecRenderer.DecoderInitializationException
Thrown when a failure occurs instantiating a decoder.
- + MediaCodecSelector
Selector of MediaCodec instances.
- + MediaCodecUtil
A utility class for querying the available codecs.
- + MediaCodecUtil.DecoderQueryException
Thrown when an error occurs querying the device for its underlying media capabilities.
- + MediaCodecVideoDecoderException
Thrown when a failure occurs in a MediaCodec video decoder.
- + MediaCodecVideoRenderer
Decodes and renders video using MediaCodec.
- + MediaCodecVideoRenderer.CodecMaxValues   - + MediaDrmCallback
Performs ExoMediaDrm key and provisioning requests.
- + MediaDrmCallbackException
Thrown when an error occurs while executing a DRM key or provisioning request.
- + MediaFormatUtil
Helper class containing utility methods for managing MediaFormat instances.
- + MediaItem
Representation of a media item.
- + MediaItem.AdsConfiguration
Configuration for playing back linear ads with a media item.
- + +MediaItem.AdsConfiguration.Builder + +
Builder for MediaItem.AdsConfiguration instances.
+ + + MediaItem.Builder
A builder for MediaItem instances.
- -MediaItem.ClippingProperties + +MediaItem.ClippingConfiguration
Optionally clips the media item to a custom start and end position.
- + +MediaItem.ClippingConfiguration.Builder + +
Builder for MediaItem.ClippingConfiguration instances.
+ + + +MediaItem.ClippingProperties +Deprecated. + + + + MediaItem.DrmConfiguration
DRM configuration for a media item.
- + +MediaItem.DrmConfiguration.Builder + + + + + MediaItem.LiveConfiguration
Live playback configuration.
- -MediaItem.PlaybackProperties + +MediaItem.LiveConfiguration.Builder + +
Builder for MediaItem.LiveConfiguration instances.
+ + + +MediaItem.LocalConfiguration
Properties for local playback.
- + +MediaItem.PlaybackProperties +Deprecated. + + + + MediaItem.Subtitle +Deprecated. + + + + +MediaItem.SubtitleConfiguration
Properties for a text track.
- + +MediaItem.SubtitleConfiguration.Builder + +
Builder for MediaItem.SubtitleConfiguration instances.
+ + + MediaItemConverter
Converts between MediaItem and the Cast SDK's MediaQueueItem.
- + MediaItemConverter
Converts between Media2 MediaItem and ExoPlayer MediaItem.
- + MediaLoadData
Descriptor for data being loaded or selected by a MediaSource.
- + MediaMetadata
Metadata of a MediaItem, playlist, or a combination of multiple sources of Metadata.
- + MediaMetadata.Builder
A builder for MediaMetadata instances.
- + MediaMetadata.FolderType
The folder type of the media item.
- + MediaMetadata.PictureType
The picture type of the artwork.
- + MediaParserChunkExtractor
ChunkExtractor implemented on top of the platform's MediaParser.
- + MediaParserExtractorAdapter
ProgressiveMediaExtractor implemented on top of the platform's MediaParser.
- + MediaParserHlsMediaChunkExtractor
HlsMediaChunkExtractor implemented on top of the platform's MediaParser.
- + MediaParserUtil
Miscellaneous constants and utility methods related to the MediaParser integration.
- + MediaPeriod
Loads media corresponding to a Timeline.Period, and allows that media to be read.
- + MediaPeriod.Callback
A callback to be notified of MediaPeriod events.
- + MediaPeriodAsserts
Assertion methods for MediaPeriod.
- + MediaPeriodAsserts.FilterableManifestMediaPeriodFactory<T extends FilterableManifest<T>>
Interface to create media periods for testing based on a FilterableManifest.
- + MediaPeriodId
Identifies a specific playback of a Timeline.Period.
- + MediaSessionConnector
Connects a MediaSessionCompat to a Player.
- + MediaSessionConnector.CaptionCallback
Handles requests for enabling or disabling captions.
- + MediaSessionConnector.CommandReceiver
Receiver of media commands sent by a media controller.
- + MediaSessionConnector.CustomActionProvider
Provides a PlaybackStateCompat.CustomAction to be published and handles the action when sent by a media controller.
- + MediaSessionConnector.DefaultMediaMetadataProvider
Provides a default MediaMetadataCompat with properties and extras taken from the MediaDescriptionCompat of the MediaSessionCompat.QueueItem of the active queue item.
- + MediaSessionConnector.MediaButtonEventHandler
Handles a media button event.
- + MediaSessionConnector.MediaMetadataProvider
Provides a MediaMetadataCompat for a given player state.
- + MediaSessionConnector.PlaybackActions
Playback actions supported by the connector.
- + MediaSessionConnector.PlaybackPreparer
Interface to which playback preparation and play actions are delegated.
- + MediaSessionConnector.QueueEditor
Handles media session queue edits.
- + MediaSessionConnector.QueueNavigator
Handles queue navigation actions, and updates the media session queue by calling MediaSessionCompat.setQueue().
- + MediaSessionConnector.RatingCallback
Callback receiving a user rating for the active media item.
- + MediaSource
Defines and provides media to be played by an ExoPlayer.
- + MediaSource.MediaPeriodId
Identifier for a MediaPeriod.
- + MediaSource.MediaSourceCaller
A caller of media sources, which will be notified of source events.
- + MediaSourceEventListener
Interface for callbacks to be notified of MediaSource events.
- + MediaSourceEventListener.EventDispatcher
Dispatches events to MediaSourceEventListeners.
- + MediaSourceFactory
Factory for creating MediaSources from MediaItems.
- + MediaSourceTestRunner
A runner for MediaSource tests.
- + MergingMediaSource
Merges multiple MediaSources.
- + MergingMediaSource.IllegalMergeException
Thrown when a MergingMediaSource cannot merge its sources.
- + MergingMediaSource.IllegalMergeException.Reason
The reason the merge failed.
- + Metadata
A collection of metadata entries.
- + Metadata.Entry
A metadata entry.
- + MetadataDecoder
Decodes metadata from binary data.
- + MetadataDecoderFactory
A factory for MetadataDecoder instances.
- + MetadataInputBuffer - + MetadataOutput
Receives metadata output.
- + MetadataRenderer
A renderer for metadata.
- + MetadataRetriever
Retrieves the static metadata of MediaItems.
- + MimeTypes
Defines common MIME types and helper methods.
- + MlltFrame
MPEG location lookup table frame.
- + MotionPhotoMetadata
Metadata of a motion photo file.
- + Mp3Extractor
Extracts data from the MP3 container format.
- + Mp3Extractor.Flags
Flags controlling the behavior of the extractor.
- + Mp4Extractor
Extracts data from the MP4 container format.
- + Mp4Extractor.Flags
Flags controlling the behavior of the extractor.
- + Mp4WebvttDecoder
A SimpleSubtitleDecoder for Webvtt embedded in a Mp4 container file.
- + MpegAudioReader
Parses a continuous MPEG Audio byte stream and extracts individual frames.
- + MpegAudioUtil
Utility methods for handling MPEG audio streams.
- + MpegAudioUtil.Header
Stores the metadata for an MPEG audio frame.
- + NalUnitUtil
Utility methods for handling H.264/AVC and H.265/HEVC NAL units.
- + +NalUnitUtil.H265SpsData + +
Holds data parsed from a H.265 sequence parameter set NAL unit.
+ + + NalUnitUtil.PpsData
Holds data parsed from a picture parameter set NAL unit.
- + NalUnitUtil.SpsData -
Holds data parsed from a sequence parameter set NAL unit.
+
Holds data parsed from a H.264 sequence parameter set NAL unit.
- + NetworkTypeObserver
Observer for network type changes.
- + NetworkTypeObserver.Config
Configuration for NetworkTypeObserver.
- + NetworkTypeObserver.Listener
A listener for network type changes.
- + NonNullApi
Annotation to declare all type usages in the annotated instance as Nonnull, unless explicitly marked with a nullable annotation.
- + NoOpCacheEvictor
Evictor that doesn't ever evict cache files.
- + NoSampleRenderer
A Renderer implementation whose track type is C.TRACK_TYPE_NONE and does not consume data from its SampleStream.
- + NotificationUtil
Utility methods for displaying Notifications.
- + NotificationUtil.Importance
Notification channel importance levels.
- + NoUidTimeline
A timeline which wraps another timeline and overrides all window and period uids to 0.
- + OfflineLicenseHelper
Helper class to download, renew and release offline licenses.
- + OggExtractor
Extracts data from the Ogg container format.
- + OkHttpDataSource
An HttpDataSource that delegates to Square's Call.Factory.
- + OkHttpDataSource.Factory - + OkHttpDataSourceFactory Deprecated. - + OpusDecoder
Opus decoder.
- + OpusDecoderException
Thrown when an Opus decoder error occurs.
- + OpusLibrary
Configures and queries the underlying native library.
- + OpusUtil
Utility methods for handling Opus audio streams.
- -OutputBuffer - -
Output buffer decoded by a Decoder.
- - - -OutputBuffer.Owner<S extends OutputBuffer> - -
Buffer owner.
- - - + OutputConsumerAdapterV30
MediaParser.OutputConsumer implementation that redirects output to an ExtractorOutput.
- + ParsableBitArray
Wraps a byte array, providing methods that allow it to be read as a bitstream.
- + ParsableByteArray
Wraps a byte array, providing a set of methods for parsing data from it.
- + ParsableNalUnitBitArray
Wraps a byte array, providing methods that allow it to be read as a NAL unit bitstream.
- + ParserException
Thrown when an error occurs parsing media data and metadata.
- + ParsingLoadable<T>
A Loader.Loadable for objects that can be parsed from binary data using a ParsingLoadable.Parser.
- + ParsingLoadable.Parser<T>
Parses an object from loaded data.
- + PassthroughSectionPayloadReader
A SectionPayloadReader that directly outputs the section bytes as sample data.
- + PercentageRating
A rating expressed as a percentage.
- + Period
Encapsulates media content components over a contiguous period of time.
- + PesReader
Parses PES packet data and extracts samples.
- + PgsDecoder
A SimpleSubtitleDecoder for PGS subtitles.
- + PictureFrame
A picture parsed from a FLAC file.
- + PlatformScheduler
A Scheduler that uses JobScheduler.
- + PlatformScheduler.PlatformSchedulerService
A JobService that starts the target service if the requirements are met.
- + PlaybackException
Thrown when a non locally recoverable playback failure occurs.
- + PlaybackException.ErrorCode
Codes that identify causes of player errors.
- + PlaybackException.FieldNumber
Identifiers for fields in a Bundle which represents a playback exception.
- + PlaybackOutput
Class to capture output from a playback test.
- + PlaybackParameters
Parameters that apply to playback, including speed setting.
- + PlaybackSessionManager
Manager for active playback sessions.
- + PlaybackSessionManager.Listener
A listener for session updates.
- + PlaybackStats
Statistics about playbacks.
- + PlaybackStats.EventTimeAndException
Stores an exception with the event time at which it occurred.
- + PlaybackStats.EventTimeAndFormat
Stores a format with the event time at which it started being used, or null to indicate that no format was used.
- + PlaybackStats.EventTimeAndPlaybackState
Stores a playback state with the event time at which it became active.
- + PlaybackStatsListener
AnalyticsListener to gather PlaybackStats from the player.
- + PlaybackStatsListener.Callback
A listener for PlaybackStats updates.
- + Player
A media player interface defining traditional high-level functionality, such as the ability to play, pause, seek and query properties of the currently playing media.
- + Player.Command
Commands that can be executed on a Player.
- + Player.Commands
A set of commands.
- + Player.Commands.Builder
A builder for Player.Commands instances.
- + Player.DiscontinuityReason
Reasons for position discontinuities.
- + Player.Event
Events that can be reported via Player.Listener.onEvents(Player, Events).
- + Player.EventListener Deprecated. - + Player.Events
A set of events.
- + Player.Listener
Listener of all changes in the Player.
- + Player.MediaItemTransitionReason
Reasons for media item transitions.
- + Player.PlaybackSuppressionReason
Reason why playback is suppressed even though Player.getPlayWhenReady() is true.
- + Player.PlayWhenReadyChangeReason
Reasons for playWhenReady changes.
- + Player.PositionInfo
Position info describing a playback position involved in a discontinuity.
- + Player.RepeatMode
Repeat modes for playback.
- + Player.State
Playback state.
- + Player.TimelineChangeReason
Reasons for timeline changes.
- + PlayerControlView
A view for controlling Player instances.
- + PlayerControlView.ProgressUpdateListener
Listener to be notified when progress has been updated.
- + PlayerControlView.VisibilityListener
Listener to be notified about changes of the visibility of the UI control.
- + PlayerEmsgHandler
Handles all emsg messages from all media tracks for the player.
- + PlayerEmsgHandler.PlayerEmsgCallback
Callbacks for player emsg events encountered during DASH live stream.
- + PlayerMessage
Defines a player message which can be sent with a PlayerMessage.Sender and received by a PlayerMessage.Target.
- + PlayerMessage.Sender
A sender for messages.
- + PlayerMessage.Target
A target for messages.
- + PlayerNotificationManager
Starts, updates and cancels a media style notification reflecting the player state.
- + PlayerNotificationManager.Builder
A builder for PlayerNotificationManager instances.
- + PlayerNotificationManager.CustomActionReceiver
Defines and handles custom actions.
- + PlayerNotificationManager.MediaDescriptionAdapter
An adapter to provide content assets of the media currently playing.
- + PlayerNotificationManager.NotificationListener
A listener for changes to the notification.
- + PlayerNotificationManager.Priority
Priority of the notification (required for API 25 and lower).
- + PlayerNotificationManager.Visibility
Visibility of notification on the lock screen.
- + PlayerView
A high level view for Player media playbacks.
- + PlayerView.ShowBuffering
Determines when the buffering view is shown.
- + PositionHolder
Holds a position in the stream.
- + PriorityDataSource
A DataSource that can be used as part of a task registered with a PriorityTaskManager.
- -PriorityDataSourceFactory + +PriorityDataSource.Factory -
A DataSource.Factory that produces PriorityDataSource instances.
+ - + +PriorityDataSourceFactory +Deprecated. + + + + PriorityTaskManager
Allows tasks with associated priorities to control how they proceed relative to one another.
- + PriorityTaskManager.PriorityTooLowException
Thrown when task attempts to proceed when another registered task has a higher priority.
- + PrivateCommand
Represents a private command as defined in SCTE35, Section 9.3.6.
- + PrivFrame
PRIV (Private) ID3 frame.
- + ProgramInformation
A parsed program information element.
- + ProgressHolder
Holds a progress percentage.
- + ProgressiveDownloader
A downloader for progressive media streams.
- + ProgressiveMediaExtractor
Extracts the contents of a container file from a progressive media stream.
- + ProgressiveMediaExtractor.Factory
Creates ProgressiveMediaExtractor instances.
- + ProgressiveMediaSource
Provides one period that loads data from a Uri and extracted using an Extractor.
- + ProgressiveMediaSource.Factory - + PsExtractor
Extracts data from the MPEG-2 PS container format.
- + PsshAtomUtil
Utility methods for handling PSSH atoms.
- + RandomizedMp3Decoder
Generates randomized, but correct amount of data on MP3 audio input.
- + RandomTrackSelection
An ExoTrackSelection whose selected track is updated randomly.
- + RandomTrackSelection.Factory
Factory for RandomTrackSelection instances.
- + RangedUri
Defines a range of data located at a reference uri.
- + Rating
A rating for media content.
- + RawCcExtractor
Extracts data from the RawCC container format.
- + RawResourceDataSource
A DataSource for reading a raw resource inside the APK.
- + RawResourceDataSource.RawResourceDataSourceException
Thrown when an IOException is encountered reading from a raw resource.
- + Renderer
Renders media read from a SampleStream.
- + +Renderer.MessageType + +
Represents a type of message that can be passed to a renderer.
+ + + Renderer.State
The renderer states.
- -Renderer.VideoScalingMode -Deprecated. - - - - + Renderer.WakeupListener
Some renderers can signal when Renderer.render(long, long) should be called.
- + RendererCapabilities
Defines the capabilities of a Renderer.
- + RendererCapabilities.AdaptiveSupport
Level of renderer support for adaptive format switches.
- + RendererCapabilities.Capabilities
Combined renderer capabilities.
- + RendererCapabilities.FormatSupport Deprecated.
Use C.FormatSupport instead.
- + RendererCapabilities.TunnelingSupport
Level of renderer support for tunneling.
- + RendererConfiguration
The configuration of a Renderer.
- + RenderersFactory -
Builds Renderer instances for use by a SimpleExoPlayer.
+
Builds Renderer instances for use by an ExoPlayer.
- + RepeatModeActionProvider
Provides a custom action for toggling repeat modes.
- + RepeatModeUtil
Util class for repeat mode handling.
- + RepeatModeUtil.RepeatToggleModes
Set of repeat toggle modes.
- + Representation
A DASH representation.
- + Representation.MultiSegmentRepresentation
A DASH representation consisting of multiple segments.
- + Representation.SingleSegmentRepresentation
A DASH representation consisting of a single segment.
- + Requirements
Defines a set of device state requirements.
- + Requirements.RequirementFlags
Requirement flags.
- + RequirementsWatcher
Watches whether the Requirements are met and notifies the RequirementsWatcher.Listener on changes.
- + RequirementsWatcher.Listener
Notified when RequirementsWatcher instance first created and on changes whether the Requirements are met.
- + ResolvingDataSource
DataSource wrapper allowing just-in-time resolution of DataSpecs.
- + ResolvingDataSource.Factory - + ResolvingDataSource.Resolver
Resolves DataSpecs.
- -ReusableBufferedOutputStream - -
This is a subclass of BufferedOutputStream with a ReusableBufferedOutputStream.reset(OutputStream) method - that allows an instance to be re-used with another underlying output stream.
- - - + RobolectricUtil
Utility methods for Robolectric-based tests.
- + RtmpDataSource
A Real-Time Messaging Protocol (RTMP) DataSource.
- + RtmpDataSource.Factory - + RtmpDataSourceFactory Deprecated. - + RtpAc3Reader
Parses an AC3 byte stream carried on RTP packets, and extracts AC3 frames.
- + RtpPacket
Represents the header and the payload of an RTP packet.
- + RtpPacket.Builder
Builder class for an RtpPacket
- + RtpPayloadFormat
Represents the payload format used in RTP.
- + RtpPayloadReader
Extracts media samples from the payload of received RTP packets.
- + RtpPayloadReader.Factory
Factory of RtpPayloadReader instances.
- + RtpUtils
Utility methods for RTP.
- + RtspMediaSource
An Rtsp MediaSource
- + RtspMediaSource.Factory
Factory for RtspMediaSource
- + RtspMediaSource.RtspPlaybackException
Thrown when an exception or error is encountered during loading an RTSP stream.
- + RubySpan
A styling span for ruby text.
- + RunnableFutureTask<R,​E extends Exception>
A RunnableFuture that supports additional uninterruptible operations to query whether execution has started and finished.
- + SampleQueue
A queue of media samples.
- + SampleQueue.UpstreamFormatChangedListener
A listener for changes to the upstream format.
- + SampleQueueMappingException
Thrown when it is not possible to map a TrackGroup to a SampleQueue.
- + SampleStream
A stream of media samples (and associated format information).
- + SampleStream.ReadDataResult - + SampleStream.ReadFlags - + Scheduler
Schedules a service to be started in the foreground when some Requirements are met.
- + SectionPayloadReader
Reads section data.
- + SectionReader
Reads section data packets and feeds the whole sections to a given SectionPayloadReader.
- + SeekMap
Maps seek positions (in microseconds) to corresponding positions (byte offsets) in the stream.
- + SeekMap.SeekPoints
Contains one or two SeekPoints.
- + SeekMap.Unseekable
A SeekMap that does not support seeking.
- + SeekParameters
Parameters that apply to seeking.
- + SeekPoint
Defines a seek point in a media stream.
- + SegmentBase
An approximate representation of a SegmentBase manifest element.
- + SegmentBase.MultiSegmentBase
A SegmentBase that consists of multiple segments.
- + SegmentBase.SegmentList
A SegmentBase.MultiSegmentBase that uses a SegmentList to define its segments.
- + SegmentBase.SegmentTemplate
A SegmentBase.MultiSegmentBase that uses a SegmentTemplate to define its segments.
- + SegmentBase.SegmentTimelineElement
Represents a timeline segment from the MPD's SegmentTimeline list.
- + SegmentBase.SingleSegmentBase
A SegmentBase that defines a single segment.
- + SegmentDownloader<M extends FilterableManifest<M>>
Base class for multi segment stream downloaders.
- + SegmentDownloader.Segment
Smallest unit of content to be downloaded.
- + SeiReader
Consumes SEI buffers, outputting contained CEA-608/708 messages to a TrackOutput.
- + SequenceableLoader
A loader that can proceed in approximate synchronization with other loaders.
- + SequenceableLoader.Callback<T extends SequenceableLoader>
A callback to be notified of SequenceableLoader events.
- + ServerSideInsertedAdsMediaSource
A MediaSource for server-side inserted ad breaks.
- + ServerSideInsertedAdsUtil
A static utility class with methods to work with server-side inserted ads.
- + ServiceDescriptionElement
Represents a service description element.
- + SessionAvailabilityListener
Listener of changes in the cast session availability.
- + SessionCallbackBuilder
Builds a MediaSession.SessionCallback with various collaborators.
- + SessionCallbackBuilder.AllowedCommandProvider
Provides allowed commands for MediaController.
- + SessionCallbackBuilder.CustomCommandProvider
Callbacks for querying what custom commands are supported, and for handling a custom command when a controller sends it.
- + SessionCallbackBuilder.DefaultAllowedCommandProvider
Default implementation of SessionCallbackBuilder.AllowedCommandProvider that behaves as follows: @@ -5847,1288 +5945,1356 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); Controller is in the same package as the session.
- + SessionCallbackBuilder.DisconnectedCallback
Callback for handling controller disconnection.
- + SessionCallbackBuilder.MediaIdMediaItemProvider
A SessionCallbackBuilder.MediaItemProvider that creates media items containing only a media ID.
- + SessionCallbackBuilder.MediaItemProvider
Provides the MediaItem.
- + SessionCallbackBuilder.PostConnectCallback
Callback for handling extra initialization after the connection.
- + SessionCallbackBuilder.RatingCallback
Callback receiving a user rating for a specified media id.
- + SessionCallbackBuilder.SkipCallback
Callback receiving skip backward and skip forward.
- + SessionPlayerConnector
An implementation of SessionPlayer that wraps a given ExoPlayer Player instance.
- + ShadowMediaCodecConfig
A JUnit @Rule to configure Roboelectric's ShadowMediaCodec.
- + ShuffleOrder
Shuffled order of indices.
- + ShuffleOrder.DefaultShuffleOrder
The default ShuffleOrder implementation for random shuffle order.
- + ShuffleOrder.UnshuffledShuffleOrder
A ShuffleOrder implementation which does not shuffle.
- + SilenceMediaSource
Media source with a single period consisting of silent raw audio of a given duration.
- + SilenceMediaSource.Factory
Factory for SilenceMediaSources.
- + SilenceSkippingAudioProcessor
An AudioProcessor that skips silence in the input stream.
- + SimpleCache
A Cache implementation that maintains an in-memory representation.
- -SimpleDecoder<I extends DecoderInputBuffer,​O extends OutputBuffer,​E extends DecoderException> + +SimpleDecoder<I extends DecoderInputBuffer,​O extends DecoderOutputBuffer,​E extends DecoderException>
Base class for Decoders that use their own decode thread and decode each input buffer immediately into a corresponding output buffer.
- + +SimpleDecoderOutputBuffer + +
Buffer for SimpleDecoder output.
+ + + SimpleExoPlayer - -
An ExoPlayer implementation that uses default Renderer components.
+Deprecated. +
Use ExoPlayer instead.
- + SimpleExoPlayer.Builder - -
A builder for SimpleExoPlayer instances.
+Deprecated. +
Use ExoPlayer.Builder instead.
- + SimpleMetadataDecoder
A MetadataDecoder base class that validates input buffers and discards any for which Buffer.isDecodeOnly() is true.
- -SimpleOutputBuffer - -
Buffer for SimpleDecoder output.
- - - + SimpleSubtitleDecoder
Base class for subtitle parsers that use their own decode thread.
- + SinglePeriodAdTimeline
A Timeline for sources that have ads.
- + SinglePeriodTimeline
A Timeline consisting of a single period and static window.
- + SingleSampleMediaChunk
A BaseMediaChunk for chunks consisting of a single raw sample.
- + SingleSampleMediaSource
Loads data at a given Uri as a single sample belonging to a single MediaPeriod.
- + SingleSampleMediaSource.Factory - -SlidingPercentile + +SlidingPercentile
Calculate any percentile over a sliding window of weighted values.
- + SlowMotionData
Holds information about the segments of slow motion playback within a track.
- + SlowMotionData.Segment
Holds information about a single segment of slow motion playback within a track.
- + SmtaMetadataEntry
Stores metadata from the Samsung smta box.
- + SntpClient
Static utility to retrieve the device time offset using SNTP.
- + SntpClient.InitializationCallback - + SonicAudioProcessor
An AudioProcessor that uses the Sonic library to modify audio speed/pitch/sample rate.
- + SpannedSubject
A Truth Subject for assertions on Spanned instances containing text styling.
- + SpannedSubject.AbsoluteSized
Allows assertions about the absolute size of a span.
- + SpannedSubject.Aligned
Allows assertions about the alignment of a span.
- + SpannedSubject.AndSpanFlags
Allows additional assertions to be made on the flags of matching spans.
- + SpannedSubject.Colored
Allows assertions about the color of a span.
- + SpannedSubject.EmphasizedText
Allows assertions about a span's text emphasis mark and its position.
- + SpannedSubject.RelativeSized
Allows assertions about the relative size of a span.
- + SpannedSubject.RubyText
Allows assertions about a span's ruby text and its position.
- + SpannedSubject.Typefaced
Allows assertions about the typeface of a span.
- + SpannedSubject.WithSpanFlags
Allows additional assertions to be made on the flags of matching spans.
- + SpanUtil
Utility methods for Android span styling.
- + SphericalGLSurfaceView
Renders a GL scene in a non-VR Activity that is affected by phone orientation and touch input.
- + SphericalGLSurfaceView.VideoSurfaceListener
Listener for the Surface to which video frames should be rendered.
- + SpliceCommand
Superclass for SCTE35 splice commands.
- + SpliceInfoDecoder
Decodes splice info sections and produces splice commands.
- + SpliceInsertCommand
Represents a splice insert command defined in SCTE35, Section 9.3.3.
- + SpliceInsertCommand.ComponentSplice
Holds splicing information for specific splice insert command components.
- + SpliceNullCommand
Represents a splice null command as defined in SCTE35, Section 9.3.1.
- + SpliceScheduleCommand
Represents a splice schedule command as defined in SCTE35, Section 9.3.2.
- + SpliceScheduleCommand.ComponentSplice
Holds splicing information for specific splice schedule command components.
- + SpliceScheduleCommand.Event
Represents a splice event as contained in a SpliceScheduleCommand.
- + SsaDecoder
A SimpleSubtitleDecoder for SSA/ASS.
- + SsChunkSource
A ChunkSource for SmoothStreaming.
- + SsChunkSource.Factory
Factory for SsChunkSources.
- + SsDownloader
A downloader for SmoothStreaming streams.
- + SsManifest
Represents a SmoothStreaming manifest.
- + SsManifest.ProtectionElement
Represents a protection element containing a single header.
- + SsManifest.StreamElement
Represents a StreamIndex element.
- + SsManifestParser
Parses SmoothStreaming client manifests.
- + SsManifestParser.MissingFieldException
Thrown if a required field is missing.
- + SsMediaSource
A SmoothStreaming MediaSource.
- + SsMediaSource.Factory
Factory for SsMediaSource.
- + +StandaloneDatabaseProvider + +
An SQLiteOpenHelper that provides instances of a standalone database.
+ + + StandaloneMediaClock
A MediaClock whose position advances with real time based on the playback parameters when started.
- + StarRating
A rating expressed as a fractional number of stars.
- + StartOffsetExtractorOutput
An extractor output that wraps another extractor output and applies a give start byte offset to seek positions.
- + StatsDataSource
DataSource wrapper which keeps track of bytes transferred, redirected uris, and response headers.
- + StreamKey
A key for a subset of media that can be separately loaded (a "stream").
- + StubExoPlayer
An abstract ExoPlayer implementation that throws UnsupportedOperationException from every method.
- + +StubPlayer + +
An abstract Player implementation that throws UnsupportedOperationException from + every method.
+ + + StyledPlayerControlView
A view for controlling Player instances.
- + StyledPlayerControlView.OnFullScreenModeChangedListener
Listener to be invoked to inform the fullscreen mode is changed.
- + StyledPlayerControlView.ProgressUpdateListener
Listener to be notified when progress has been updated.
- + StyledPlayerControlView.VisibilityListener
Listener to be notified about changes of the visibility of the UI control.
- + StyledPlayerView
A high level view for Player media playbacks.
- + StyledPlayerView.ShowBuffering
Determines when the buffering view is shown.
- + SubripDecoder
A SimpleSubtitleDecoder for SubRip.
- + Subtitle
A subtitle consisting of timed Cues.
- + SubtitleDecoder - + SubtitleDecoderException
Thrown when an error occurs decoding subtitle data.
- + SubtitleDecoderFactory
A factory for SubtitleDecoder instances.
- + +SubtitleExtractor + +
Generic extractor for extracting subtitles from various subtitle formats.
+ + + SubtitleInputBuffer - + SubtitleOutputBuffer
Base class for SubtitleDecoder output buffers.
- + SubtitleView
A view for displaying subtitle Cues.
- + SubtitleView.ViewType
The type of View to use to display subtitles.
- + SynchronousMediaCodecAdapter
A MediaCodecAdapter that operates the underlying MediaCodec in synchronous mode.
- + SynchronousMediaCodecAdapter.Factory
A factory for SynchronousMediaCodecAdapter instances.
- + SystemClock
The standard implementation of Clock, an instance of which is available via Clock.DEFAULT.
- + TeeAudioProcessor
Audio processor that outputs its input unmodified and also outputs its input to a given sink.
- + TeeAudioProcessor.AudioBufferSink
A sink for audio buffers handled by the audio processor.
- + TeeAudioProcessor.WavFileAudioBufferSink
A sink for audio buffers that writes output audio as .wav files with a given path prefix.
- + TeeDataSource
Tees data into a DataSink as the data is read.
- + TestDownloadManagerListener
Allows tests to block for, and assert properties of, calls from a DownloadManager to its DownloadManager.Listener.
- + TestExoPlayerBuilder
A builder of SimpleExoPlayer instances for testing.
- + TestPlayerRunHelper -
Helper methods to block the calling thread until the provided SimpleExoPlayer instance - reaches a particular state.
+
Helper methods to block the calling thread until the provided ExoPlayer instance reaches + a particular state.
- + TestUtil
Utility methods for tests.
- + TextAnnotation
Properties of a text annotation (i.e.
- + TextAnnotation.Position
The possible positions of the annotation text relative to the base text.
- + TextEmphasisSpan
A styling span for text emphasis marks.
- + TextEmphasisSpan.MarkFill
The possible mark fills that can be used.
- + TextEmphasisSpan.MarkShape
The possible mark shapes that can be used.
- + TextInformationFrame
Text information ID3 frame.
- + TextOutput
Receives text output.
- + TextRenderer
A renderer for text.
- + ThumbRating
A rating expressed as "thumbs up" or "thumbs down".
- + TimeBar
Interface for time bar views that can display a playback position, buffered position, duration and ad markers, and that have a listener for scrubbing (seeking) events.
- + TimeBar.OnScrubListener
Listener for scrubbing events.
- + TimedValueQueue<V>
A utility class to keep a queue of values with timestamps.
- + Timeline
A flexible representation of the structure of media.
- + Timeline.Period
Holds information about a period in a Timeline.
- + Timeline.RemotableTimeline
A concrete class of Timeline to restore a Timeline instance from a Bundle sent by another process via IBinder.
- + Timeline.Window
Holds information about a window in a Timeline.
- + TimelineAsserts
Assertion methods for Timeline.
- + TimelineQueueEditor - + TimelineQueueEditor.MediaDescriptionConverter
Converts a MediaDescriptionCompat to a MediaItem.
- + TimelineQueueEditor.MediaIdEqualityChecker
Media description comparator comparing the media IDs.
- + TimelineQueueEditor.QueueDataAdapter
Adapter to get MediaDescriptionCompat of items in the queue and to notify the application about changes in the queue to sync the data structure backing the MediaSessionConnector.
- + TimelineQueueNavigator
An abstract implementation of the MediaSessionConnector.QueueNavigator that maps the windows of a Player's Timeline to the media session queue.
- + TimeSignalCommand
Represents a time signal command as defined in SCTE35, Section 9.3.4.
- + TimestampAdjuster
Adjusts and offsets sample timestamps.
- + TimestampAdjusterProvider
Provides TimestampAdjuster instances for use during HLS playbacks.
- + TimeToFirstByteEstimator
Provides an estimate of the time to first byte of a transfer.
- + TraceUtil
Calls through to Trace methods on supported API levels.
- + Track
Encapsulates information describing an MP4 track.
- + Track.Transformation
The transformation to apply to samples in the track, if any.
- + TrackEncryptionBox
Encapsulates information parsed from a track encryption (tenc) box or sample group description (sgpd) box in an MP4 stream.
- + TrackGroup
Defines an immutable group of tracks identified by their format identity.
- + TrackGroupArray
An immutable array of TrackGroups.
- + TrackNameProvider
Converts Formats to user readable track names.
- + TrackOutput
Receives track level data extracted by an Extractor.
- + TrackOutput.CryptoData
Holds data required to decrypt a sample.
- + TrackOutput.SampleDataPart
Defines the part of the sample data to which a call to TrackOutput.sampleData(com.google.android.exoplayer2.upstream.DataReader, int, boolean) corresponds.
- + TrackSelection
A track selection consisting of a static subset of selected tracks belonging to a TrackGroup.
- + +TrackSelection.Type + +
Represents a type track selection.
+ + + TrackSelectionArray
An array of TrackSelections.
- + TrackSelectionDialogBuilder
Builder for a dialog with a TrackSelectionView.
- + TrackSelectionDialogBuilder.DialogCallback
Callback which is invoked when a track selection has been made.
- + +TrackSelectionOverrides + +
Forces the selection of the specified tracks in TrackGroups.
+ + + +TrackSelectionOverrides.Builder + + + + + +TrackSelectionOverrides.TrackSelectionOverride + + + + + TrackSelectionParameters
Constraint parameters for track selection.
- + TrackSelectionParameters.Builder - + TrackSelectionUtil
Track selection related utility methods.
- + TrackSelectionUtil.AdaptiveTrackSelectionFactory
Functional interface to create a single adaptive track selection.
- + TrackSelectionView
A view for making track selections.
- + TrackSelectionView.TrackSelectionListener
Listener for changes to the selected tracks.
- + TrackSelector
The component of an ExoPlayer responsible for selecting tracks to be consumed by each of the player's Renderers.
- + TrackSelector.InvalidationListener
Notified when selections previously made by a TrackSelector are no longer valid.
- + TrackSelectorResult
The result of a TrackSelector operation.
- + +TracksInfo + +
Immutable information (TracksInfo.TrackGroupInfo) about tracks.
+ + + +TracksInfo.TrackGroupInfo + +
Information about tracks in a TrackGroup: their C.TrackType, if their format is + supported by the player and if they are selected for playback.
+ + + +TranscodingTransformer + +
A transcoding transformer to transform media inputs.
+ + + +TranscodingTransformer.Builder + +
A builder for TranscodingTransformer instances.
+ + + +TranscodingTransformer.Listener + +
A listener for the transformation events.
+ + + +TranscodingTransformer.ProgressState + +
Progress state.
+ + + TransferListener
A listener of data transfer events.
- + Transformer
A transformer to transform media inputs.
- + Transformer.Builder
A builder for Transformer instances.
- + Transformer.Listener
A listener for the transformation events.
- + Transformer.ProgressState
Progress state.
- + +TrueHdSampleRechunker + +
Rechunks TrueHD sample data into groups of Ac3Util.TRUEHD_RECHUNK_SAMPLE_COUNT samples.
+ + + TsExtractor
Extracts data from the MPEG-2 TS container format.
- + TsExtractor.Mode
Modes for the extractor.
- + TsPayloadReader
Parses TS packet payload data.
- + TsPayloadReader.DvbSubtitleInfo
Holds information about a DVB subtitle, as defined in ETSI EN 300 468 V1.11.1 section 6.2.41.
- + TsPayloadReader.EsInfo
Holds information associated with a PMT entry.
- + TsPayloadReader.Factory
Factory of TsPayloadReader instances.
- + TsPayloadReader.Flags
Contextual flags indicating the presence of indicators in the TS packet or PES packet headers.
- + TsPayloadReader.TrackIdGenerator
Generates track ids for initializing TsPayloadReaders' TrackOutputs.
- + TsUtil
Utilities method for extracting MPEG-TS streams.
- + TtmlDecoder
A SimpleSubtitleDecoder for TTML supporting the DFXP presentation profile.
- + Tx3gDecoder - + UdpDataSource
A UDP DataSource.
- + UdpDataSource.UdpDataSourceException
Thrown when an error is encountered when trying to read from a UdpDataSource.
- + UnknownNull
Annotation for specifying unknown nullness.
- + UnrecognizedInputFormatException
Thrown if the input format was not recognized.
- + UnsupportedDrmException
Thrown when the requested DRM scheme is not supported.
- + UnsupportedDrmException.Reason
The reason for the exception.
- -UnsupportedMediaCrypto - -
ExoMediaCrypto type that cannot be used to handle any type of protected content.
- - - + UriUtil
Utility methods for manipulating URIs.
- + UrlLinkFrame
Url link ID3 frame.
- + UrlTemplate
A template from which URLs can be built.
- + UtcTimingElement
Represents a UTCTiming element.
- + Util
Miscellaneous utility methods.
- + VersionTable -
Utility methods for accessing versions of ExoPlayer database components.
+
Utility methods for accessing versions of media library database components.
- + VideoDecoderGLSurfaceView -
GLSurfaceView implementing VideoDecoderOutputBufferRenderer for rendering VideoDecoderOutputBuffers.
+
GLSurfaceView implementing VideoDecoderOutputBufferRenderer for rendering VideoDecoderOutputBuffers.
- -VideoDecoderInputBuffer - -
Input buffer to a video decoder.
- - - -VideoDecoderOutputBuffer + +VideoDecoderOutputBuffer
Video decoder output buffer containing video frame data.
- + VideoDecoderOutputBufferRenderer - + - + VideoFrameMetadataListener
A listener for metadata corresponding to video frames being rendered.
- + VideoFrameReleaseHelper
Helps a video Renderer release frames to a Surface.
- -VideoListener -Deprecated. - - - - + VideoRendererEventListener
Listener of video Renderer events.
- + VideoRendererEventListener.EventDispatcher
Dispatches events to a VideoRendererEventListener.
- + VideoSize
Represents the video size.
- + VorbisBitArray
Wraps a byte array, providing methods that allow it to be read as a Vorbis bitstream.
- + VorbisComment
A vorbis comment.
- + VorbisUtil
Utility methods for parsing Vorbis streams.
- + VorbisUtil.CommentHeader
Vorbis comment header.
- + VorbisUtil.Mode
Vorbis setup header modes.
- + VorbisUtil.VorbisIdHeader
Vorbis identification header.
- + VpxDecoder
Vpx decoder.
- + VpxDecoderException
Thrown when a libvpx decoder error occurs.
- + VpxLibrary
Configures and queries the underlying native library.
- + WavExtractor
Extracts data from WAV byte streams.
- + WavUtil
Utilities for handling WAVE files.
- + WebServerDispatcher
A Dispatcher for MockWebServer that allows per-path customisation of the static data served.
- + WebServerDispatcher.Resource
A resource served by WebServerDispatcher.
- + WebServerDispatcher.Resource.Builder - + WebvttCssStyle
Style object of a Css style block in a Webvtt file.
- + WebvttCssStyle.FontSizeUnit
Font size unit enum.
- + WebvttCssStyle.StyleFlags
Style flag enum.
- + WebvttCueInfo
A representation of a WebVTT cue.
- + WebvttCueParser
Parser for WebVTT cues.
- + WebvttDecoder
A SimpleSubtitleDecoder for WebVTT.
- + WebvttExtractor
A special purpose extractor for WebVTT content in HLS.
- + WebvttParserUtil
Utility methods for parsing WebVTT data.
- + WidevineUtil
Utility methods for Widevine.
- + WorkManagerScheduler
A Scheduler that uses WorkManager.
- + WorkManagerScheduler.SchedulerWorker
A Worker that starts the target service if the requirements are met.
- + WritableDownloadIndex
A writable index of Downloads.
- + XmlPullParserUtil
XmlPullParser utility methods.
diff --git a/docs/doc/reference/allclasses.html b/docs/doc/reference/allclasses.html index 288afe5bcf..5d8782d8f4 100644 --- a/docs/doc/reference/allclasses.html +++ b/docs/doc/reference/allclasses.html @@ -109,6 +109,7 @@
  • AspectRatioFrameLayout.AspectRatioListener
  • AspectRatioFrameLayout.ResizeMode
  • Assertions
  • +
  • AssetContentProvider
  • AssetDataSource
  • AssetDataSource.AssetDataSourceException
  • AtomicFile
  • @@ -117,7 +118,6 @@
  • AudioCapabilities
  • AudioCapabilitiesReceiver
  • AudioCapabilitiesReceiver.Listener
  • -
  • AudioListener
  • AudioProcessor
  • AudioProcessor.AudioFormat
  • AudioProcessor.UnhandledAudioFormatException
  • @@ -158,7 +158,7 @@
  • Buffer
  • Bundleable
  • Bundleable.Creator
  • -
  • BundleableUtils
  • +
  • BundleableUtil
  • BundledChunkExtractor
  • BundledExtractorsAdapter
  • BundledHlsMediaChunkExtractor
  • @@ -171,6 +171,7 @@
  • C.AudioContentType
  • C.AudioFlags
  • C.AudioFocusGain
  • +
  • C.AudioManagerOffloadMode
  • C.AudioUsage
  • C.BufferFlags
  • C.ColorRange
  • @@ -178,6 +179,7 @@
  • C.ColorTransfer
  • C.ContentType
  • C.CryptoMode
  • +
  • C.CryptoType
  • C.DataType
  • C.Encoding
  • C.FormatSupport
  • @@ -186,8 +188,11 @@
  • C.Projection
  • C.RoleFlags
  • C.SelectionFlags
  • +
  • C.SelectionReason
  • C.StereoMode
  • C.StreamType
  • +
  • C.TrackType
  • +
  • C.VideoChangeFrameRateStrategy
  • C.VideoOutputMode
  • C.VideoScalingMode
  • C.WakeMode
  • @@ -199,14 +204,12 @@
  • CacheDataSink
  • CacheDataSink.CacheDataSinkException
  • CacheDataSink.Factory
  • -
  • CacheDataSinkFactory
  • CacheDataSource
  • CacheDataSource.CacheIgnoredReason
  • CacheDataSource.EventListener
  • CacheDataSource.Factory
  • CacheDataSource.Flags
  • -
  • CacheDataSourceFactory
  • -
  • CachedRegionTracker
  • +
  • CachedRegionTracker
  • CacheEvictor
  • CacheKeyFactory
  • CacheSpan
  • @@ -254,7 +257,6 @@
  • ContentDataSource.ContentDataSourceException
  • ContentMetadata
  • ContentMetadataMutations
  • -
  • ControlDispatcher
  • CopyOnWriteMultiset
  • CronetDataSource
  • CronetDataSource.Factory
  • @@ -262,6 +264,8 @@
  • CronetDataSourceFactory
  • CronetEngineWrapper
  • CronetUtil
  • +
  • CryptoConfig
  • +
  • CryptoException
  • CryptoInfo
  • Cue
  • Cue.AnchorType
  • @@ -269,6 +273,8 @@
  • Cue.LineType
  • Cue.TextSizeType
  • Cue.VerticalType
  • +
  • CueDecoder
  • +
  • CueEncoder
  • DashChunkSource
  • DashChunkSource.Factory
  • DashDownloader
  • @@ -296,6 +302,7 @@
  • DataSourceContractTest.TestResource.Builder
  • DataSourceException
  • DataSourceInputStream
  • +
  • DataSourceUtil
  • DataSpec
  • DataSpec.Builder
  • DataSpec.Flags
  • @@ -309,11 +316,12 @@
  • DecoderInputBuffer
  • DecoderInputBuffer.BufferReplacementMode
  • DecoderInputBuffer.InsufficientCapacityException
  • +
  • DecoderOutputBuffer
  • +
  • DecoderOutputBuffer.Owner
  • DecoderReuseEvaluation
  • DecoderReuseEvaluation.DecoderDiscardReasons
  • DecoderReuseEvaluation.DecoderReuseResult
  • DecoderVideoRenderer
  • -
  • DecryptionException
  • DefaultAllocator
  • DefaultAudioSink
  • DefaultAudioSink.AudioProcessorChain
  • @@ -325,13 +333,13 @@
  • DefaultCastOptionsProvider
  • DefaultCompositeSequenceableLoaderFactory
  • DefaultContentMetadata
  • -
  • DefaultControlDispatcher
  • DefaultDashChunkSource
  • DefaultDashChunkSource.Factory
  • DefaultDashChunkSource.RepresentationHolder
  • DefaultDashChunkSource.RepresentationSegmentIterator
  • DefaultDatabaseProvider
  • DefaultDataSource
  • +
  • DefaultDataSource.Factory
  • DefaultDataSourceFactory
  • DefaultDownloaderFactory
  • DefaultDownloadIndex
  • @@ -348,12 +356,12 @@
  • DefaultHlsPlaylistTracker
  • DefaultHttpDataSource
  • DefaultHttpDataSource.Factory
  • -
  • DefaultHttpDataSourceFactory
  • DefaultLivePlaybackSpeedControl
  • DefaultLivePlaybackSpeedControl.Builder
  • DefaultLoadControl
  • DefaultLoadControl.Builder
  • DefaultLoadErrorHandlingPolicy
  • +
  • DefaultMediaCodecAdapterFactory
  • DefaultMediaDescriptionAdapter
  • DefaultMediaItemConverter
  • DefaultMediaItemConverter
  • @@ -379,9 +387,8 @@
  • DefaultTsPayloadReaderFactory
  • DefaultTsPayloadReaderFactory.Flags
  • Descriptor
  • -
  • DeviceInfo
  • -
  • DeviceInfo.PlaybackType
  • -
  • DeviceListener
  • +
  • DeviceInfo
  • +
  • DeviceInfo.PlaybackType
  • DolbyVisionConfig
  • Download
  • Download.FailureReason
  • @@ -448,7 +455,6 @@
  • EventStream
  • ExoDatabaseProvider
  • ExoHostedTest
  • -
  • ExoMediaCrypto
  • ExoMediaDrm
  • ExoMediaDrm.AppManagedProvider
  • ExoMediaDrm.KeyRequest
  • @@ -466,9 +472,9 @@
  • ExoPlayer.AudioOffloadListener
  • ExoPlayer.Builder
  • ExoPlayer.DeviceComponent
  • -
  • ExoPlayer.MetadataComponent
  • ExoPlayer.TextComponent
  • ExoPlayer.VideoComponent
  • +
  • ExoplayerCuesDecoder
  • ExoPlayerLibraryInfo
  • ExoPlayerTestRunner
  • ExoPlayerTestRunner.Builder
  • @@ -499,6 +505,7 @@
  • FakeChunkSource
  • FakeChunkSource.Factory
  • FakeClock
  • +
  • FakeCryptoConfig
  • FakeDataSet
  • FakeDataSet.FakeData
  • FakeDataSet.FakeData.Segment
  • @@ -518,6 +525,8 @@
  • FakeMediaPeriod.TrackDataFactory
  • FakeMediaSource
  • FakeMediaSource.InitialTimeline
  • +
  • FakeMediaSourceFactory
  • +
  • FakeMetadataEntry
  • FakeRenderer
  • FakeSampleStream
  • FakeSampleStream.FakeSampleStreamItem
  • @@ -535,14 +544,13 @@
  • FileDataSource
  • FileDataSource.Factory
  • FileDataSource.FileDataSourceException
  • -
  • FileDataSourceFactory
  • FileTypes
  • FileTypes.Type
  • FilterableManifest
  • FilteringHlsPlaylistParserFactory
  • FilteringManifestParser
  • FixedTrackSelection
  • -
  • FlacConstants
  • +
  • FlacConstants
  • FlacDecoder
  • FlacDecoderException
  • FlacExtractor
  • @@ -569,7 +577,7 @@
  • ForwardingTimeline
  • FragmentedMp4Extractor
  • FragmentedMp4Extractor.Flags
  • -
  • FrameworkMediaCrypto
  • +
  • FrameworkCryptoConfig
  • FrameworkMediaDrm
  • GaplessInfoHolder
  • Gav1Decoder
  • @@ -578,8 +586,10 @@
  • GeobFrame
  • GlUtil
  • GlUtil.Attribute
  • +
  • GlUtil.GlException
  • +
  • GlUtil.Program
  • GlUtil.Uniform
  • -
  • GvrAudioProcessor
  • +
  • GlUtil.UnsupportedEglVersionException
  • H262Reader
  • H263Reader
  • H264Reader
  • @@ -648,7 +658,6 @@
  • IndexSeekMap
  • InitializationChunk
  • InputReaderAdapterV30
  • -
  • IntArrayQueue
  • InternalFrame
  • JpegExtractor
  • KeysExpiredException
  • @@ -716,12 +725,20 @@
  • MediaFormatUtil
  • MediaItem
  • MediaItem.AdsConfiguration
  • +
  • MediaItem.AdsConfiguration.Builder
  • MediaItem.Builder
  • +
  • MediaItem.ClippingConfiguration
  • +
  • MediaItem.ClippingConfiguration.Builder
  • MediaItem.ClippingProperties
  • MediaItem.DrmConfiguration
  • +
  • MediaItem.DrmConfiguration.Builder
  • MediaItem.LiveConfiguration
  • +
  • MediaItem.LiveConfiguration.Builder
  • +
  • MediaItem.LocalConfiguration
  • MediaItem.PlaybackProperties
  • MediaItem.Subtitle
  • +
  • MediaItem.SubtitleConfiguration
  • +
  • MediaItem.SubtitleConfiguration.Builder
  • MediaItemConverter
  • MediaItemConverter
  • MediaLoadData
  • @@ -780,6 +797,7 @@
  • MpegAudioUtil
  • MpegAudioUtil.Header
  • NalUnitUtil
  • +
  • NalUnitUtil.H265SpsData
  • NalUnitUtil.PpsData
  • NalUnitUtil.SpsData
  • NetworkTypeObserver
  • @@ -800,8 +818,6 @@
  • OpusDecoderException
  • OpusLibrary
  • OpusUtil
  • -
  • OutputBuffer
  • -
  • OutputBuffer.Owner
  • OutputConsumerAdapterV30
  • ParsableBitArray
  • ParsableByteArray
  • @@ -865,6 +881,7 @@
  • PlayerView.ShowBuffering
  • PositionHolder
  • PriorityDataSource
  • +
  • PriorityDataSource.Factory
  • PriorityDataSourceFactory
  • PriorityTaskManager
  • PriorityTaskManager.PriorityTooLowException
  • @@ -888,8 +905,8 @@
  • RawResourceDataSource
  • RawResourceDataSource.RawResourceDataSourceException
  • Renderer
  • +
  • Renderer.MessageType
  • Renderer.State
  • -
  • Renderer.VideoScalingMode
  • Renderer.WakeupListener
  • RendererCapabilities
  • RendererCapabilities.AdaptiveSupport
  • @@ -911,7 +928,6 @@
  • ResolvingDataSource
  • ResolvingDataSource.Factory
  • ResolvingDataSource.Resolver
  • -
  • ReusableBufferedOutputStream
  • RobolectricUtil
  • RtmpDataSource
  • RtmpDataSource.Factory
  • @@ -977,17 +993,17 @@
  • SilenceSkippingAudioProcessor
  • SimpleCache
  • SimpleDecoder
  • +
  • SimpleDecoderOutputBuffer
  • SimpleExoPlayer
  • SimpleExoPlayer.Builder
  • SimpleMetadataDecoder
  • -
  • SimpleOutputBuffer
  • SimpleSubtitleDecoder
  • SinglePeriodAdTimeline
  • SinglePeriodTimeline
  • SingleSampleMediaChunk
  • SingleSampleMediaSource
  • SingleSampleMediaSource.Factory
  • -
  • SlidingPercentile
  • +
  • SlidingPercentile
  • SlowMotionData
  • SlowMotionData.Segment
  • SmtaMetadataEntry
  • @@ -1026,12 +1042,14 @@
  • SsManifestParser.MissingFieldException
  • SsMediaSource
  • SsMediaSource.Factory
  • +
  • StandaloneDatabaseProvider
  • StandaloneMediaClock
  • StarRating
  • StartOffsetExtractorOutput
  • StatsDataSource
  • StreamKey
  • StubExoPlayer
  • +
  • StubPlayer
  • StyledPlayerControlView
  • StyledPlayerControlView.OnFullScreenModeChangedListener
  • StyledPlayerControlView.ProgressUpdateListener
  • @@ -1043,6 +1061,7 @@
  • SubtitleDecoder
  • SubtitleDecoderException
  • SubtitleDecoderFactory
  • +
  • SubtitleExtractor
  • SubtitleInputBuffer
  • SubtitleOutputBuffer
  • SubtitleView
  • @@ -1095,9 +1114,13 @@
  • TrackOutput.CryptoData
  • TrackOutput.SampleDataPart
  • TrackSelection
  • +
  • TrackSelection.Type
  • TrackSelectionArray
  • TrackSelectionDialogBuilder
  • TrackSelectionDialogBuilder.DialogCallback
  • +
  • TrackSelectionOverrides
  • +
  • TrackSelectionOverrides.Builder
  • +
  • TrackSelectionOverrides.TrackSelectionOverride
  • TrackSelectionParameters
  • TrackSelectionParameters.Builder
  • TrackSelectionUtil
  • @@ -1107,11 +1130,18 @@
  • TrackSelector
  • TrackSelector.InvalidationListener
  • TrackSelectorResult
  • +
  • TracksInfo
  • +
  • TracksInfo.TrackGroupInfo
  • +
  • TranscodingTransformer
  • +
  • TranscodingTransformer.Builder
  • +
  • TranscodingTransformer.Listener
  • +
  • TranscodingTransformer.ProgressState
  • TransferListener
  • Transformer
  • Transformer.Builder
  • Transformer.Listener
  • Transformer.ProgressState
  • +
  • TrueHdSampleRechunker
  • TsExtractor
  • TsExtractor.Mode
  • TsPayloadReader
  • @@ -1129,7 +1159,6 @@
  • UnrecognizedInputFormatException
  • UnsupportedDrmException
  • UnsupportedDrmException.Reason
  • -
  • UnsupportedMediaCrypto
  • UriUtil
  • UrlLinkFrame
  • UrlTemplate
  • @@ -1137,12 +1166,10 @@
  • Util
  • VersionTable
  • VideoDecoderGLSurfaceView
  • -
  • VideoDecoderInputBuffer
  • -
  • VideoDecoderOutputBuffer
  • +
  • VideoDecoderOutputBuffer
  • VideoDecoderOutputBufferRenderer
  • VideoFrameMetadataListener
  • VideoFrameReleaseHelper
  • -
  • VideoListener
  • VideoRendererEventListener
  • VideoRendererEventListener.EventDispatcher
  • VideoSize
  • diff --git a/docs/doc/reference/allpackages-index.html b/docs/doc/reference/allpackages-index.html index b1bd57364a..aa307180e2 100644 --- a/docs/doc/reference/allpackages-index.html +++ b/docs/doc/reference/allpackages-index.html @@ -124,35 +124,27 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));   -com.google.android.exoplayer2.device -  - - com.google.android.exoplayer2.drm   - + com.google.android.exoplayer2.ext.av1   - + com.google.android.exoplayer2.ext.cast   - + com.google.android.exoplayer2.ext.cronet   - + com.google.android.exoplayer2.ext.ffmpeg   - -com.google.android.exoplayer2.ext.flac -  - -com.google.android.exoplayer2.ext.gvr +com.google.android.exoplayer2.ext.flac   diff --git a/docs/doc/reference/com/google/android/exoplayer2/AbstractConcatenatedTimeline.html b/docs/doc/reference/com/google/android/exoplayer2/AbstractConcatenatedTimeline.html index 460a936697..6dfc96dea1 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/AbstractConcatenatedTimeline.html +++ b/docs/doc/reference/com/google/android/exoplayer2/AbstractConcatenatedTimeline.html @@ -316,8 +316,8 @@ extends T int -getNextWindowIndex​(int windowIndex, - int repeatMode, +getNextWindowIndex​(int windowIndex, + @com.google.android.exoplayer2.Player.RepeatMode int repeatMode, boolean shuffleModeEnabled)
    Returns the index of the window after the window at index windowIndex depending on the @@ -343,8 +343,8 @@ extends T int -getPreviousWindowIndex​(int windowIndex, - int repeatMode, +getPreviousWindowIndex​(int windowIndex, + @com.google.android.exoplayer2.Player.RepeatMode int repeatMode, boolean shuffleModeEnabled)
    Returns the index of the window before the window at index windowIndex depending on the @@ -380,7 +380,7 @@ extends T

    Methods inherited from class com.google.android.exoplayer2.Timeline

    -equals, getNextPeriodIndex, getPeriod, getPeriodCount, getPeriodPosition, getPeriodPosition, getWindow, getWindowCount, hashCode, isEmpty, isLastPeriod, toBundle, toBundle +equals, getNextPeriodIndex, getPeriod, getPeriodCount, getPeriodPosition, getPeriodPosition, getPeriodPositionUs, getPeriodPositionUs, getWindow, getWindowCount, hashCode, isEmpty, isLastPeriod, toBundle, toBundle - + - + @@ -254,156 +254,219 @@ implements +boolean +canAdvertiseSession() + +
    Returns whether the player can be used to advertise a media session.
    + + + void clearMediaItems()
    Clears the playlist.
    - + protected Player.Commands getAvailableCommands​(Player.Commands permanentAvailableCommands)
    Returns the Player.Commands available in the player.
    - + int getBufferedPercentage() -
    Returns an estimate of the percentage in the current content window or ad up to which data is +
    Returns an estimate of the percentage in the current content or ad up to which data is buffered, or 0 if no estimate is available.
    - -long -getContentDuration() - -
    If Player.isPlayingAd() returns true, returns the duration of the current content - window in milliseconds, or C.TIME_UNSET if the duration is not known.
    - - long -getCurrentLiveOffset() +getContentDuration() -
    Returns the offset of the current playback position from the live edge in milliseconds, or - C.TIME_UNSET if the current window isn't live or the - offset is unknown.
    +
    If Player.isPlayingAd() returns true, returns the duration of the current content in + milliseconds, or C.TIME_UNSET if the duration is not known.
    +long +getCurrentLiveOffset() + +
    Returns the offset of the current playback position from the live edge in milliseconds, or + C.TIME_UNSET if the current MediaItem Player.isCurrentMediaItemLive() isn't + live} or the offset is unknown.
    + + + Object getCurrentManifest()
    Returns the current manifest.
    - + MediaItem getCurrentMediaItem() -
    Returns the media item of the current window in the timeline.
    +
    Returns the currently playing MediaItem.
    - + +int +getCurrentWindowIndex() + +
    Deprecated.
    + + + MediaItem getMediaItemAt​(int index)
    Returns the MediaItem at the given index.
    - + int getMediaItemCount()
    Returns the number of media items in the playlist.
    - + +int +getNextMediaItemIndex() + +
    Returns the index of the MediaItem that will be played if Player.seekToNextMediaItem() is called, which may depend on the current repeat mode and whether + shuffle mode is enabled.
    + + + int getNextWindowIndex() -
    Returns the index of the window that will be played if Player.seekToNextWindow() is called, - which may depend on the current repeat mode and whether shuffle mode is enabled.
    +
    Deprecated.
    - + +int +getPreviousMediaItemIndex() + +
    Returns the index of the MediaItem that will be played if Player.seekToPreviousMediaItem() is called, which may depend on the current repeat mode and whether + shuffle mode is enabled.
    + + + int getPreviousWindowIndex() -
    Returns the index of the window that will be played if Player.seekToPreviousWindow() is - called, which may depend on the current repeat mode and whether shuffle mode is enabled.
    +
    Deprecated.
    - + boolean hasNext()
    Deprecated.
    - + +boolean +hasNextMediaItem() + +
    Returns whether a next MediaItem exists, which may depend on the current repeat mode + and whether shuffle mode is enabled.
    + + + boolean hasNextWindow() -
    Returns whether a next window exists, which may depend on the current repeat mode and whether - shuffle mode is enabled.
    +
    Deprecated.
    - + boolean hasPrevious()
    Deprecated.
    - + boolean -hasPreviousWindow() +hasPreviousMediaItem() -
    Returns whether a previous window exists, which may depend on the current repeat mode and +
    Returns whether a previous media item exists, which may depend on the current repeat mode and whether shuffle mode is enabled.
    - + boolean -isCommandAvailable​(int command) +hasPreviousWindow() + +
    Deprecated.
    + + + +boolean +isCommandAvailable​(@com.google.android.exoplayer2.Player.Command int command)
    Returns whether the provided Player.Command is available.
    - + +boolean +isCurrentMediaItemDynamic() + +
    Returns whether the current MediaItem is dynamic (may change when the Timeline + is updated), or false if the Timeline is empty.
    + + + +boolean +isCurrentMediaItemLive() + +
    Returns whether the current MediaItem is live, or false if the Timeline + is empty.
    + + + +boolean +isCurrentMediaItemSeekable() + +
    Returns whether the current MediaItem is seekable, or false if the Timeline is empty.
    + + + boolean isCurrentWindowDynamic() -
    Returns whether the current window is dynamic, or false if the Timeline is - empty.
    +
    Deprecated.
    - + boolean isCurrentWindowLive() -
    Returns whether the current window is live, or false if the Timeline is empty.
    +
    Deprecated.
    - + boolean isCurrentWindowSeekable() -
    Returns whether the current window is seekable, or false if the Timeline is - empty.
    +
    Deprecated.
    - + boolean isPlaying()
    Returns whether the player is playing, i.e.
    - + void moveMediaItem​(int currentIndex, int newIndex) @@ -411,107 +474,122 @@ implements Moves the media item at the current index to the new index.
    - + void next()
    Deprecated.
    - + void pause()
    Pauses playback.
    - + void play()
    Resumes playback as soon as Player.getPlaybackState() == Player.STATE_READY.
    - + void previous()
    Deprecated.
    - + void removeMediaItem​(int index)
    Removes the media item at the given index of the playlist.
    - + void seekBack() -
    Seeks back in the current window by Player.getSeekBackIncrement() milliseconds.
    +
    Seeks back in the current MediaItem by Player.getSeekBackIncrement() milliseconds.
    - + void seekForward() -
    Seeks forward in the current window by Player.getSeekForwardIncrement() milliseconds.
    +
    Seeks forward in the current MediaItem by Player.getSeekForwardIncrement() + milliseconds.
    - + void seekTo​(long positionMs) -
    Seeks to a position specified in milliseconds in the current window.
    +
    Seeks to a position specified in milliseconds in the current MediaItem.
    - + void seekToDefaultPosition() -
    Seeks to the default position associated with the current window.
    +
    Seeks to the default position associated with the current MediaItem.
    - + void -seekToDefaultPosition​(int windowIndex) +seekToDefaultPosition​(int mediaItemIndex) -
    Seeks to the default position associated with the specified window.
    +
    Seeks to the default position associated with the specified MediaItem.
    - + void seekToNext() -
    Seeks to a later position in the current or next window (if available).
    +
    Seeks to a later position in the current or next MediaItem (if available).
    - + +void +seekToNextMediaItem() + +
    Seeks to the default position of the next MediaItem, which may depend on the current + repeat mode and whether shuffle mode is enabled.
    + + + void seekToNextWindow() -
    Seeks to the default position of the next window, which may depend on the current repeat mode - and whether shuffle mode is enabled.
    +
    Deprecated.
    - + void seekToPrevious() -
    Seeks to an earlier position in the current or previous window (if available).
    +
    Seeks to an earlier position in the current or previous MediaItem (if available).
    - + +void +seekToPreviousMediaItem() + +
    Seeks to the default position of the previous MediaItem, which may depend on the + current repeat mode and whether shuffle mode is enabled.
    + + + void seekToPreviousWindow() -
    Seeks to the default position of the previous window, which may depend on the current repeat - mode and whether shuffle mode is enabled.
    +
    Deprecated.
    - + void setMediaItem​(MediaItem mediaItem) @@ -519,7 +597,7 @@ implements + void setMediaItem​(MediaItem mediaItem, boolean resetPosition) @@ -527,7 +605,7 @@ implements Clears the playlist and adds the specified MediaItem.
    - + void setMediaItem​(MediaItem mediaItem, long startPositionMs) @@ -535,7 +613,7 @@ implements Clears the playlist and adds the specified MediaItem.
    - + void setMediaItems​(List<MediaItem> mediaItems) @@ -543,20 +621,13 @@ implements + void setPlaybackSpeed​(float speed)
    Changes the rate at which playback occurs.
    - -void -stop() - -
    Stops playback without resetting the player.
    - - @@ -679,7 +750,7 @@ implements Parameters:
    mediaItem - The new MediaItem.
    resetPosition - Whether the playback position should be reset to the default position. If - false, playback will start from the position defined by Player.getCurrentWindowIndex() + false, playback will start from the position defined by Player.getCurrentMediaItemIndex() and Player.getCurrentPosition().
    @@ -808,28 +879,27 @@ implements +
    Specified by:
    -
    isCommandAvailable in interface Player
    +
    isCommandAvailable in interface Player
    Parameters:
    command - A Player.Command.
    Returns:
    @@ -839,6 +909,22 @@ implements + + +
      +
    • +

      canAdvertiseSession

      +
      public final boolean canAdvertiseSession()
      +
      Returns whether the player can be used to advertise a media session. + +

      BasePlayer and its descendents will return true.

      +
      +
      Specified by:
      +
      canAdvertiseSession in interface Player
      +
      +
    • +
    @@ -905,9 +991,9 @@ implements public final void seekToDefaultPosition() -
    Seeks to the default position associated with the current window. The position can depend on - the type of media being played. For live streams it will typically be the live edge of the - window. For other streams it will typically be the start of the window.
    +
    Seeks to the default position associated with the current MediaItem. The position can + depend on the type of media being played. For live streams it will typically be the live edge. + For other streams it will typically be the start.
    Specified by:
    seekToDefaultPosition in interface Player
    @@ -920,17 +1006,17 @@ implements
  • seekToDefaultPosition

    -
    public final void seekToDefaultPosition​(int windowIndex)
    +
    public final void seekToDefaultPosition​(int mediaItemIndex)
    -
    Seeks to the default position associated with the specified window. The position can depend on - the type of media being played. For live streams it will typically be the live edge of the - window. For other streams it will typically be the start of the window.
    +
    Seeks to the default position associated with the specified MediaItem. The position can + depend on the type of media being played. For live streams it will typically be the live edge. + For other streams it will typically be the start.
    Specified by:
    seekToDefaultPosition in interface Player
    Parameters:
    -
    windowIndex - The index of the window whose associated default position should be seeked - to.
    +
    mediaItemIndex - The index of the MediaItem whose associated default position + should be seeked to.
  • @@ -942,13 +1028,13 @@ implements public final void seekTo​(long positionMs) -
    Seeks to a position specified in milliseconds in the current window.
    +
    Seeks to a position specified in milliseconds in the current MediaItem.
    Specified by:
    seekTo in interface Player
    Parameters:
    -
    positionMs - The seek position in the current window, or C.TIME_UNSET to seek to - the window's default position.
    +
    positionMs - The seek position in the current MediaItem, or C.TIME_UNSET + to seek to the media item's default position.
    @@ -960,7 +1046,7 @@ implements public final void seekBack() -
    Seeks back in the current window by Player.getSeekBackIncrement() milliseconds.
    +
    Seeks back in the current MediaItem by Player.getSeekBackIncrement() milliseconds.
    Specified by:
    seekBack in interface Player
    @@ -975,7 +1061,8 @@ implements public final void seekForward() -
    Seeks forward in the current window by Player.getSeekForwardIncrement() milliseconds.
    +
    Seeks forward in the current MediaItem by Player.getSeekForwardIncrement() + milliseconds.
    Specified by:
    seekForward in interface Player
    @@ -1003,9 +1090,24 @@ public final boolean hasPrevious()
    • hasPreviousWindow

      -
      public final boolean hasPreviousWindow()
      -
      Description copied from interface: Player
      -
      Returns whether a previous window exists, which may depend on the current repeat mode and +
      @Deprecated
      +public final boolean hasPreviousWindow()
      +
      Deprecated.
      +
      +
      Specified by:
      +
      hasPreviousWindow in interface Player
      +
      +
    • +
    + + + +
      +
    • +

      hasPreviousMediaItem

      +
      public final boolean hasPreviousMediaItem()
      +
      Description copied from interface: Player
      +
      Returns whether a previous media item exists, which may depend on the current repeat mode and whether shuffle mode is enabled.

      Note: When the repeat mode is Player.REPEAT_MODE_ONE, this method behaves the same as when @@ -1013,7 +1115,7 @@ public final boolean hasPrevious() details.

      Specified by:
      -
      hasPreviousWindow in interface Player
      +
      hasPreviousMediaItem in interface Player
    @@ -1038,18 +1140,32 @@ public final void previous()
    • seekToPreviousWindow

      -
      public final void seekToPreviousWindow()
      -
      Description copied from interface: Player
      -
      Seeks to the default position of the previous window, which may depend on the current repeat - mode and whether shuffle mode is enabled. Does nothing if Player.hasPreviousWindow() is - false. +
      @Deprecated
      +public final void seekToPreviousWindow()
      +
      Deprecated.
      +
      +
      Specified by:
      +
      seekToPreviousWindow in interface Player
      +
      +
    • +
    + + + + @@ -1061,18 +1177,20 @@ public final void previous()

    seekToPrevious

    public final void seekToPrevious()
    Description copied from interface: Player
    -
    Seeks to an earlier position in the current or previous window (if available). More precisely: +
    Seeks to an earlier position in the current or previous MediaItem (if available). More + precisely:
    Specified by:
    @@ -1101,17 +1219,32 @@ public final boolean hasNext()
    • hasNextWindow

      -
      public final boolean hasNextWindow()
      -
      Description copied from interface: Player
      -
      Returns whether a next window exists, which may depend on the current repeat mode and whether - shuffle mode is enabled. +
      @Deprecated
      +public final boolean hasNextWindow()
      +
      Deprecated.
      +
      +
      Specified by:
      +
      hasNextWindow in interface Player
      +
      +
    • +
    + + + + @@ -1136,17 +1269,33 @@ public final void next()
    • seekToNextWindow

      -
      public final void seekToNextWindow()
      -
      Description copied from interface: Player
      -
      Seeks to the default position of the next window, which may depend on the current repeat mode - and whether shuffle mode is enabled. Does nothing if Player.hasNextWindow() is false. +
      @Deprecated
      +public final void seekToNextWindow()
      +
      Deprecated.
      +
      +
      Specified by:
      +
      seekToNextWindow in interface Player
      +
      +
    • +
    + + + + @@ -1158,14 +1307,15 @@ public final void next()

    seekToNext

    public final void seekToNext()
    Description copied from interface: Player
    -
    Seeks to a later position in the current or next window (if available). More precisely: +
    Seeks to a later position in the current or next MediaItem (if available). More + precisely:
    • If the timeline is empty or seeking is not possible, does nothing. -
    • Otherwise, if a next window exists, seeks to the default - position of the next window. -
    • Otherwise, if the current window is live and has not - ended, seeks to the live edge of the current window. +
    • Otherwise, if a next media item exists, seeks to the default + position of the next MediaItem. +
    • Otherwise, if the current MediaItem is live and + has not ended, seeks to the live edge of the current MediaItem.
    • Otherwise, does nothing.
    @@ -1195,26 +1345,18 @@ public final void next()
    - +
    • -

      stop

      -
      public final void stop()
      -
      Description copied from interface: Player
      -
      Stops playback without resetting the player. Use Player.pause() rather than this method if - the intention is to pause playback. - -

      Calling this method will cause the playback state to transition to Player.STATE_IDLE. The - player instance can still be used, and Player.release() must still be called on the player if - it's no longer required. - -

      Calling this method does not clear the playlist, reset the playback position or the playback - error.

      +

      getCurrentWindowIndex

      +
      @Deprecated
      +public final int getCurrentWindowIndex()
      +
      Deprecated.
      Specified by:
      -
      stop in interface Player
      +
      getCurrentWindowIndex in interface Player
    @@ -1224,17 +1366,33 @@ public final void next() + + + + @@ -1244,18 +1402,33 @@ public final void next() + + + + @@ -1268,13 +1441,12 @@ public final void next()
    @Nullable
     public final MediaItem getCurrentMediaItem()
    Description copied from interface: Player
    -
    Returns the media item of the current window in the timeline. May be null if the timeline is - empty.
    +
    Returns the currently playing MediaItem. May be null if the timeline is empty.
    Specified by:
    getCurrentMediaItem in interface Player
    See Also:
    -
    Player.Listener.onMediaItemTransition(MediaItem, int)
    +
    Player.Listener.onMediaItemTransition(MediaItem, int)
    @@ -1332,7 +1504,7 @@ public final public final int getBufferedPercentage() -
    Returns an estimate of the percentage in the current content window or ad up to which data is +
    Returns an estimate of the percentage in the current content or ad up to which data is buffered, or 0 if no estimate is available.
    Specified by:
    @@ -1346,13 +1518,28 @@ public final 
  • isCurrentWindowDynamic

    -
    public final boolean isCurrentWindowDynamic()
    -
    -
    Returns whether the current window is dynamic, or false if the Timeline is - empty.
    +
    @Deprecated
    +public final boolean isCurrentWindowDynamic()
    +
    Deprecated.
    Specified by:
    isCurrentWindowDynamic in interface Player
    +
    +
  • + + + + + + + + + + + + +
    @@ -89,32 +102,26 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); +
    -

    Package com.google.android.exoplayer2.ext.gvr

    + +

    Annotation Type C.AudioManagerOffloadMode

    +
    +
    +
    See Also:
    -
    Constant Field Values
    +
    Constant Field Values
    @@ -356,7 +356,7 @@ implements
  • UNKNOWN

    -
    public static final DeviceInfo UNKNOWN
    +
    public static final DeviceInfo UNKNOWN
    Unknown DeviceInfo.
  • @@ -366,7 +366,7 @@ implements
  • playbackType

    -
    public final @com.google.android.exoplayer2.device.DeviceInfo.PlaybackType int playbackType
    +
    public final @com.google.android.exoplayer2.DeviceInfo.PlaybackType int playbackType
    The type of playback.
  • @@ -396,8 +396,8 @@ implements
  • CREATOR

    -
    public static final Bundleable.Creator<DeviceInfo> CREATOR
    -
    Object that can restore DeviceInfo from a Bundle.
    +
    public static final Bundleable.Creator<DeviceInfo> CREATOR
    +
    Object that can restore DeviceInfo from a Bundle.
  • @@ -410,13 +410,13 @@ implements +
    • DeviceInfo

      -
      public DeviceInfo​(@com.google.android.exoplayer2.device.DeviceInfo.PlaybackType int playbackType,
      +
      public DeviceInfo​(@com.google.android.exoplayer2.DeviceInfo.PlaybackType int playbackType,
                         int minVolume,
                         int maxVolume)
      Creates device information.
      @@ -466,11 +466,11 @@ implements

      toBundle

      public Bundle toBundle()
      -
      Description copied from interface: Bundleable
      +
      Description copied from interface: Bundleable
      Returns a Bundle representing the information stored in this object.
      Specified by:
      -
      toBundle in interface Bundleable
      +
      toBundle in interface Bundleable
    @@ -494,18 +494,18 @@ implements -
  • Overview
  • +
  • Overview
  • Package
  • Tree
  • -
  • Deprecated
  • -
  • Index
  • -
  • Help
  • +
  • Deprecated
  • +
  • Index
  • +
  • Help

  • -
    public static interface ExoPlayer.TextComponent
    -
    The text component of an ExoPlayer.
    +
    @Deprecated
    +public static interface ExoPlayer.TextComponent
    +
    Deprecated. +
    Use Player, as the ExoPlayer.TextComponent methods are defined by that + interface.
    +
    @@ -152,27 +156,11 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); Description -void -addTextOutput​(TextOutput listener) - -
    Deprecated. - -
    - - - List<Cue> getCurrentCues() -
    Returns the current Cues.
    - - - -void -removeTextOutput​(TextOutput listener) - @@ -193,50 +181,17 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));

    Method Detail

    - - - - - - - - diff --git a/docs/doc/reference/com/google/android/exoplayer2/ExoPlayer.VideoComponent.html b/docs/doc/reference/com/google/android/exoplayer2/ExoPlayer.VideoComponent.html index a0e7a8c2bf..c2f0aecfef 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/ExoPlayer.VideoComponent.html +++ b/docs/doc/reference/com/google/android/exoplayer2/ExoPlayer.VideoComponent.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":38,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6,"i8":6,"i9":6,"i10":38,"i11":6,"i12":6,"i13":6,"i14":6,"i15":6,"i16":6,"i17":6}; +var data = {"i0":38,"i1":38,"i2":38,"i3":38,"i4":38,"i5":38,"i6":38,"i7":38,"i8":38,"i9":38,"i10":38,"i11":38,"i12":38,"i13":38,"i14":38,"i15":38,"i16":38,"i17":38}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],32:["t6","Deprecated Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -129,8 +129,12 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    ExoPlayer

    -
    public static interface ExoPlayer.VideoComponent
    -
    The video component of an ExoPlayer.
    +
    @Deprecated
    +public static interface ExoPlayer.VideoComponent
    +
    Deprecated. +
    Use ExoPlayer, as the ExoPlayer.VideoComponent methods are defined by that + interface.
    +
    @@ -153,137 +157,166 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); void -addVideoListener​(VideoListener listener) +clearCameraMotionListener​(CameraMotionListener listener) void -clearCameraMotionListener​(CameraMotionListener listener) +clearVideoFrameMetadataListener​(VideoFrameMetadataListener listener) -
    Clears the listener which receives camera motion events if it matches the one passed.
    + void -clearVideoFrameMetadataListener​(VideoFrameMetadataListener listener) +clearVideoSurface() -
    Clears the listener which receives video frame metadata events if it matches the one passed.
    +
    Deprecated. + +
    void -clearVideoSurface() +clearVideoSurface​(Surface surface) -
    Clears any Surface, SurfaceHolder, SurfaceView or TextureView - currently set on the player.
    +
    Deprecated. + +
    void -clearVideoSurface​(Surface surface) +clearVideoSurfaceHolder​(SurfaceHolder surfaceHolder) -
    Clears the Surface onto which video is being rendered if it matches the one passed.
    + void -clearVideoSurfaceHolder​(SurfaceHolder surfaceHolder) +clearVideoSurfaceView​(SurfaceView surfaceView) -
    Clears the SurfaceHolder that holds the Surface onto which video is being - rendered if it matches the one passed.
    +
    Deprecated. + +
    void -clearVideoSurfaceView​(SurfaceView surfaceView) +clearVideoTextureView​(TextureView textureView) -
    Clears the SurfaceView onto which video is being rendered if it matches the one - passed.
    +
    Deprecated. + +
    -void -clearVideoTextureView​(TextureView textureView) +int +getVideoChangeFrameRateStrategy() -
    Clears the TextureView onto which video is being rendered if it matches the one - passed.
    + int getVideoScalingMode() -
    Returns the C.VideoScalingMode.
    +
    Deprecated. + +
    VideoSize getVideoSize() -
    Gets the size of the video.
    +
    Deprecated. + +
    void -removeVideoListener​(VideoListener listener) +setCameraMotionListener​(CameraMotionListener listener) void -setCameraMotionListener​(CameraMotionListener listener) +setVideoChangeFrameRateStrategy​(int videoChangeFrameRateStrategy) -
    Sets a listener of camera motion events.
    + void setVideoFrameMetadataListener​(VideoFrameMetadataListener listener) -
    Sets a listener to receive video frame metadata events.
    + void setVideoScalingMode​(int videoScalingMode) - +
    Deprecated. + +
    void setVideoSurface​(Surface surface) -
    Sets the Surface onto which video will be rendered.
    +
    Deprecated. + +
    void setVideoSurfaceHolder​(SurfaceHolder surfaceHolder) -
    Sets the SurfaceHolder that holds the Surface onto which video will be - rendered.
    + void setVideoSurfaceView​(SurfaceView surfaceView) -
    Sets the SurfaceView onto which video will be rendered.
    +
    Deprecated. + +
    void setVideoTextureView​(TextureView textureView) -
    Sets the TextureView onto which video will be rendered.
    +
    Deprecated. + +
    @@ -309,13 +342,12 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); @@ -324,45 +356,40 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); - + - + @@ -371,16 +398,12 @@ void removeVideoListener​(
  • setVideoFrameMetadataListener

    -
    void setVideoFrameMetadataListener​(VideoFrameMetadataListener listener)
    -
    Sets a listener to receive video frame metadata events. - -

    This method is intended to be called by the same component that sets the Surface - onto which video will be rendered. If using ExoPlayer's standard UI components, this method - should not be called directly from application code.

    -
    -
    Parameters:
    -
    listener - The listener.
    -
    +
    @Deprecated
    +void setVideoFrameMetadataListener​(VideoFrameMetadataListener listener)
    +
  • @@ -389,13 +412,12 @@ void removeVideoListener​(
  • clearVideoFrameMetadataListener

    -
    void clearVideoFrameMetadataListener​(VideoFrameMetadataListener listener)
    -
    Clears the listener which receives video frame metadata events if it matches the one passed. - Else does nothing.
    -
    -
    Parameters:
    -
    listener - The listener to clear.
    -
    +
    @Deprecated
    +void clearVideoFrameMetadataListener​(VideoFrameMetadataListener listener)
    +
  • @@ -404,12 +426,11 @@ void removeVideoListener​(
  • setCameraMotionListener

    -
    void setCameraMotionListener​(CameraMotionListener listener)
    -
    Sets a listener of camera motion events.
    -
    -
    Parameters:
    -
    listener - The listener.
    -
    +
    @Deprecated
    +void setCameraMotionListener​(CameraMotionListener listener)
    +
  • @@ -418,13 +439,11 @@ void removeVideoListener​(
  • clearCameraMotionListener

    -
    void clearCameraMotionListener​(CameraMotionListener listener)
    -
    Clears the listener which receives camera motion events if it matches the one passed. Else - does nothing.
    -
    -
    Parameters:
    -
    listener - The listener to clear.
    -
    +
    @Deprecated
    +void clearCameraMotionListener​(CameraMotionListener listener)
    +
  • @@ -433,9 +452,11 @@ void removeVideoListener​(
  • clearVideoSurface

    -
    void clearVideoSurface()
    -
    Clears any Surface, SurfaceHolder, SurfaceView or TextureView - currently set on the player.
    +
    @Deprecated
    +void clearVideoSurface()
    +
    Deprecated. + +
  • @@ -444,14 +465,12 @@ void removeVideoListener​(
  • clearVideoSurface

    -
    void clearVideoSurface​(@Nullable
    +
    @Deprecated
    +void clearVideoSurface​(@Nullable
                            Surface surface)
    -
    Clears the Surface onto which video is being rendered if it matches the one passed. - Else does nothing.
    -
    -
    Parameters:
    -
    surface - The surface to clear.
    -
    +
    Deprecated. + +
  • @@ -460,19 +479,12 @@ void removeVideoListener​(
  • setVideoSurface

    -
    void setVideoSurface​(@Nullable
    +
    @Deprecated
    +void setVideoSurface​(@Nullable
                          Surface surface)
    -
    Sets the Surface onto which video will be rendered. The caller is responsible for - tracking the lifecycle of the surface, and must clear the surface by calling - setVideoSurface(null) if the surface is destroyed. - -

    If the surface is held by a SurfaceView, TextureView or SurfaceHolder then it's recommended to use setVideoSurfaceView(SurfaceView), setVideoTextureView(TextureView) or setVideoSurfaceHolder(SurfaceHolder) rather - than this method, since passing the holder allows the player to track the lifecycle of the - surface automatically.

    -
    -
    Parameters:
    -
    surface - The Surface.
    -
    +
    Deprecated. + +
  • @@ -481,17 +493,12 @@ void removeVideoListener​(
  • setVideoSurfaceHolder

    -
    void setVideoSurfaceHolder​(@Nullable
    +
    @Deprecated
    +void setVideoSurfaceHolder​(@Nullable
                                SurfaceHolder surfaceHolder)
    -
    Sets the SurfaceHolder that holds the Surface onto which video will be - rendered. The player will track the lifecycle of the surface automatically. - -

    The thread that calls the SurfaceHolder.Callback methods must be the thread - associated with Player.getApplicationLooper().

    -
    -
    Parameters:
    -
    surfaceHolder - The surface holder.
    -
    +
  • @@ -500,14 +507,12 @@ void removeVideoListener​(
  • clearVideoSurfaceHolder

    -
    void clearVideoSurfaceHolder​(@Nullable
    +
    @Deprecated
    +void clearVideoSurfaceHolder​(@Nullable
                                  SurfaceHolder surfaceHolder)
    -
    Clears the SurfaceHolder that holds the Surface onto which video is being - rendered if it matches the one passed. Else does nothing.
    -
    -
    Parameters:
    -
    surfaceHolder - The surface holder to clear.
    -
    +
  • @@ -516,17 +521,12 @@ void removeVideoListener​(
  • setVideoSurfaceView

    -
    void setVideoSurfaceView​(@Nullable
    +
    @Deprecated
    +void setVideoSurfaceView​(@Nullable
                              SurfaceView surfaceView)
    -
    Sets the SurfaceView onto which video will be rendered. The player will track the - lifecycle of the surface automatically. - -

    The thread that calls the SurfaceHolder.Callback methods must be the thread - associated with Player.getApplicationLooper().

    -
    -
    Parameters:
    -
    surfaceView - The surface view.
    -
    +
    Deprecated. + +
  • @@ -535,14 +535,12 @@ void removeVideoListener​(
  • clearVideoSurfaceView

    -
    void clearVideoSurfaceView​(@Nullable
    +
    @Deprecated
    +void clearVideoSurfaceView​(@Nullable
                                SurfaceView surfaceView)
    -
    Clears the SurfaceView onto which video is being rendered if it matches the one - passed. Else does nothing.
    -
    -
    Parameters:
    -
    surfaceView - The texture view to clear.
    -
    +
    Deprecated. + +
  • @@ -551,17 +549,12 @@ void removeVideoListener​(
  • setVideoTextureView

    -
    void setVideoTextureView​(@Nullable
    +
    @Deprecated
    +void setVideoTextureView​(@Nullable
                              TextureView textureView)
    -
    Sets the TextureView onto which video will be rendered. The player will track the - lifecycle of the surface automatically. - -

    The thread that calls the TextureView.SurfaceTextureListener methods must be the - thread associated with Player.getApplicationLooper().

    -
    -
    Parameters:
    -
    textureView - The texture view.
    -
    +
    Deprecated. + +
  • @@ -570,14 +563,12 @@ void removeVideoListener​(
  • clearVideoTextureView

    -
    void clearVideoTextureView​(@Nullable
    +
    @Deprecated
    +void clearVideoTextureView​(@Nullable
                                TextureView textureView)
    -
    Clears the TextureView onto which video is being rendered if it matches the one - passed. Else does nothing.
    -
    -
    Parameters:
    -
    textureView - The texture view to clear.
    -
    +
    Deprecated. + +
  • @@ -586,15 +577,11 @@ void removeVideoListener​(
  • getVideoSize

    -
    VideoSize getVideoSize()
    -
    Gets the size of the video. - -

    The width and height of size could be 0 if there is no video or the size has not been - determined yet.

    -
    -
    See Also:
    -
    VideoListener.onVideoSizeChanged(int, int, int, float)
    -
    +
    @Deprecated
    +VideoSize getVideoSize()
    +
    Deprecated. + +
  • diff --git a/docs/doc/reference/com/google/android/exoplayer2/ExoPlayer.html b/docs/doc/reference/com/google/android/exoplayer2/ExoPlayer.html index e8a5fbd7ea..88195ef603 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/ExoPlayer.html +++ b/docs/doc/reference/com/google/android/exoplayer2/ExoPlayer.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6,"i8":6,"i9":6,"i10":6,"i11":6,"i12":6,"i13":6,"i14":6,"i15":6,"i16":6,"i17":6,"i18":6,"i19":6,"i20":6,"i21":38,"i22":38,"i23":6,"i24":38,"i25":6,"i26":6,"i27":6,"i28":6,"i29":6,"i30":6,"i31":6,"i32":6,"i33":6,"i34":6}; +var data = {"i0":6,"i1":6,"i2":38,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6,"i8":6,"i9":6,"i10":6,"i11":6,"i12":6,"i13":6,"i14":38,"i15":6,"i16":6,"i17":6,"i18":6,"i19":38,"i20":6,"i21":6,"i22":6,"i23":6,"i24":6,"i25":6,"i26":6,"i27":38,"i28":6,"i29":6,"i30":38,"i31":6,"i32":6,"i33":6,"i34":38,"i35":38,"i36":6,"i37":6,"i38":38,"i39":38,"i40":6,"i41":6,"i42":6,"i43":6,"i44":6,"i45":6,"i46":38,"i47":6,"i48":6,"i49":6,"i50":6,"i51":6,"i52":6,"i53":6,"i54":6,"i55":6,"i56":6,"i57":6,"i58":38,"i59":6,"i60":6,"i61":6,"i62":6}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],32:["t6","Deprecated Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -131,7 +131,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    public interface ExoPlayer
     extends Player
    -
    An extensible media player that plays MediaSources. Instances can be obtained from SimpleExoPlayer.Builder. +
    An extensible media player that plays MediaSources. Instances can be obtained from ExoPlayer.Builder.

    Player components

    @@ -143,9 +143,9 @@ extends
  • MediaSources that define the media to be played, load the media, - and from which the loaded media can be read. MediaSources are created from MediaItems by the MediaSourceFactory injected into the player Builder, or can be added directly by methods - like setMediaSource(MediaSource). The library provides a DefaultMediaSourceFactory for progressive media files, DASH, SmoothStreaming and HLS, - which also includes functionality for side-loading subtitle files and clipping media. + and from which the loaded media can be read. MediaSources are created from MediaItems by the MediaSourceFactory injected into the player Builder, or can be added directly by methods like setMediaSource(MediaSource). The library provides a DefaultMediaSourceFactory for + progressive media files, DASH, SmoothStreaming and HLS, which also includes functionality + for side-loading subtitle files and clipping media.
  • Renderers that render individual components of the media. The library provides default implementations for common media types (MediaCodecVideoRenderer, MediaCodecAudioRenderer, TextRenderer and MetadataRenderer). A @@ -229,7 +229,10 @@ extends static interface  ExoPlayer.AudioComponent -
    The audio component of an ExoPlayer.
    +
    Deprecated. +
    Use ExoPlayer, as the ExoPlayer.AudioComponent methods are defined by that + interface.
    +
    @@ -243,37 +246,37 @@ extends static class  ExoPlayer.Builder -
    Deprecated. - -
    +
    A builder for ExoPlayer instances.
    static interface  ExoPlayer.DeviceComponent -
    The device component of an ExoPlayer.
    +
    Deprecated. +
    Use Player, as the ExoPlayer.DeviceComponent methods are defined by that + interface.
    +
    static interface  -ExoPlayer.MetadataComponent +ExoPlayer.TextComponent -
    The metadata component of an ExoPlayer.
    +
    Deprecated. +
    Use Player, as the ExoPlayer.TextComponent methods are defined by that + interface.
    +
    static interface  -ExoPlayer.TextComponent - -
    The text component of an ExoPlayer.
    - - - -static interface  ExoPlayer.VideoComponent -
    The video component of an ExoPlayer.
    +
    Deprecated. +
    Use ExoPlayer, as the ExoPlayer.VideoComponent methods are defined by that + interface.
    +
    @@ -303,6 +306,13 @@ extends static long +DEFAULT_DETACH_SURFACE_TIMEOUT_MS + +
    The default timeout for detaching a surface from the player, in milliseconds.
    + + + +static long DEFAULT_RELEASE_TIMEOUT_MS
    The default timeout for calls to Player.release() and setForegroundMode(boolean), in @@ -315,7 +325,7 @@ extends

    Fields inherited from interface com.google.android.exoplayer2.Player

    -COMMAND_ADJUST_DEVICE_VOLUME, COMMAND_CHANGE_MEDIA_ITEMS, COMMAND_GET_AUDIO_ATTRIBUTES, COMMAND_GET_CURRENT_MEDIA_ITEM, COMMAND_GET_DEVICE_VOLUME, COMMAND_GET_MEDIA_ITEMS_METADATA, COMMAND_GET_TEXT, COMMAND_GET_TIMELINE, COMMAND_GET_VOLUME, COMMAND_INVALID, COMMAND_PLAY_PAUSE, COMMAND_PREPARE_STOP, COMMAND_SEEK_BACK, COMMAND_SEEK_FORWARD, COMMAND_SEEK_IN_CURRENT_WINDOW, COMMAND_SEEK_TO_DEFAULT_POSITION, COMMAND_SEEK_TO_NEXT, COMMAND_SEEK_TO_NEXT_WINDOW, COMMAND_SEEK_TO_PREVIOUS, COMMAND_SEEK_TO_PREVIOUS_WINDOW, COMMAND_SEEK_TO_WINDOW, COMMAND_SET_DEVICE_VOLUME, COMMAND_SET_MEDIA_ITEMS_METADATA, COMMAND_SET_REPEAT_MODE, COMMAND_SET_SHUFFLE_MODE, COMMAND_SET_SPEED_AND_PITCH, COMMAND_SET_VIDEO_SURFACE, COMMAND_SET_VOLUME, DISCONTINUITY_REASON_AUTO_TRANSITION, DISCONTINUITY_REASON_INTERNAL, DISCONTINUITY_REASON_REMOVE, DISCONTINUITY_REASON_SEEK, DISCONTINUITY_REASON_SEEK_ADJUSTMENT, DISCONTINUITY_REASON_SKIP, EVENT_AVAILABLE_COMMANDS_CHANGED, EVENT_IS_LOADING_CHANGED, EVENT_IS_PLAYING_CHANGED, EVENT_MAX_SEEK_TO_PREVIOUS_POSITION_CHANGED, EVENT_MEDIA_ITEM_TRANSITION, EVENT_MEDIA_METADATA_CHANGED, EVENT_PLAY_WHEN_READY_CHANGED, EVENT_PLAYBACK_PARAMETERS_CHANGED, EVENT_PLAYBACK_STATE_CHANGED, EVENT_PLAYBACK_SUPPRESSION_REASON_CHANGED, EVENT_PLAYER_ERROR, EVENT_PLAYLIST_METADATA_CHANGED, EVENT_POSITION_DISCONTINUITY, EVENT_REPEAT_MODE_CHANGED, EVENT_SEEK_BACK_INCREMENT_CHANGED, EVENT_SEEK_FORWARD_INCREMENT_CHANGED, EVENT_SHUFFLE_MODE_ENABLED_CHANGED, EVENT_STATIC_METADATA_CHANGED, EVENT_TIMELINE_CHANGED, EVENT_TRACKS_CHANGED, MEDIA_ITEM_TRANSITION_REASON_AUTO, MEDIA_ITEM_TRANSITION_REASON_PLAYLIST_CHANGED, MEDIA_ITEM_TRANSITION_REASON_REPEAT, MEDIA_ITEM_TRANSITION_REASON_SEEK, PLAY_WHEN_READY_CHANGE_REASON_AUDIO_BECOMING_NOISY, PLAY_WHEN_READY_CHANGE_REASON_AUDIO_FOCUS_LOSS, PLAY_WHEN_READY_CHANGE_REASON_END_OF_MEDIA_ITEM, PLAY_WHEN_READY_CHANGE_REASON_REMOTE, PLAY_WHEN_READY_CHANGE_REASON_USER_REQUEST, PLAYBACK_SUPPRESSION_REASON_NONE, PLAYBACK_SUPPRESSION_REASON_TRANSIENT_AUDIO_FOCUS_LOSS, REPEAT_MODE_ALL, REPEAT_MODE_OFF, REPEAT_MODE_ONE, STATE_BUFFERING, STATE_ENDED, STATE_IDLE, STATE_READY, TIMELINE_CHANGE_REASON_PLAYLIST_CHANGED, TIMELINE_CHANGE_REASON_SOURCE_UPDATE
  • +COMMAND_ADJUST_DEVICE_VOLUME, COMMAND_CHANGE_MEDIA_ITEMS, COMMAND_GET_AUDIO_ATTRIBUTES, COMMAND_GET_CURRENT_MEDIA_ITEM, COMMAND_GET_DEVICE_VOLUME, COMMAND_GET_MEDIA_ITEMS_METADATA, COMMAND_GET_TEXT, COMMAND_GET_TIMELINE, COMMAND_GET_TRACK_INFOS, COMMAND_GET_VOLUME, COMMAND_INVALID, COMMAND_PLAY_PAUSE, COMMAND_PREPARE, COMMAND_SEEK_BACK, COMMAND_SEEK_FORWARD, COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM, COMMAND_SEEK_IN_CURRENT_WINDOW, COMMAND_SEEK_TO_DEFAULT_POSITION, COMMAND_SEEK_TO_MEDIA_ITEM, COMMAND_SEEK_TO_NEXT, COMMAND_SEEK_TO_NEXT_MEDIA_ITEM, COMMAND_SEEK_TO_NEXT_WINDOW, COMMAND_SEEK_TO_PREVIOUS, COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM, COMMAND_SEEK_TO_PREVIOUS_WINDOW, COMMAND_SEEK_TO_WINDOW, COMMAND_SET_DEVICE_VOLUME, COMMAND_SET_MEDIA_ITEMS_METADATA, COMMAND_SET_REPEAT_MODE, COMMAND_SET_SHUFFLE_MODE, COMMAND_SET_SPEED_AND_PITCH, COMMAND_SET_TRACK_SELECTION_PARAMETERS, COMMAND_SET_VIDEO_SURFACE, COMMAND_SET_VOLUME, COMMAND_STOP, DISCONTINUITY_REASON_AUTO_TRANSITION, DISCONTINUITY_REASON_INTERNAL, DISCONTINUITY_REASON_REMOVE, DISCONTINUITY_REASON_SEEK, DISCONTINUITY_REASON_SEEK_ADJUSTMENT, DISCONTINUITY_REASON_SKIP, EVENT_AVAILABLE_COMMANDS_CHANGED, EVENT_IS_LOADING_CHANGED, EVENT_IS_PLAYING_CHANGED, EVENT_MAX_SEEK_TO_PREVIOUS_POSITION_CHANGED, EVENT_MEDIA_ITEM_TRANSITION, EVENT_MEDIA_METADATA_CHANGED, EVENT_PLAY_WHEN_READY_CHANGED, EVENT_PLAYBACK_PARAMETERS_CHANGED, EVENT_PLAYBACK_STATE_CHANGED, EVENT_PLAYBACK_SUPPRESSION_REASON_CHANGED, EVENT_PLAYER_ERROR, EVENT_PLAYLIST_METADATA_CHANGED, EVENT_POSITION_DISCONTINUITY, EVENT_REPEAT_MODE_CHANGED, EVENT_SEEK_BACK_INCREMENT_CHANGED, EVENT_SEEK_FORWARD_INCREMENT_CHANGED, EVENT_SHUFFLE_MODE_ENABLED_CHANGED, EVENT_TIMELINE_CHANGED, EVENT_TRACK_SELECTION_PARAMETERS_CHANGED, EVENT_TRACKS_CHANGED, MEDIA_ITEM_TRANSITION_REASON_AUTO, MEDIA_ITEM_TRANSITION_REASON_PLAYLIST_CHANGED, MEDIA_ITEM_TRANSITION_REASON_REPEAT, MEDIA_ITEM_TRANSITION_REASON_SEEK, PLAY_WHEN_READY_CHANGE_REASON_AUDIO_BECOMING_NOISY, PLAY_WHEN_READY_CHANGE_REASON_AUDIO_FOCUS_LOSS, PLAY_WHEN_READY_CHANGE_REASON_END_OF_MEDIA_ITEM, PLAY_WHEN_READY_CHANGE_REASON_REMOTE, PLAY_WHEN_READY_CHANGE_REASON_USER_REQUEST, PLAYBACK_SUPPRESSION_REASON_NONE, PLAYBACK_SUPPRESSION_REASON_TRANSIENT_AUDIO_FOCUS_LOSS, REPEAT_MODE_ALL, REPEAT_MODE_OFF, REPEAT_MODE_ONE, STATE_BUFFERING, STATE_ENDED, STATE_IDLE, STATE_READY, TIMELINE_CHANGE_REASON_PLAYLIST_CHANGED, TIMELINE_CHANGE_REASON_SOURCE_UPDATE @@ -336,12 +346,28 @@ extends void +addAnalyticsListener​(AnalyticsListener listener) + +
    Adds an AnalyticsListener to receive analytics events.
    + + + +void addAudioOffloadListener​(ExoPlayer.AudioOffloadListener listener)
    Adds a listener to receive audio offload events.
    - + +void +addListener​(Player.EventListener listener) + + + + + void addMediaSource​(int index, MediaSource mediaSource) @@ -349,14 +375,14 @@ extends Adds a media source at the given index of the playlist.
    - + void addMediaSource​(MediaSource mediaSource)
    Adds a media source to the end of the playlist.
    - + void addMediaSources​(int index, List<MediaSource> mediaSources) @@ -364,77 +390,125 @@ extends Adds a list of media sources at the given index of the playlist.
    - + void addMediaSources​(List<MediaSource> mediaSources)
    Adds a list of media sources to the end of the playlist.
    - + +void +clearAuxEffectInfo() + +
    Detaches any previously attached auxiliary audio effect from the underlying audio track.
    + + + +void +clearCameraMotionListener​(CameraMotionListener listener) + +
    Clears the listener which receives camera motion events if it matches the one passed.
    + + + +void +clearVideoFrameMetadataListener​(VideoFrameMetadataListener listener) + +
    Clears the listener which receives video frame metadata events if it matches the one passed.
    + + + PlayerMessage createMessage​(PlayerMessage.Target target)
    Creates a message that can be sent to a PlayerMessage.Target.
    - + boolean experimentalIsSleepingForOffload()
    Returns whether the player has paused its main loop to save power in offload scheduling mode.
    - + void experimentalSetOffloadSchedulingEnabled​(boolean offloadSchedulingEnabled)
    Sets whether audio offload scheduling is enabled.
    - + +AnalyticsCollector +getAnalyticsCollector() + +
    Returns the AnalyticsCollector used for collecting analytics events.
    + + + ExoPlayer.AudioComponent getAudioComponent() -
    Returns the component of this player for audio output, or null if audio is not supported.
    +
    Deprecated. +
    Use ExoPlayer, as the ExoPlayer.AudioComponent methods are defined by that + interface.
    +
    - + +DecoderCounters +getAudioDecoderCounters() + +
    Returns DecoderCounters for audio, or null if no audio is being played.
    + + + +Format +getAudioFormat() + +
    Returns the audio format currently being played, or null if no audio is being played.
    + + + +int +getAudioSessionId() + +
    Returns the audio session identifier, or C.AUDIO_SESSION_ID_UNSET if not set.
    + + + Clock getClock()
    Returns the Clock used for playback.
    - + ExoPlayer.DeviceComponent getDeviceComponent() -
    Returns the component of this player for playback device, or null if it's not supported.
    +
    Deprecated. +
    Use Player, as the ExoPlayer.DeviceComponent methods are defined by that + interface.
    +
    - -ExoPlayer.MetadataComponent -getMetadataComponent() - -
    Returns the component of this player for metadata output, or null if metadata is not supported.
    - - - + boolean getPauseAtEndOfMediaItems()
    Returns whether the player pauses playback at the end of each media item.
    - + Looper getPlaybackLooper()
    Returns the Looper associated with the playback thread.
    - + ExoPlaybackException getPlayerError() @@ -442,49 +516,90 @@ extends ExoPlaybackException. - + int getRendererCount()
    Returns the number of renderers.
    - -int + +@com.google.android.exoplayer2.C.TrackType int getRendererType​(int index)
    Returns the track type that the renderer at a given index handles.
    - + SeekParameters getSeekParameters()
    Returns the currently active SeekParameters of the player.
    - + +boolean +getSkipSilenceEnabled() + +
    Returns whether skipping silences in the audio stream is enabled.
    + + + ExoPlayer.TextComponent getTextComponent() -
    Returns the component of this player for text output, or null if text is not supported.
    +
    Deprecated. +
    Use Player, as the ExoPlayer.TextComponent methods are defined by that + interface.
    +
    - + TrackSelector getTrackSelector()
    Returns the track selector that this player uses, or null if track selection is not supported.
    - + +int +getVideoChangeFrameRateStrategy() + + + + + ExoPlayer.VideoComponent getVideoComponent() -
    Returns the component of this player for video output, or null if video is not supported.
    +
    Deprecated. +
    Use ExoPlayer, as the ExoPlayer.VideoComponent methods are defined by that + interface.
    +
    - + +DecoderCounters +getVideoDecoderCounters() + +
    Returns DecoderCounters for video, or null if no video is being played.
    + + + +Format +getVideoFormat() + +
    Returns the video format currently being played, or null if no video is being played.
    + + + +int +getVideoScalingMode() + +
    Returns the C.VideoScalingMode.
    + + + void prepare​(MediaSource mediaSource) @@ -493,7 +608,7 @@ extends - + void prepare​(MediaSource mediaSource, boolean resetPosition, @@ -504,14 +619,30 @@ extends - + +void +removeAnalyticsListener​(AnalyticsListener listener) + +
    Removes an AnalyticsListener.
    + + + void removeAudioOffloadListener​(ExoPlayer.AudioOffloadListener listener)
    Removes a listener of audio offload events.
    - + +void +removeListener​(Player.EventListener listener) + + + + + void retry() @@ -520,7 +651,36 @@ extends - + +void +setAudioAttributes​(AudioAttributes audioAttributes, + boolean handleAudioFocus) + +
    Sets the attributes for audio playback, used by the underlying audio track.
    + + + +void +setAudioSessionId​(int audioSessionId) + +
    Sets the ID of the audio session to attach to the underlying AudioTrack.
    + + + +void +setAuxEffectInfo​(AuxEffectInfo auxEffectInfo) + +
    Sets information on an auxiliary audio effect to attach to the underlying audio track.
    + + + +void +setCameraMotionListener​(CameraMotionListener listener) + +
    Sets a listener of camera motion events.
    + + + void setForegroundMode​(boolean foregroundMode) @@ -528,7 +688,24 @@ extends - + +void +setHandleAudioBecomingNoisy​(boolean handleAudioBecomingNoisy) + +
    Sets whether the player should pause automatically when audio is rerouted from a headset to + device speakers.
    + + + +void +setHandleWakeLock​(boolean handleWakeLock) + +
    Deprecated. +
    Use setWakeMode(int) instead.
    +
    + + + void setMediaSource​(MediaSource mediaSource) @@ -536,7 +713,7 @@ extends - + void setMediaSource​(MediaSource mediaSource, boolean resetPosition) @@ -544,7 +721,7 @@ extends Clears the playlist and adds the specified MediaSource. - + void setMediaSource​(MediaSource mediaSource, long startPositionMs) @@ -552,7 +729,7 @@ extends Clears the playlist and adds the specified MediaSource. - + void setMediaSources​(List<MediaSource> mediaSources) @@ -560,7 +737,7 @@ extends - + void setMediaSources​(List<MediaSource> mediaSources, boolean resetPosition) @@ -568,43 +745,95 @@ extends Clears the playlist and adds the specified MediaSources. - + void setMediaSources​(List<MediaSource> mediaSources, - int startWindowIndex, + int startMediaItemIndex, long startPositionMs)
    Clears the playlist and adds the specified MediaSources.
    - + void setPauseAtEndOfMediaItems​(boolean pauseAtEndOfMediaItems)
    Sets whether to pause playback at the end of each media item.
    - + +void +setPriorityTaskManager​(PriorityTaskManager priorityTaskManager) + +
    Sets a PriorityTaskManager, or null to clear a previously set priority task manager.
    + + + void setSeekParameters​(SeekParameters seekParameters)
    Sets the parameters that control how seek operations are performed.
    - + void setShuffleOrder​(ShuffleOrder shuffleOrder)
    Sets the shuffle order.
    + +void +setSkipSilenceEnabled​(boolean skipSilenceEnabled) + +
    Sets whether skipping silences in the audio stream is enabled.
    + + + +void +setThrowsWhenUsingWrongThread​(boolean throwsWhenUsingWrongThread) + +
    Deprecated. +
    Disabling the enforcement can result in hard-to-detect bugs.
    +
    + + + +void +setVideoChangeFrameRateStrategy​(int videoChangeFrameRateStrategy) + +
    Sets a C.VideoChangeFrameRateStrategy that will be used by the player when provided + with a video output Surface.
    + + + +void +setVideoFrameMetadataListener​(VideoFrameMetadataListener listener) + +
    Sets a listener to receive video frame metadata events.
    + + + +void +setVideoScalingMode​(int videoScalingMode) + + + + + +void +setWakeMode​(@com.google.android.exoplayer2.C.WakeMode int wakeMode) + +
    Sets how the player should keep the device awake for playback when the screen is off.
    + + @@ -625,7 +854,7 @@ extends -
      +
      • DEFAULT_RELEASE_TIMEOUT_MS

        static final long DEFAULT_RELEASE_TIMEOUT_MS
        @@ -637,6 +866,20 @@ extends
      + + + +
        +
      • +

        DEFAULT_DETACH_SURFACE_TIMEOUT_MS

        +
        static final long DEFAULT_DETACH_SURFACE_TIMEOUT_MS
        +
        The default timeout for detaching a surface from the player, in milliseconds.
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
    @@ -673,8 +916,12 @@ extends

    getAudioComponent

    @Nullable
    +@Deprecated
     ExoPlayer.AudioComponent getAudioComponent()
    -
    Returns the component of this player for audio output, or null if audio is not supported.
    +
    Deprecated. +
    Use ExoPlayer, as the ExoPlayer.AudioComponent methods are defined by that + interface.
    +
    @@ -684,8 +931,12 @@ extends

    getVideoComponent

    @Nullable
    +@Deprecated
     ExoPlayer.VideoComponent getVideoComponent()
    -
    Returns the component of this player for video output, or null if video is not supported.
    +
    Deprecated. +
    Use ExoPlayer, as the ExoPlayer.VideoComponent methods are defined by that + interface.
    +
    @@ -695,19 +946,12 @@ extends

    getTextComponent

    @Nullable
    +@Deprecated
     ExoPlayer.TextComponent getTextComponent()
    -
    Returns the component of this player for text output, or null if text is not supported.
    - - - - - -
      -
    • -

      getMetadataComponent

      -
      @Nullable
      -ExoPlayer.MetadataComponent getMetadataComponent()
      -
      Returns the component of this player for metadata output, or null if metadata is not supported.
      +
      Deprecated. +
      Use Player, as the ExoPlayer.TextComponent methods are defined by that + interface.
      +
    @@ -717,8 +961,51 @@ extends

    getDeviceComponent

    @Nullable
    +@Deprecated
     ExoPlayer.DeviceComponent getDeviceComponent()
    -
    Returns the component of this player for playback device, or null if it's not supported.
    +
    Deprecated. +
    Use Player, as the ExoPlayer.DeviceComponent methods are defined by that + interface.
    +
    + + + + + + + + + + @@ -749,6 +1036,44 @@ extends + + + + + + + +
      +
    • +

      addAnalyticsListener

      +
      void addAnalyticsListener​(AnalyticsListener listener)
      +
      Adds an AnalyticsListener to receive analytics events.
      +
      +
      Parameters:
      +
      listener - The listener to be added.
      +
      +
    • +
    + + + +
      +
    • +

      removeAnalyticsListener

      +
      void removeAnalyticsListener​(AnalyticsListener listener)
      +
      Removes an AnalyticsListener.
      +
      +
      Parameters:
      +
      listener - The listener to be removed.
      +
      +
    • +
    @@ -765,7 +1090,7 @@ extends
  • getRendererType

    -
    int getRendererType​(int index)
    +
    @com.google.android.exoplayer2.C.TrackType int getRendererType​(int index)
  • @@ -879,7 +1204,7 @@ void prepare​(MediaSources.
    resetPosition - Whether the playback position should be reset to the default position in the first Timeline.Window. If false, playback will start from the position defined - by Player.getCurrentWindowIndex() and Player.getCurrentPosition().
    + by Player.getCurrentMediaItemIndex() and Player.getCurrentPosition(). @@ -890,17 +1215,16 @@ void prepare​(

    setMediaSources

    void setMediaSources​(List<MediaSource> mediaSources,
    -                     int startWindowIndex,
    +                     int startMediaItemIndex,
                          long startPositionMs)
    Clears the playlist and adds the specified MediaSources.
    Parameters:
    mediaSources - The new MediaSources.
    -
    startWindowIndex - The window index to start playback from. If C.INDEX_UNSET is - passed, the current position is not reset.
    -
    startPositionMs - The position in milliseconds to start playback from. If C.TIME_UNSET is passed, the default position of the given window is used. In any case, if - startWindowIndex is set to C.INDEX_UNSET, this parameter is ignored and the - position is not reset at all.
    +
    startMediaItemIndex - The media item index to start playback from. If C.INDEX_UNSET is passed, the current position is not reset.
    +
    startPositionMs - The position in milliseconds to start playback from. If C.TIME_UNSET is passed, the default position of the given media item is used. In any case, + if startMediaItemIndex is set to C.INDEX_UNSET, this parameter is ignored + and the position is not reset at all.
    @@ -948,7 +1272,7 @@ void prepare​(Parameters:
    mediaSource - The new MediaSource.
    resetPosition - Whether the playback position should be reset to the default position. If - false, playback will start from the position defined by Player.getCurrentWindowIndex() + false, playback will start from the position defined by Player.getCurrentMediaItemIndex() and Player.getCurrentPosition().
    @@ -1027,6 +1351,231 @@ void prepare​( + + +
      +
    • +

      setAudioAttributes

      +
      void setAudioAttributes​(AudioAttributes audioAttributes,
      +                        boolean handleAudioFocus)
      +
      Sets the attributes for audio playback, used by the underlying audio track. If not set, the + default audio attributes will be used. They are suitable for general media playback. + +

      Setting the audio attributes during playback may introduce a short gap in audio output as + the audio track is recreated. A new audio session id will also be generated. + +

      If tunneling is enabled by the track selector, the specified audio attributes will be + ignored, but they will take effect if audio is later played without tunneling. + +

      If the device is running a build before platform API version 21, audio attributes cannot be + set directly on the underlying audio track. In this case, the usage will be mapped onto an + equivalent stream type using Util.getStreamTypeForAudioUsage(int). + +

      If audio focus should be handled, the AudioAttributes.usage must be C.USAGE_MEDIA or C.USAGE_GAME. Other usages will throw an IllegalArgumentException.

      +
      +
      Parameters:
      +
      audioAttributes - The attributes to use for audio playback.
      +
      handleAudioFocus - True if the player should handle audio focus, false otherwise.
      +
      +
    • +
    + + + +
      +
    • +

      setAudioSessionId

      +
      void setAudioSessionId​(int audioSessionId)
      +
      Sets the ID of the audio session to attach to the underlying AudioTrack. + +

      The audio session ID can be generated using Util.generateAudioSessionIdV21(Context) + for API 21+.

      +
      +
      Parameters:
      +
      audioSessionId - The audio session ID, or C.AUDIO_SESSION_ID_UNSET if it should be + generated by the framework.
      +
      +
    • +
    + + + +
      +
    • +

      getAudioSessionId

      +
      int getAudioSessionId()
      +
      Returns the audio session identifier, or C.AUDIO_SESSION_ID_UNSET if not set.
      +
    • +
    + + + +
      +
    • +

      setAuxEffectInfo

      +
      void setAuxEffectInfo​(AuxEffectInfo auxEffectInfo)
      +
      Sets information on an auxiliary audio effect to attach to the underlying audio track.
      +
    • +
    + + + +
      +
    • +

      clearAuxEffectInfo

      +
      void clearAuxEffectInfo()
      +
      Detaches any previously attached auxiliary audio effect from the underlying audio track.
      +
    • +
    + + + +
      +
    • +

      setSkipSilenceEnabled

      +
      void setSkipSilenceEnabled​(boolean skipSilenceEnabled)
      +
      Sets whether skipping silences in the audio stream is enabled.
      +
      +
      Parameters:
      +
      skipSilenceEnabled - Whether skipping silences in the audio stream is enabled.
      +
      +
    • +
    + + + +
      +
    • +

      getSkipSilenceEnabled

      +
      boolean getSkipSilenceEnabled()
      +
      Returns whether skipping silences in the audio stream is enabled.
      +
    • +
    + + + + + + + + + + + + + + + + + + + +
      +
    • +

      setVideoFrameMetadataListener

      +
      void setVideoFrameMetadataListener​(VideoFrameMetadataListener listener)
      +
      Sets a listener to receive video frame metadata events. + +

      This method is intended to be called by the same component that sets the Surface + onto which video will be rendered. If using ExoPlayer's standard UI components, this method + should not be called directly from application code.

      +
      +
      Parameters:
      +
      listener - The listener.
      +
      +
    • +
    + + + +
      +
    • +

      clearVideoFrameMetadataListener

      +
      void clearVideoFrameMetadataListener​(VideoFrameMetadataListener listener)
      +
      Clears the listener which receives video frame metadata events if it matches the one passed. + Else does nothing.
      +
      +
      Parameters:
      +
      listener - The listener to clear.
      +
      +
    • +
    + + + +
      +
    • +

      setCameraMotionListener

      +
      void setCameraMotionListener​(CameraMotionListener listener)
      +
      Sets a listener of camera motion events.
      +
      +
      Parameters:
      +
      listener - The listener.
      +
      +
    • +
    + + + +
      +
    • +

      clearCameraMotionListener

      +
      void clearCameraMotionListener​(CameraMotionListener listener)
      +
      Clears the listener which receives camera motion events if it matches the one passed. Else does + nothing.
      +
      +
      Parameters:
      +
      listener - The listener to clear.
      +
      +
    • +
    @@ -1037,8 +1586,8 @@ void prepare​(Creates a message that can be sent to a PlayerMessage.Target. By default, the message will be delivered immediately without blocking on the playback thread. The default PlayerMessage.getType() is 0 and the default PlayerMessage.getPayload() is null. If a position is specified with PlayerMessage.setPosition(long), the message will be - delivered at this position in the current window defined by Player.getCurrentWindowIndex(). - Alternatively, the message can be sent at a specific window using PlayerMessage.setPosition(int, long). + delivered at this position in the current media item defined by Player.getCurrentMediaItemIndex(). Alternatively, the message can be sent at a specific mediaItem + using PlayerMessage.setPosition(int, long). @@ -1112,7 +1661,7 @@ void prepare​(void setPauseAtEndOfMediaItems​(boolean pauseAtEndOfMediaItems) +

    This means the player will pause at the end of each window in the current timeline. Listeners will be informed by a call to Player.Listener.onPlayWhenReadyChanged(boolean, int) with the reason Player.PLAY_WHEN_READY_CHANGE_REASON_END_OF_MEDIA_ITEM when this happens.

    Parameters:
    pauseAtEndOfMediaItems - Whether to pause playback at the end of each media item.
    @@ -1133,6 +1682,143 @@ void prepare​( + + +
      +
    • +

      getAudioFormat

      +
      @Nullable
      +Format getAudioFormat()
      +
      Returns the audio format currently being played, or null if no audio is being played.
      +
    • +
    + + + +
      +
    • +

      getVideoFormat

      +
      @Nullable
      +Format getVideoFormat()
      +
      Returns the video format currently being played, or null if no video is being played.
      +
    • +
    + + + +
      +
    • +

      getAudioDecoderCounters

      +
      @Nullable
      +DecoderCounters getAudioDecoderCounters()
      +
      Returns DecoderCounters for audio, or null if no audio is being played.
      +
    • +
    + + + +
      +
    • +

      getVideoDecoderCounters

      +
      @Nullable
      +DecoderCounters getVideoDecoderCounters()
      +
      Returns DecoderCounters for video, or null if no video is being played.
      +
    • +
    + + + +
      +
    • +

      setHandleAudioBecomingNoisy

      +
      void setHandleAudioBecomingNoisy​(boolean handleAudioBecomingNoisy)
      +
      Sets whether the player should pause automatically when audio is rerouted from a headset to + device speakers. See the audio + becoming noisy documentation for more information.
      +
      +
      Parameters:
      +
      handleAudioBecomingNoisy - Whether the player should pause automatically when audio is + rerouted from a headset to device speakers.
      +
      +
    • +
    + + + +
      +
    • +

      setHandleWakeLock

      +
      @Deprecated
      +void setHandleWakeLock​(boolean handleWakeLock)
      +
      Deprecated. +
      Use setWakeMode(int) instead.
      +
      +
    • +
    + + + +
      +
    • +

      setWakeMode

      +
      void setWakeMode​(@WakeMode
      +                 @com.google.android.exoplayer2.C.WakeMode int wakeMode)
      +
      Sets how the player should keep the device awake for playback when the screen is off. + +

      Enabling this feature requires the Manifest.permission.WAKE_LOCK permission. + It should be used together with a foreground Service for use cases where + playback occurs and the screen is off (e.g. background audio playback). It is not useful when + the screen will be kept on during playback (e.g. foreground video playback). + +

      When enabled, the locks (PowerManager.WakeLock / WifiManager.WifiLock) will be held whenever the player is in the Player.STATE_READY or Player.STATE_BUFFERING states with playWhenReady = true. The locks + held depends on the specified C.WakeMode.

      +
      +
      Parameters:
      +
      wakeMode - The C.WakeMode option to keep the device awake during playback.
      +
      +
    • +
    + + + +
      +
    • +

      setPriorityTaskManager

      +
      void setPriorityTaskManager​(@Nullable
      +                            PriorityTaskManager priorityTaskManager)
      +
      Sets a PriorityTaskManager, or null to clear a previously set priority task manager. + +

      The priority C.PRIORITY_PLAYBACK will be set while the player is loading.

      +
      +
      Parameters:
      +
      priorityTaskManager - The PriorityTaskManager, or null to clear a previously set + priority task manager.
      +
      +
    • +
    + + + +
      +
    • +

      setThrowsWhenUsingWrongThread

      +
      @Deprecated
      +void setThrowsWhenUsingWrongThread​(boolean throwsWhenUsingWrongThread)
      +
      Deprecated. +
      Disabling the enforcement can result in hard-to-detect bugs. Do not use this method + except to ease the transition while wrong thread access problems are fixed.
      +
      +
      Sets whether the player should throw an IllegalStateException when methods are called + from a thread other than the one associated with Player.getApplicationLooper(). + +

      The default is true and this method will be removed in the future.

      +
      +
      Parameters:
      +
      throwsWhenUsingWrongThread - Whether to throw when methods are called from a wrong thread.
      +
      +
    • +
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/ExoPlayerLibraryInfo.html b/docs/doc/reference/com/google/android/exoplayer2/ExoPlayerLibraryInfo.html index b191655a6c..a5f9f4b29b 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/ExoPlayerLibraryInfo.html +++ b/docs/doc/reference/com/google/android/exoplayer2/ExoPlayerLibraryInfo.html @@ -131,7 +131,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    public final class ExoPlayerLibraryInfo
     extends Object
    -
    Information about the ExoPlayer library.
    +
    Information about the media libraries.
    @@ -156,24 +156,7 @@ extends static boolean ASSERTIONS_ENABLED -
    Whether the library was compiled with Assertions - checks enabled.
    - - - -static String -DEFAULT_USER_AGENT - -
    Deprecated. -
    ExoPlayer now uses the user agent of the underlying network stack by default.
    -
    - - - -static boolean -GL_ASSERTIONS_ENABLED - -
    Whether an exception should be thrown in case of an OpenGl error.
    +
    Whether the library was compiled with Assertions checks enabled.
    @@ -187,8 +170,7 @@ extends static boolean TRACE_ENABLED -
    Whether the library was compiled with TraceUtil - trace enabled.
    +
    Whether the library was compiled with TraceUtil trace enabled.
    @@ -209,7 +191,7 @@ extends static String VERSION_SLASHY -
    The version of the library expressed as "ExoPlayerLib/" + VERSION.
    +
    The version of the library expressed as TAG + "/" + VERSION.
    @@ -303,7 +285,7 @@ extends

    VERSION_SLASHY

    public static final String VERSION_SLASHY
    -
    The version of the library expressed as "ExoPlayerLib/" + VERSION.
    +
    The version of the library expressed as TAG + "/" + VERSION.
    See Also:
    Constant Field Values
    @@ -328,20 +310,6 @@ extends - - - -
      -
    • -

      DEFAULT_USER_AGENT

      -
      @Deprecated
      -public static final String DEFAULT_USER_AGENT
      -
      Deprecated. -
      ExoPlayer now uses the user agent of the underlying network stack by default.
      -
      -
      The default user agent for requests made by the library.
      -
    • -
    @@ -349,28 +317,13 @@ public static final 

    ASSERTIONS_ENABLED

    public static final boolean ASSERTIONS_ENABLED
    -
    +
    Whether the library was compiled with Assertions checks enabled.
    See Also:
    Constant Field Values
    - - - -
      -
    • -

      GL_ASSERTIONS_ENABLED

      -
      public static final boolean GL_ASSERTIONS_ENABLED
      -
      Whether an exception should be thrown in case of an OpenGl error.
      -
      -
      See Also:
      -
      Constant Field Values
      -
      -
    • -
    @@ -378,8 +331,7 @@ public static final 

    TRACE_ENABLED

    public static final boolean TRACE_ENABLED
    -
    +
    Whether the library was compiled with TraceUtil trace enabled.
    See Also:
    Constant Field Values
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/Format.Builder.html b/docs/doc/reference/com/google/android/exoplayer2/Format.Builder.html index a2b33749a8..4dc4edf5dc 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/Format.Builder.html +++ b/docs/doc/reference/com/google/android/exoplayer2/Format.Builder.html @@ -234,32 +234,32 @@ extends Format.Builder +setCryptoType​(@com.google.android.exoplayer2.C.CryptoType int cryptoType) + + + + + +Format.Builder setDrmInitData​(DrmInitData drmInitData) - + Format.Builder setEncoderDelay​(int encoderDelay) - + Format.Builder setEncoderPadding​(int encoderPadding) - -Format.Builder -setExoMediaCryptoType​(Class<? extends ExoMediaCrypto> exoMediaCryptoType) - - - - Format.Builder setFrameRate​(float frameRate) @@ -353,7 +353,7 @@ extends Format.Builder -setRoleFlags​(int roleFlags) +setRoleFlags​(@com.google.android.exoplayer2.C.RoleFlags int roleFlags) @@ -381,7 +381,7 @@ extends Format.Builder -setSelectionFlags​(int selectionFlags) +setSelectionFlags​(@com.google.android.exoplayer2.C.SelectionFlags int selectionFlags) @@ -519,14 +519,14 @@ extends - +
    • setSelectionFlags

      public Format.Builder setSelectionFlags​(@SelectionFlags
      -                                        int selectionFlags)
      + @com.google.android.exoplayer2.C.SelectionFlags int selectionFlags)
      Sets Format.selectionFlags. The default value is 0.
      Parameters:
      @@ -536,14 +536,14 @@ extends
    - +
    • setRoleFlags

      public Format.Builder setRoleFlags​(@RoleFlags
      -                                   int roleFlags)
      + @com.google.android.exoplayer2.C.RoleFlags int roleFlags)
      Sets Format.roleFlags. The default value is 0.
      Parameters:
      @@ -947,18 +947,17 @@ extends
    - +
    • -

      setExoMediaCryptoType

      -
      public Format.Builder setExoMediaCryptoType​(@Nullable
      -                                            Class<? extends ExoMediaCrypto> exoMediaCryptoType)
      -
      Sets Format.exoMediaCryptoType. The default value is null.
      +

      setCryptoType

      +
      public Format.Builder setCryptoType​(@com.google.android.exoplayer2.C.CryptoType int cryptoType)
      +
      Sets Format.cryptoType. The default value is C.CRYPTO_TYPE_NONE.
      Parameters:
      -
      exoMediaCryptoType - The Format.exoMediaCryptoType.
      +
      cryptoType - The C.CryptoType.
      Returns:
      The builder.
      diff --git a/docs/doc/reference/com/google/android/exoplayer2/Format.html b/docs/doc/reference/com/google/android/exoplayer2/Format.html index 9e78b8eb59..f896e1c926 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/Format.html +++ b/docs/doc/reference/com/google/android/exoplayer2/Format.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":10,"i1":42,"i2":42,"i3":10,"i4":42,"i5":42,"i6":42,"i7":42,"i8":42,"i9":42,"i10":42,"i11":42,"i12":41,"i13":41,"i14":41,"i15":41,"i16":41,"i17":41,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":9,"i24":10,"i25":10,"i26":10}; +var data = {"i0":10,"i1":42,"i2":10,"i3":42,"i4":42,"i5":42,"i6":42,"i7":42,"i8":42,"i9":42,"i10":42,"i11":42,"i12":41,"i13":41,"i14":41,"i15":41,"i16":41,"i17":41,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":9,"i24":10,"i25":10}; var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -130,12 +130,12 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    • All Implemented Interfaces:
      -
      Parcelable
      +
      Bundleable

      public final class Format
       extends Object
      -implements Parcelable
      +implements Bundleable
      Represents a media format.

      When building formats, populate all fields whose values are known and relevant to the type of @@ -236,11 +236,11 @@ implements -

    • +
    • -

      Nested classes/interfaces inherited from interface android.os.Parcelable

      -Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
    • +

      Nested classes/interfaces inherited from interface com.google.android.exoplayer2.Bundleable

      +Bundleable.Creator<T extends Bundleable>
    @@ -309,18 +309,27 @@ implements -static Parcelable.Creator<Format> +static Bundleable.Creator<Format> CREATOR -  + +
    Object that can restore Format from a Bundle.
    + +@com.google.android.exoplayer2.C.CryptoType int +cryptoType + +
    The type of crypto that must be used to decode samples associated with this format, or C.CRYPTO_TYPE_NONE if the content is not encrypted.
    + + + DrmInitData drmInitData
    DRM initialization data if the stream is protected, or null otherwise.
    - + int encoderDelay @@ -328,21 +337,13 @@ implements + int encoderPadding
    The number of frames to trim from the end of the decoded audio stream, or 0 if not applicable.
    - -Class<? extends ExoMediaCrypto> -exoMediaCryptoType - -
    The type of ExoMediaCrypto that will be associated with the content this format - describes, or null if the content is not encrypted.
    - - float frameRate @@ -444,7 +445,7 @@ implements -int +@com.google.android.exoplayer2.C.RoleFlags int roleFlags
    Track role flags.
    @@ -473,7 +474,7 @@ implements -int +@com.google.android.exoplayer2.C.SelectionFlags int selectionFlags
    Track selection flags.
    @@ -502,13 +503,6 @@ implements -
  • - - -

    Fields inherited from interface android.os.Parcelable

    -CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
  • - @@ -544,6 +538,13 @@ implements Format +copyWithCryptoType​(@com.google.android.exoplayer2.C.CryptoType int cryptoType) + +
    Returns a copy of this format with the specified cryptoType.
    + + + +Format copyWithDrmInitData​(DrmInitData drmInitData)
    Deprecated. @@ -551,13 +552,6 @@ implements -Format -copyWithExoMediaCryptoType​(Class<? extends ExoMediaCrypto> exoMediaCryptoType) - -
    Returns a copy of this format with the specified exoMediaCryptoType.
    - - Format copyWithFrameRate​(float frameRate) @@ -634,7 +628,7 @@ implements static Format -createAudioSampleFormat​(String id, +createAudioSampleFormat​(String id, String sampleMimeType, String codecs, int bitrate, @@ -644,7 +638,7 @@ implements List<byte[]> initializationData, DrmInitData drmInitData, - int selectionFlags, + @com.google.android.exoplayer2.C.SelectionFlags int selectionFlags, String language)
    Deprecated. @@ -654,7 +648,7 @@ implements static Format -createAudioSampleFormat​(String id, +createAudioSampleFormat​(String id, String sampleMimeType, String codecs, int bitrate, @@ -663,7 +657,7 @@ implements List<byte[]> initializationData, DrmInitData drmInitData, - int selectionFlags, + @com.google.android.exoplayer2.C.SelectionFlags int selectionFlags, String language)
    Deprecated. @@ -673,14 +667,14 @@ implements static Format -createContainerFormat​(String id, +createContainerFormat​(String id, String label, String containerMimeType, String sampleMimeType, String codecs, int bitrate, - int selectionFlags, - int roleFlags, + @com.google.android.exoplayer2.C.SelectionFlags int selectionFlags, + @com.google.android.exoplayer2.C.RoleFlags int roleFlags, String language)
    Deprecated. @@ -737,16 +731,11 @@ implements -int -describeContents() -  - - boolean equals​(Object obj)   - + int getPixelCount() @@ -754,12 +743,12 @@ implements NO_VALUE otherwise
    - + int hashCode()   - + boolean initializationDataEquals​(Format other) @@ -767,6 +756,13 @@ implements +Bundle +toBundle() + +
    Returns a Bundle representing the information stored in this object.
    + + static String toLogString​(Format format) @@ -784,12 +780,6 @@ implements withManifestFormatInfo​(Format manifestFormat)   - -void -writeToParcel​(Parcel dest, - int flags) -  - @@ -894,7 +884,7 @@ public final int selectionFlags
  • roleFlags

    @RoleFlags
    -public final int roleFlags
    +public final @com.google.android.exoplayer2.C.RoleFlags int roleFlags
    Track role flags.
  • @@ -1197,16 +1187,16 @@ public final int pcmEncoding
    The Accessibility channel, or NO_VALUE if not known or applicable.
    - +
    • -

      exoMediaCryptoType

      -
      @Nullable
      -public final Class<? extends ExoMediaCrypto> exoMediaCryptoType
      -
      The type of ExoMediaCrypto that will be associated with the content this format - describes, or null if the content is not encrypted. Cannot be null if drmInitData is non-null.
      +

      cryptoType

      +
      public final @com.google.android.exoplayer2.C.CryptoType int cryptoType
      +
      The type of crypto that must be used to decode samples associated with this format, or C.CRYPTO_TYPE_NONE if the content is not encrypted. Cannot be C.CRYPTO_TYPE_NONE if + drmInitData is non-null, but may be C.CRYPTO_TYPE_UNSUPPORTED to indicate that + the samples are encrypted using an unsupported crypto type.
    @@ -1215,7 +1205,8 @@ public final 
  • CREATOR

    -
    public static final Parcelable.Creator<Format> CREATOR
    +
    public static final Bundleable.Creator<Format> CREATOR
    +
    Object that can restore Format from a Bundle.
  • @@ -1284,7 +1275,7 @@ public static  + @@ -217,34 +217,27 @@ implements void -addListener​(Player.EventListener listener) +addListener​(Player.Listener listener)
    Deprecated.
    void -addListener​(Player.Listener listener) - -
    Registers a listener to receive all events from the player.
    - - - -void addMediaItem​(int index, MediaItem mediaItem)
    Adds a media item at the given index of the playlist.
    - + void addMediaItem​(MediaItem mediaItem)
    Adds a media item to the end of the playlist.
    - + void addMediaItems​(int index, List<MediaItem> mediaItems) @@ -252,13 +245,20 @@ implements Adds a list of media items at the given index of the playlist.
    - + void addMediaItems​(List<MediaItem> mediaItems)
    Adds a list of media items to the end of the playlist.
    + +boolean +canAdvertiseSession() + +
    Returns whether the player can be used to advertise a media session.
    + + void clearMediaItems() @@ -314,8 +314,7 @@ implements Looper getApplicationLooper() -
    Returns the Looper associated with the application thread that's used to access the - player and on which player events are received.
    +
    Deprecated.
    @@ -336,7 +335,7 @@ implements int getBufferedPercentage() -
    Returns an estimate of the percentage in the current content window or ad up to which data is +
    Returns an estimate of the percentage in the current content or ad up to which data is buffered, or 0 if no estimate is available.
    @@ -344,8 +343,8 @@ implements long getBufferedPosition() -
    Returns an estimate of the position in the current content window or ad up to which data is - buffered, in milliseconds.
    +
    Returns an estimate of the position in the current content or ad up to which data is buffered, + in milliseconds.
    @@ -353,15 +352,15 @@ implements getContentBufferedPosition()
    If Player.isPlayingAd() returns true, returns an estimate of the content position in - the current content window up to which data is buffered, in milliseconds.
    + the current content up to which data is buffered, in milliseconds.
    long getContentDuration() -
    If Player.isPlayingAd() returns true, returns the duration of the current content - window in milliseconds, or C.TIME_UNSET if the duration is not known.
    +
    If Player.isPlayingAd() returns true, returns the duration of the current content in + milliseconds, or C.TIME_UNSET if the duration is not known.
    @@ -399,8 +398,8 @@ implements getCurrentLiveOffset()
    Returns the offset of the current playback position from the live edge in milliseconds, or - C.TIME_UNSET if the current window isn't live or the - offset is unknown.
    + C.TIME_UNSET if the current MediaItem Player.isCurrentMediaItemLive() isn't + live} or the offset is unknown.
    @@ -414,30 +413,30 @@ implements MediaItem getCurrentMediaItem() -
    Returns the media item of the current window in the timeline.
    +
    Returns the currently playing MediaItem.
    int +getCurrentMediaItemIndex() + +
    Returns the index of the current MediaItem in the timeline, or the prospective index if the current timeline is + empty.
    + + + +int getCurrentPeriodIndex()
    Returns the index of the period currently being played.
    - + long getCurrentPosition() -
    Returns the playback position in the current content window or ad, in milliseconds, or the - prospective position in milliseconds if the current timeline is - empty.
    - - - -List<Metadata> -getCurrentStaticMetadata() - -
    Deprecated.
    +
    Returns the playback position in the current content or ad, in milliseconds, or the prospective + position in milliseconds if the current timeline is empty.
    @@ -462,56 +461,63 @@ implements -int -getCurrentWindowIndex() +TracksInfo +getCurrentTracksInfo() -
    Returns the index of the current window in the timeline, or the prospective window index if the current timeline is empty.
    +
    Returns the available tracks, as well as the tracks' support, type, and selection status.
    -DeviceInfo +int +getCurrentWindowIndex() + +
    Deprecated.
    + + + +DeviceInfo getDeviceInfo()
    Gets the device information.
    - + int getDeviceVolume()
    Gets the current volume of the device.
    - + long getDuration() -
    Returns the duration of the current content window or ad in milliseconds, or C.TIME_UNSET if the duration is not known.
    - - - -int -getMaxSeekToPreviousPosition() - -
    Returns the maximum position for which Player.seekToPrevious() seeks to the previous window, - in milliseconds.
    +
    Returns the duration of the current content or ad in milliseconds, or C.TIME_UNSET if + the duration is not known.
    +long +getMaxSeekToPreviousPosition() + +
    Returns the maximum position for which Player.seekToPrevious() seeks to the previous MediaItem, in milliseconds.
    + + + MediaItem getMediaItemAt​(int index)
    Returns the MediaItem at the given index.
    - + int getMediaItemCount()
    Returns the number of media items in the playlist.
    - + MediaMetadata getMediaMetadata() @@ -519,29 +525,36 @@ implements + +int +getNextMediaItemIndex() + +
    Returns the index of the MediaItem that will be played if Player.seekToNextMediaItem() is called, which may depend on the current repeat mode and whether + shuffle mode is enabled.
    + + + int getNextWindowIndex() -
    Returns the index of the window that will be played if Player.seekToNextWindow() is called, - which may depend on the current repeat mode and whether shuffle mode is enabled.
    +
    Deprecated.
    - + PlaybackParameters getPlaybackParameters()
    Returns the currently active playback parameters.
    - + int getPlaybackState()
    Returns the current playback state of the player.
    - + int getPlaybackSuppressionReason() @@ -549,187 +562,236 @@ implements Player.PLAYBACK_SUPPRESSION_REASON_NONE if playback is not suppressed.
    - + PlaybackException getPlayerError()
    Returns the error that caused playback to fail.
    - + MediaMetadata getPlaylistMetadata()
    Returns the playlist MediaMetadata, as set by Player.setPlaylistMetadata(MediaMetadata), or MediaMetadata.EMPTY if not supported.
    - + boolean getPlayWhenReady()
    Whether playback will proceed when Player.getPlaybackState() == Player.STATE_READY.
    - + +int +getPreviousMediaItemIndex() + +
    Returns the index of the MediaItem that will be played if Player.seekToPreviousMediaItem() is called, which may depend on the current repeat mode and whether + shuffle mode is enabled.
    + + + int getPreviousWindowIndex() -
    Returns the index of the window that will be played if Player.seekToPreviousWindow() is - called, which may depend on the current repeat mode and whether shuffle mode is enabled.
    +
    Deprecated.
    - + int getRepeatMode()
    Returns the current Player.RepeatMode used for playback.
    - + long getSeekBackIncrement()
    Returns the Player.seekBack() increment.
    - + long getSeekForwardIncrement()
    Returns the Player.seekForward() increment.
    - + boolean getShuffleModeEnabled() -
    Returns whether shuffling of windows is enabled.
    +
    Returns whether shuffling of media items is enabled.
    - + long getTotalBufferedDuration()
    Returns an estimate of the total buffered duration from the current position, in milliseconds.
    - + +TrackSelectionParameters +getTrackSelectionParameters() + +
    Returns the parameters constraining the track selection.
    + + + VideoSize getVideoSize()
    Gets the size of the video.
    - + float getVolume()
    Returns the audio volume, with 0 being silence and 1 being unity gain (signal unchanged).
    - + Player getWrappedPlayer()
    Returns the Player to which operations are forwarded.
    - + boolean hasNext()
    Deprecated.
    - + +boolean +hasNextMediaItem() + +
    Returns whether a next MediaItem exists, which may depend on the current repeat mode + and whether shuffle mode is enabled.
    + + + boolean hasNextWindow() -
    Returns whether a next window exists, which may depend on the current repeat mode and whether - shuffle mode is enabled.
    +
    Deprecated.
    - + boolean hasPrevious()
    Deprecated.
    - + boolean -hasPreviousWindow() +hasPreviousMediaItem() -
    Returns whether a previous window exists, which may depend on the current repeat mode and +
    Returns whether a previous media item exists, which may depend on the current repeat mode and whether shuffle mode is enabled.
    - + +boolean +hasPreviousWindow() + +
    Deprecated.
    + + + void increaseDeviceVolume()
    Increases the volume of the device.
    - + boolean -isCommandAvailable​(int command) +isCommandAvailable​(@com.google.android.exoplayer2.Player.Command int command)
    Returns whether the provided Player.Command is available.
    - + +boolean +isCurrentMediaItemDynamic() + +
    Returns whether the current MediaItem is dynamic (may change when the Timeline + is updated), or false if the Timeline is empty.
    + + + +boolean +isCurrentMediaItemLive() + +
    Returns whether the current MediaItem is live, or false if the Timeline + is empty.
    + + + +boolean +isCurrentMediaItemSeekable() + +
    Returns whether the current MediaItem is seekable, or false if the Timeline is empty.
    + + + boolean isCurrentWindowDynamic() -
    Returns whether the current window is dynamic, or false if the Timeline is - empty.
    +
    Deprecated.
    - + boolean isCurrentWindowLive() -
    Returns whether the current window is live, or false if the Timeline is empty.
    +
    Deprecated.
    - + boolean isCurrentWindowSeekable() -
    Returns whether the current window is seekable, or false if the Timeline is - empty.
    +
    Deprecated.
    - + boolean isDeviceMuted()
    Gets whether the device is muted or not.
    - + boolean isLoading()
    Whether the player is currently loading the source.
    - + boolean isPlaying()
    Returns whether the player is playing, i.e.
    - + boolean isPlayingAd()
    Returns whether the player is currently playing an ad.
    - + void moveMediaItem​(int currentIndex, int newIndex) @@ -737,7 +799,7 @@ implements Moves the media item at the current index to the new index.
    - + void moveMediaItems​(int fromIndex, int toIndex, @@ -746,70 +808,63 @@ implements Moves the media item range to the new index. - + void next()
    Deprecated.
    - + void pause()
    Pauses playback.
    - + void play()
    Resumes playback as soon as Player.getPlaybackState() == Player.STATE_READY.
    - + void prepare()
    Prepares the player.
    - + void previous()
    Deprecated.
    - + void release()
    Releases the player.
    - -void -removeListener​(Player.EventListener listener) - -
    Deprecated.
    - - - + void removeListener​(Player.Listener listener)
    Unregister a listener registered through Player.addListener(Listener).
    - + void removeMediaItem​(int index)
    Removes the media item at the given index of the playlist.
    - + void removeMediaItems​(int fromIndex, int toIndex) @@ -817,94 +872,109 @@ implements Removes a range of media items from the playlist. - + void seekBack() -
    Seeks back in the current window by Player.getSeekBackIncrement() milliseconds.
    - - - -void -seekForward() - -
    Seeks forward in the current window by Player.getSeekForwardIncrement() milliseconds.
    - - - -void -seekTo​(int windowIndex, - long positionMs) - -
    Seeks to a position specified in milliseconds in the specified window.
    - - - -void -seekTo​(long positionMs) - -
    Seeks to a position specified in milliseconds in the current window.
    - - - -void -seekToDefaultPosition() - -
    Seeks to the default position associated with the current window.
    - - - -void -seekToDefaultPosition​(int windowIndex) - -
    Seeks to the default position associated with the specified window.
    - - - -void -seekToNext() - -
    Seeks to a later position in the current or next window (if available).
    - - - -void -seekToNextWindow() - -
    Seeks to the default position of the next window, which may depend on the current repeat mode - and whether shuffle mode is enabled.
    - - - -void -seekToPrevious() - -
    Seeks to an earlier position in the current or previous window (if available).
    +
    Seeks back in the current MediaItem by Player.getSeekBackIncrement() milliseconds.
    void -seekToPreviousWindow() +seekForward() -
    Seeks to the default position of the previous window, which may depend on the current repeat - mode and whether shuffle mode is enabled.
    +
    Seeks forward in the current MediaItem by Player.getSeekForwardIncrement() + milliseconds.
    void +seekTo​(int mediaItemIndex, + long positionMs) + +
    Seeks to a position specified in milliseconds in the specified MediaItem.
    + + + +void +seekTo​(long positionMs) + +
    Seeks to a position specified in milliseconds in the current MediaItem.
    + + + +void +seekToDefaultPosition() + +
    Seeks to the default position associated with the current MediaItem.
    + + + +void +seekToDefaultPosition​(int mediaItemIndex) + +
    Seeks to the default position associated with the specified MediaItem.
    + + + +void +seekToNext() + +
    Seeks to a later position in the current or next MediaItem (if available).
    + + + +void +seekToNextMediaItem() + +
    Seeks to the default position of the next MediaItem, which may depend on the current + repeat mode and whether shuffle mode is enabled.
    + + + +void +seekToNextWindow() + +
    Deprecated.
    + + + +void +seekToPrevious() + +
    Seeks to an earlier position in the current or previous MediaItem (if available).
    + + + +void +seekToPreviousMediaItem() + +
    Seeks to the default position of the previous MediaItem, which may depend on the + current repeat mode and whether shuffle mode is enabled.
    + + + +void +seekToPreviousWindow() + +
    Deprecated.
    + + + +void setDeviceMuted​(boolean muted)
    Sets the mute state of the device.
    - + void setDeviceVolume​(int volume)
    Sets the volume of the device.
    - + void setMediaItem​(MediaItem mediaItem) @@ -912,7 +982,7 @@ implements + void setMediaItem​(MediaItem mediaItem, boolean resetPosition) @@ -920,7 +990,7 @@ implements Clears the playlist and adds the specified MediaItem. - + void setMediaItem​(MediaItem mediaItem, long startPositionMs) @@ -928,7 +998,7 @@ implements Clears the playlist and adds the specified MediaItem. - + void setMediaItems​(List<MediaItem> mediaItems) @@ -936,7 +1006,7 @@ implements + void setMediaItems​(List<MediaItem> mediaItems, boolean resetPosition) @@ -944,65 +1014,72 @@ implements Clears the playlist and adds the specified MediaItems. - + void setMediaItems​(List<MediaItem> mediaItems, - int startWindowIndex, + int startIndex, long startPositionMs)
    Clears the playlist and adds the specified MediaItems.
    - + void setPlaybackParameters​(PlaybackParameters playbackParameters)
    Attempts to set the playback parameters.
    - + void setPlaybackSpeed​(float speed)
    Changes the rate at which playback occurs.
    - + void setPlaylistMetadata​(MediaMetadata mediaMetadata)
    Sets the playlist MediaMetadata.
    - + void setPlayWhenReady​(boolean playWhenReady)
    Sets whether playback should proceed when Player.getPlaybackState() == Player.STATE_READY.
    - + void -setRepeatMode​(int repeatMode) +setRepeatMode​(@com.google.android.exoplayer2.Player.RepeatMode int repeatMode)
    Sets the Player.RepeatMode to be used for playback.
    - + void setShuffleModeEnabled​(boolean shuffleModeEnabled) -
    Sets whether shuffling of windows is enabled.
    +
    Sets whether shuffling of media items is enabled.
    - + +void +setTrackSelectionParameters​(TrackSelectionParameters parameters) + +
    Sets the parameters constraining the track selection.
    + + + void setVideoSurface​(Surface surface)
    Sets the Surface onto which video will be rendered.
    - + void setVideoSurfaceHolder​(SurfaceHolder surfaceHolder) @@ -1010,35 +1087,36 @@ implements + void setVideoSurfaceView​(SurfaceView surfaceView)
    Sets the SurfaceView onto which video will be rendered.
    - + void setVideoTextureView​(TextureView textureView)
    Sets the TextureView onto which video will be rendered.
    - + void -setVolume​(float audioVolume) +setVolume​(float volume) -
    Sets the audio volume, with 0 being silence and 1 being unity gain (signal unchanged).
    +
    Sets the audio volume, valid values are between 0 (silence) and 1 (unity gain, signal + unchanged), inclusive.
    - + void stop()
    Stops playback without resetting the player.
    - + void stop​(boolean reset) @@ -1095,7 +1173,9 @@ implements
  • getApplicationLooper

    -
    public Looper getApplicationLooper()
    +
    @Deprecated
    +public Looper getApplicationLooper()
    +
    Deprecated.
    Description copied from interface: Player
    Returns the Looper associated with the application thread that's used to access the player and on which player events are received.
    @@ -1105,42 +1185,19 @@ implements - - -
      -
    • -

      addListener

      -
      @Deprecated
      -public void addListener​(Player.EventListener listener)
      -
      Deprecated.
      -
      Description copied from interface: Player
      -
      Registers a listener to receive events from the player. - -

      The listener's methods will be called on the thread that was used to construct the player. - However, if the thread used to construct the player does not have a Looper, then the - listener will be called on the main thread.

      -
      -
      Specified by:
      -
      addListener in interface Player
      -
      Parameters:
      -
      listener - The listener to register.
      -
      -
    • -
    • addListener

      -
      public void addListener​(Player.Listener listener)
      +
      @Deprecated
      +public void addListener​(Player.Listener listener)
      +
      Deprecated.
      Description copied from interface: Player
      Registers a listener to receive all events from the player. -

      The listener's methods will be called on the thread that was used to construct the player. - However, if the thread used to construct the player does not have a Looper, then the - listener will be called on the main thread.

      +

      The listener's methods will be called on the thread associated with Player.getApplicationLooper().

      Specified by:
      addListener in interface Player
      @@ -1149,26 +1206,6 @@ public void addListener​(
    - - - - @@ -1222,7 +1259,7 @@ public void removeListener​(mediaItems - The new MediaItems.
    resetPosition - Whether the playback position should be reset to the default position in the first Timeline.Window. If false, playback will start from the position defined - by Player.getCurrentWindowIndex() and Player.getCurrentPosition().
    + by Player.getCurrentMediaItemIndex() and Player.getCurrentPosition().
  • @@ -1233,7 +1270,7 @@ public void removeListener​(

    setMediaItems

    public void setMediaItems​(List<MediaItem> mediaItems,
    -                          int startWindowIndex,
    +                          int startIndex,
                               long startPositionMs)
    Description copied from interface: Player
    Clears the playlist and adds the specified MediaItems.
    @@ -1242,11 +1279,11 @@ public void removeListener​(setMediaItems in interface Player
    Parameters:
    mediaItems - The new MediaItems.
    -
    startWindowIndex - The window index to start playback from. If C.INDEX_UNSET is - passed, the current position is not reset.
    -
    startPositionMs - The position in milliseconds to start playback from. If C.TIME_UNSET is passed, the default position of the given window is used. In any case, if - startWindowIndex is set to C.INDEX_UNSET, this parameter is ignored and the - position is not reset at all.
    +
    startIndex - The MediaItem index to start playback from. If C.INDEX_UNSET + is passed, the current position is not reset.
    +
    startPositionMs - The position in milliseconds to start playback from. If C.TIME_UNSET is passed, the default position of the given MediaItem is used. In + any case, if startIndex is set to C.INDEX_UNSET, this parameter is ignored + and the position is not reset at all.
    @@ -1303,7 +1340,7 @@ public void removeListener​(Parameters:
    mediaItem - The new MediaItem.
    resetPosition - Whether the playback position should be reset to the default position. If - false, playback will start from the position defined by Player.getCurrentWindowIndex() + false, playback will start from the position defined by Player.getCurrentMediaItemIndex() and Player.getCurrentPosition().
    @@ -1477,28 +1514,27 @@ public void removeListener​( - + + + + +
      +
    • +

      canAdvertiseSession

      +
      public boolean canAdvertiseSession()
      +
      Description copied from interface: Player
      +
      Returns whether the player can be used to advertise a media session.
      +
      +
      Specified by:
      +
      canAdvertiseSession in interface Player
      +
      +
    • +
    @@ -1521,12 +1572,11 @@ public void removeListener​(The returned Player.Commands are not updated when available commands change. Use Player.Listener.onAvailableCommandsChanged(Commands) to get an update when the available commands change. -

    Executing a command that is not available (for example, calling Player.seekToNextWindow() - if Player.COMMAND_SEEK_TO_NEXT_WINDOW is unavailable) will neither throw an exception nor - generate a Player.getPlayerError() player error}. +

    Executing a command that is not available (for example, calling Player.seekToNextMediaItem() if Player.COMMAND_SEEK_TO_NEXT_MEDIA_ITEM is unavailable) will + neither throw an exception nor generate a Player.getPlayerError() player error}. -

    Player.COMMAND_SEEK_TO_PREVIOUS_WINDOW and Player.COMMAND_SEEK_TO_NEXT_WINDOW are - unavailable if there is no such MediaItem. +

    Player.COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM and Player.COMMAND_SEEK_TO_NEXT_MEDIA_ITEM + are unavailable if there is no such MediaItem.

    Specified by:
    getAvailableCommands in interface Player
    @@ -1567,7 +1617,7 @@ public void removeListener​(Returns:
    The current playback state.
    See Also:
    -
    Player.Listener.onPlaybackStateChanged(int)
    +
    Player.Listener.onPlaybackStateChanged(int)
    @@ -1587,7 +1637,7 @@ public void removeListener​(Returns:
    The current playback suppression reason.
    See Also:
    -
    Player.Listener.onPlaybackSuppressionReasonChanged(int)
    +
    Player.Listener.onPlaybackSuppressionReasonChanged(int)
    @@ -1708,23 +1758,23 @@ public Returns:
    Whether playback will proceed when ready.
    See Also:
    -
    Player.Listener.onPlayWhenReadyChanged(boolean, int)
    +
    Player.Listener.onPlayWhenReadyChanged(boolean, int)
    - + @@ -1757,7 +1807,7 @@ public public void setShuffleModeEnabled​(boolean shuffleModeEnabled) -
    Sets whether shuffling of windows is enabled.
    +
    Sets whether shuffling of media items is enabled.
    Specified by:
    setShuffleModeEnabled in interface Player
    @@ -1774,7 +1824,7 @@ public public boolean getShuffleModeEnabled() -
    Returns whether shuffling of windows is enabled.
    +
    Returns whether shuffling of media items is enabled.
    Specified by:
    getShuffleModeEnabled in interface Player
    @@ -1810,9 +1860,9 @@ public public void seekToDefaultPosition() -
    Seeks to the default position associated with the current window. The position can depend on - the type of media being played. For live streams it will typically be the live edge of the - window. For other streams it will typically be the start of the window.
    +
    Seeks to the default position associated with the current MediaItem. The position can + depend on the type of media being played. For live streams it will typically be the live edge. + For other streams it will typically be the start.
    Specified by:
    seekToDefaultPosition in interface Player
    @@ -1825,17 +1875,17 @@ public 
  • seekToDefaultPosition

    -
    public void seekToDefaultPosition​(int windowIndex)
    +
    public void seekToDefaultPosition​(int mediaItemIndex)
    -
    Seeks to the default position associated with the specified window. The position can depend on - the type of media being played. For live streams it will typically be the live edge of the - window. For other streams it will typically be the start of the window.
    +
    Seeks to the default position associated with the specified MediaItem. The position can + depend on the type of media being played. For live streams it will typically be the live edge. + For other streams it will typically be the start.
    Specified by:
    seekToDefaultPosition in interface Player
    Parameters:
    -
    windowIndex - The index of the window whose associated default position should be seeked - to.
    +
    mediaItemIndex - The index of the MediaItem whose associated default position + should be seeked to.
  • @@ -1847,13 +1897,13 @@ public public void seekTo​(long positionMs) -
    Seeks to a position specified in milliseconds in the current window.
    +
    Seeks to a position specified in milliseconds in the current MediaItem.
    Specified by:
    seekTo in interface Player
    Parameters:
    -
    positionMs - The seek position in the current window, or C.TIME_UNSET to seek to - the window's default position.
    +
    positionMs - The seek position in the current MediaItem, or C.TIME_UNSET + to seek to the media item's default position.
    @@ -1863,17 +1913,17 @@ public 
  • seekTo

    -
    public void seekTo​(int windowIndex,
    +
    public void seekTo​(int mediaItemIndex,
                        long positionMs)
    -
    Seeks to a position specified in milliseconds in the specified window.
    +
    Seeks to a position specified in milliseconds in the specified MediaItem.
    Specified by:
    seekTo in interface Player
    Parameters:
    -
    windowIndex - The index of the window.
    -
    positionMs - The seek position in the specified window, or C.TIME_UNSET to seek to - the window's default position.
    +
    mediaItemIndex - The index of the MediaItem.
    +
    positionMs - The seek position in the specified MediaItem, or C.TIME_UNSET + to seek to the media item's default position.
  • @@ -1904,7 +1954,7 @@ public public void seekBack() -
    Seeks back in the current window by Player.getSeekBackIncrement() milliseconds.
    +
    Seeks back in the current MediaItem by Player.getSeekBackIncrement() milliseconds.
    Specified by:
    seekBack in interface Player
    @@ -1938,7 +1988,8 @@ public public void seekForward() -
    Seeks forward in the current window by Player.getSeekForwardIncrement() milliseconds.
    +
    Seeks forward in the current MediaItem by Player.getSeekForwardIncrement() + milliseconds.
    Specified by:
    seekForward in interface Player
    @@ -1966,9 +2017,24 @@ public boolean hasPrevious()
    • hasPreviousWindow

      -
      public boolean hasPreviousWindow()
      -
      Description copied from interface: Player
      -
      Returns whether a previous window exists, which may depend on the current repeat mode and +
      @Deprecated
      +public boolean hasPreviousWindow()
      +
      Deprecated.
      +
      +
      Specified by:
      +
      hasPreviousWindow in interface Player
      +
      +
    • +
    + + + +
      +
    • +

      hasPreviousMediaItem

      +
      public boolean hasPreviousMediaItem()
      +
      Description copied from interface: Player
      +
      Returns whether a previous media item exists, which may depend on the current repeat mode and whether shuffle mode is enabled.

      Note: When the repeat mode is Player.REPEAT_MODE_ONE, this method behaves the same as when @@ -1976,7 +2042,7 @@ public boolean hasPrevious() details.

      Specified by:
      -
      hasPreviousWindow in interface Player
      +
      hasPreviousMediaItem in interface Player
    @@ -2001,18 +2067,32 @@ public void previous()
    • seekToPreviousWindow

      -
      public void seekToPreviousWindow()
      -
      Description copied from interface: Player
      -
      Seeks to the default position of the previous window, which may depend on the current repeat - mode and whether shuffle mode is enabled. Does nothing if Player.hasPreviousWindow() is - false. +
      @Deprecated
      +public void seekToPreviousWindow()
      +
      Deprecated.
      +
      +
      Specified by:
      +
      seekToPreviousWindow in interface Player
      +
      +
    • +
    + + + + @@ -2024,18 +2104,20 @@ public void previous()

    seekToPrevious

    public void seekToPrevious()
    Description copied from interface: Player
    -
    Seeks to an earlier position in the current or previous window (if available). More precisely: +
    Seeks to an earlier position in the current or previous MediaItem (if available). More + precisely:
    Specified by:
    @@ -2049,17 +2131,16 @@ public void previous() @@ -2084,17 +2165,32 @@ public boolean hasNext()
    • hasNextWindow

      -
      public boolean hasNextWindow()
      -
      Description copied from interface: Player
      -
      Returns whether a next window exists, which may depend on the current repeat mode and whether - shuffle mode is enabled. +
      @Deprecated
      +public boolean hasNextWindow()
      +
      Deprecated.
      +
      +
      Specified by:
      +
      hasNextWindow in interface Player
      +
      +
    • +
    + + + + @@ -2119,17 +2215,33 @@ public void next()
    • seekToNextWindow

      -
      public void seekToNextWindow()
      -
      Description copied from interface: Player
      -
      Seeks to the default position of the next window, which may depend on the current repeat mode - and whether shuffle mode is enabled. Does nothing if Player.hasNextWindow() is false. +
      @Deprecated
      +public void seekToNextWindow()
      +
      Deprecated.
      +
      +
      Specified by:
      +
      seekToNextWindow in interface Player
      +
      +
    • +
    + + + + @@ -2141,14 +2253,15 @@ public void next()

    seekToNext

    public void seekToNext()
    Description copied from interface: Player
    -
    Seeks to a later position in the current or next window (if available). More precisely: +
    Seeks to a later position in the current or next MediaItem (if available). More + precisely:
    • If the timeline is empty or seeking is not possible, does nothing. -
    • Otherwise, if a next window exists, seeks to the default - position of the next window. -
    • Otherwise, if the current window is live and has not - ended, seeks to the live edge of the current window. +
    • Otherwise, if a next media item exists, seeks to the default + position of the next MediaItem. +
    • Otherwise, if the current MediaItem is live and + has not ended, seeks to the live edge of the current MediaItem.
    • Otherwise, does nothing.
    @@ -2283,7 +2396,7 @@ public void stop​(boolean reset)
    Specified by:
    getCurrentTrackGroups in interface Player
    See Also:
    -
    Player.Listener.onTracksChanged(TrackGroupArray, TrackSelectionArray)
    +
    Player.EventListener.onTracksChanged(TrackGroupArray, TrackSelectionArray)
    @@ -2304,22 +2417,70 @@ public void stop​(boolean reset)
    Specified by:
    getCurrentTrackSelections in interface Player
    See Also:
    -
    Player.Listener.onTracksChanged(TrackGroupArray, TrackSelectionArray)
    +
    Player.EventListener.onTracksChanged(TrackGroupArray, TrackSelectionArray)
    - + + + + + + + + +
      +
    • +

      setTrackSelectionParameters

      +
      public void setTrackSelectionParameters​(TrackSelectionParameters parameters)
      +
      Description copied from interface: Player
      +
      Sets the parameters constraining the track selection. + +

      Unsupported parameters will be silently ignored. + +

      Use Player.getTrackSelectionParameters() to retrieve the current parameters. For example, + the following snippet restricts video to SD whilst keep other track selection parameters + unchanged: + +

      
      + player.setTrackSelectionParameters(
      +   player.getTrackSelectionParameters()
      +         .buildUpon()
      +         .setMaxVideoSizeSd()
      +         .build())
      + 
      +
      +
      Specified by:
      +
      setTrackSelectionParameters in interface Player
    @@ -2336,7 +2497,8 @@ public MediaMetadata is a combination of the MediaItem.mediaMetadata and the static and dynamic metadata from the track selections' - formats and MetadataOutput.onMetadata(Metadata).
    + formats
    and Player.Listener.onMetadata(Metadata). If a field is populated in the MediaItem.mediaMetadata, it will be prioritised above the same field coming from static or + dynamic metadata.
    Specified by:
    getMediaMetadata in interface Player
    @@ -2402,7 +2564,7 @@ public Specified by:
    getCurrentTimeline in interface Player
    See Also:
    -
    Player.Listener.onTimelineChanged(Timeline, int)
    +
    Player.Listener.onTimelineChanged(Timeline, int)
    @@ -2427,32 +2589,64 @@ public 
  • getCurrentWindowIndex

    -
    public int getCurrentWindowIndex()
    -
    -
    Returns the index of the current window in the timeline, or the prospective window index if the current timeline is empty.
    +
    @Deprecated
    +public int getCurrentWindowIndex()
    +
    Deprecated.
    Specified by:
    getCurrentWindowIndex in interface Player
  • + + + + + + + + @@ -2462,18 +2656,33 @@ public 
  • getPreviousWindowIndex

    -
    public int getPreviousWindowIndex()
    -
    -
    Returns the index of the window that will be played if Player.seekToPreviousWindow() is - called, which may depend on the current repeat mode and whether shuffle mode is enabled. - Returns C.INDEX_UNSET if Player.hasPreviousWindow() is false. +
    @Deprecated
    +public int getPreviousWindowIndex()
    +
    Deprecated.
    +
    +
    Specified by:
    +
    getPreviousWindowIndex in interface Player
    +
    +
  • + + + + + @@ -2486,13 +2695,12 @@ public @Nullable public MediaItem getCurrentMediaItem()
    Description copied from interface: Player
    -
    Returns the media item of the current window in the timeline. May be null if the timeline is - empty.
    +
    Returns the currently playing MediaItem. May be null if the timeline is empty.
    Specified by:
    getCurrentMediaItem in interface Player
    See Also:
    -
    Player.Listener.onMediaItemTransition(MediaItem, int)
    +
    Player.Listener.onMediaItemTransition(MediaItem, int)
    @@ -2534,7 +2742,8 @@ public public long getDuration() -
    Returns the duration of the current content window or ad in milliseconds, or C.TIME_UNSET if the duration is not known.
    +
    Returns the duration of the current content or ad in milliseconds, or C.TIME_UNSET if + the duration is not known.
    Specified by:
    getDuration in interface Player
    @@ -2549,9 +2758,8 @@ public public long getCurrentPosition() -
    Returns the playback position in the current content window or ad, in milliseconds, or the - prospective position in milliseconds if the current timeline is - empty.
    +
    Returns the playback position in the current content or ad, in milliseconds, or the prospective + position in milliseconds if the current timeline is empty.
    Specified by:
    getCurrentPosition in interface Player
    @@ -2566,8 +2774,8 @@ public public long getBufferedPosition() -
    Returns an estimate of the position in the current content window or ad up to which data is - buffered, in milliseconds.
    +
    Returns an estimate of the position in the current content or ad up to which data is buffered, + in milliseconds.
    Specified by:
    getBufferedPosition in interface Player
    @@ -2582,7 +2790,7 @@ public public int getBufferedPercentage() -
    Returns an estimate of the percentage in the current content window or ad up to which data is +
    Returns an estimate of the percentage in the current content or ad up to which data is buffered, or 0 if no estimate is available.
    Specified by:
    @@ -2599,7 +2807,7 @@ public public long getTotalBufferedDuration()
    Returns an estimate of the total buffered duration from the current position, in milliseconds. - This includes pre-buffered data for subsequent ads and windows.
    + This includes pre-buffered data for subsequent ads and media items.
    Specified by:
    getTotalBufferedDuration in interface Player
    @@ -2612,13 +2820,28 @@ public 
  • isCurrentWindowDynamic

    -
    public boolean isCurrentWindowDynamic()
    -
    -
    Returns whether the current window is dynamic, or false if the Timeline is - empty.
    +
    @Deprecated
    +public boolean isCurrentWindowDynamic()
    +
    Deprecated.
    Specified by:
    isCurrentWindowDynamic in interface Player
    +
    +
  • + + + + + + + + + + + + + @@ -3052,7 +3306,7 @@ public 
  • getDeviceInfo

    -
    public DeviceInfo getDeviceInfo()
    +
    public DeviceInfo getDeviceInfo()
    Description copied from interface: Player
    Gets the device information.
    @@ -3071,12 +3325,12 @@ public Description copied from interface: Player
    Gets the current volume of the device. -

    For devices with local playback, the volume returned +

    For devices with local playback, the volume returned by this method varies according to the current stream type. The stream type is determined by AudioAttributes.usage which can be converted to stream type with - Util.getStreamTypeForAudioUsage(int). + Util.getStreamTypeForAudioUsage(int). -

    For devices with remote playback, the volume of the +

    For devices with remote playback, the volume of the remote device is returned.

    Specified by:
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/upstream/cache/CacheDataSinkFactory.html b/docs/doc/reference/com/google/android/exoplayer2/MediaItem.AdsConfiguration.Builder.html similarity index 60% rename from docs/doc/reference/com/google/android/exoplayer2/upstream/cache/CacheDataSinkFactory.html rename to docs/doc/reference/com/google/android/exoplayer2/MediaItem.AdsConfiguration.Builder.html index 13079461d9..d71987cbca 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/upstream/cache/CacheDataSinkFactory.html +++ b/docs/doc/reference/com/google/android/exoplayer2/MediaItem.AdsConfiguration.Builder.html @@ -2,36 +2,36 @@ -CacheDataSinkFactory (ExoPlayer library) +MediaItem.AdsConfiguration.Builder (ExoPlayer library) - - - - - + + + + + - - + +
  • @@ -255,6 +291,16 @@ public final  + + + @@ -333,7 +379,7 @@ public final 
  • Summary: 
  • -
  • Nested | 
  • +
  • Nested | 
  • Field | 
  • Constr | 
  • Method
  • diff --git a/docs/doc/reference/com/google/android/exoplayer2/MediaItem.Builder.html b/docs/doc/reference/com/google/android/exoplayer2/MediaItem.Builder.html index 7a637f2164..2cc26876fd 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/MediaItem.Builder.html +++ b/docs/doc/reference/com/google/android/exoplayer2/MediaItem.Builder.html @@ -25,8 +25,8 @@ catch(err) { } //--> -var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10}; -var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; +var data = {"i0":10,"i1":10,"i2":42,"i3":42,"i4":42,"i5":42,"i6":10,"i7":42,"i8":42,"i9":42,"i10":42,"i11":10,"i12":10,"i13":42,"i14":42,"i15":42,"i16":42,"i17":42,"i18":42,"i19":42,"i20":42,"i21":42,"i22":42,"i23":10,"i24":42,"i25":42,"i26":42,"i27":42,"i28":42,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":42,"i35":10,"i36":10,"i37":10}; +var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; var tableTab = "tableTab"; @@ -173,7 +173,7 @@ extends

    Method Summary

    - + @@ -188,203 +188,273 @@ extends - + - + - + - + - + - + - + - + + + + + + + + + + + - - - - - - - - - - - + - + - + - + - + - + - + - + - + - + - + - + - + + + + + + + + + + + + + + + + + + + + + - + - + - + - + - + - + + + + + + - + - + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - +
    Deprecated.
    All Methods Instance Methods Concrete Methods All Methods Instance Methods Concrete Methods Deprecated Methods 
    Modifier and Type Method
    MediaItem.BuildersetAdTagUri​(Uri adTagUri)setAdsConfiguration​(MediaItem.AdsConfiguration adsConfiguration) -
    Sets the optional ad tag Uri.
    +
    Sets the optional MediaItem.AdsConfiguration.
    MediaItem.BuildersetAdTagUri​(Uri adTagUri, - Object adsId)setAdTagUri​(Uri adTagUri) -
    Sets the optional ad tag Uri and ads identifier.
    +
    Deprecated. +
    Use setAdsConfiguration(AdsConfiguration) and pass the adTagUri + to Builder(Uri) instead.
    +
    MediaItem.BuildersetAdTagUri​(String adTagUri)setAdTagUri​(Uri adTagUri, + Object adsId) -
    Sets the optional ad tag Uri.
    +
    Deprecated. + +
    MediaItem.BuildersetClipEndPositionMs​(long endPositionMs)setAdTagUri​(String adTagUri) -
    Sets the optional end position in milliseconds which must be a value larger than or equal to - zero, or C.TIME_END_OF_SOURCE to end when playback reaches the end of media (Default: - C.TIME_END_OF_SOURCE).
    +
    Deprecated. +
    Use setAdsConfiguration(AdsConfiguration), parse the adTagUri + with Uri.parse(String) and pass the result to Builder(Uri) instead.
    +
    MediaItem.BuildersetClipRelativeToDefaultPosition​(boolean relativeToDefaultPosition)setClipEndPositionMs​(long endPositionMs) -
    Sets whether the start position and the end position are relative to the default position in - the window (Default: false).
    +
    MediaItem.BuildersetClipRelativeToLiveWindow​(boolean relativeToLiveWindow)setClippingConfiguration​(MediaItem.ClippingConfiguration clippingConfiguration) -
    Sets whether the start/end positions should move with the live window for live streams.
    +
    MediaItem.BuildersetClipStartPositionMs​(long startPositionMs)setClipRelativeToDefaultPosition​(boolean relativeToDefaultPosition) -
    Sets the optional start position in milliseconds which must be a value larger than or equal - to zero (Default: 0).
    +
    MediaItem.BuildersetClipStartsAtKeyFrame​(boolean startsAtKeyFrame)setClipRelativeToLiveWindow​(boolean relativeToLiveWindow) -
    Sets whether the start point is guaranteed to be a key frame.
    +
    MediaItem.BuildersetClipStartPositionMs​(long startPositionMs) + +
    MediaItem.BuildersetClipStartsAtKeyFrame​(boolean startsAtKeyFrame) + +
    MediaItem.Builder setCustomCacheKey​(String customCacheKey)
    Sets the optional custom cache key (only used for progressive streams).
    MediaItem.BuildersetDrmForceDefaultLicenseUri​(boolean forceDefaultLicenseUri) -
    Sets whether to force use the default DRM license server URI even if the media specifies its - own DRM license server URI.
    -
    MediaItem.BuildersetDrmKeySetId​(byte[] keySetId) -
    Sets the key set ID of the offline license.
    -
    MediaItem.BuildersetDrmLicenseRequestHeaders​(Map<String,​String> licenseRequestHeaders)setDrmConfiguration​(MediaItem.DrmConfiguration drmConfiguration) -
    Sets the optional request headers attached to the DRM license request.
    +
    Sets the optional DRM configuration.
    MediaItem.BuildersetDrmLicenseUri​(Uri licenseUri)setDrmForceDefaultLicenseUri​(boolean forceDefaultLicenseUri) -
    Sets the optional default DRM license server URI.
    +
    MediaItem.BuildersetDrmLicenseUri​(String licenseUri)setDrmKeySetId​(byte[] keySetId) -
    Sets the optional default DRM license server URI.
    +
    MediaItem.BuildersetDrmMultiSession​(boolean multiSession)setDrmLicenseRequestHeaders​(Map<String,​String> licenseRequestHeaders) -
    Sets whether the DRM configuration is multi session enabled.
    +
    MediaItem.BuildersetDrmPlayClearContentWithoutKey​(boolean playClearContentWithoutKey)setDrmLicenseUri​(Uri licenseUri) -
    Sets whether clear samples within protected content should be played when keys for the - encrypted part of the content have yet to be loaded.
    +
    MediaItem.BuildersetDrmSessionForClearPeriods​(boolean sessionForClearPeriods)setDrmLicenseUri​(String licenseUri) -
    Sets whether a DRM session should be used for clear tracks of type C.TRACK_TYPE_VIDEO - and C.TRACK_TYPE_AUDIO.
    +
    MediaItem.BuildersetDrmSessionForClearTypes​(List<Integer> sessionForClearTypes)setDrmMultiSession​(boolean multiSession) -
    Sets a list of C.TRACK_TYPE_* constants for which to use a DRM session even - when the tracks are in the clear.
    +
    MediaItem.BuildersetDrmUuid​(UUID uuid)setDrmPlayClearContentWithoutKey​(boolean playClearContentWithoutKey) -
    Sets the UUID of the protection scheme.
    +
    MediaItem.BuildersetLiveMaxOffsetMs​(long liveMaxOffsetMs)setDrmSessionForClearPeriods​(boolean sessionForClearPeriods) -
    Sets the optional maximum offset from the live edge for live streams, in milliseconds.
    +
    MediaItem.BuildersetLiveMaxPlaybackSpeed​(float maxPlaybackSpeed)setDrmSessionForClearTypes​(List<@TrackType Integer> sessionForClearTypes) -
    Sets the optional maximum playback speed for live stream speed adjustment.
    +
    MediaItem.BuildersetLiveMinOffsetMs​(long liveMinOffsetMs)setDrmUuid​(UUID uuid) -
    Sets the optional minimum offset from the live edge for live streams, in milliseconds.
    +
    Deprecated. +
    Use setDrmConfiguration(DrmConfiguration) and pass the uuid to + Builder(UUID) instead.
    +
    MediaItem.BuildersetLiveMinPlaybackSpeed​(float minPlaybackSpeed)setLiveConfiguration​(MediaItem.LiveConfiguration liveConfiguration) -
    Sets the optional minimum playback speed for live stream speed adjustment.
    +
    MediaItem.BuildersetLiveTargetOffsetMs​(long liveTargetOffsetMs)setLiveMaxOffsetMs​(long liveMaxOffsetMs) -
    Sets the optional target offset from the live edge for live streams, in milliseconds.
    +
    MediaItem.BuildersetLiveMaxPlaybackSpeed​(float maxPlaybackSpeed) + +
    MediaItem.BuildersetLiveMinOffsetMs​(long liveMinOffsetMs) + +
    MediaItem.BuildersetLiveMinPlaybackSpeed​(float minPlaybackSpeed) + +
    MediaItem.BuildersetLiveTargetOffsetMs​(long liveTargetOffsetMs) + +
    MediaItem.Builder setMediaId​(String mediaId)
    Sets the optional media ID which identifies the media item.
    MediaItem.Builder setMediaMetadata​(MediaMetadata mediaMetadata)
    Sets the media metadata.
    MediaItem.Builder setMimeType​(String mimeType)
    Sets the optional MIME type.
    MediaItem.Builder setStreamKeys​(List<StreamKey> streamKeys) @@ -392,28 +462,37 @@ extends
    MediaItem.BuildersetSubtitles​(List<MediaItem.Subtitle> subtitles)setSubtitleConfigurations​(List<MediaItem.SubtitleConfiguration> subtitleConfigurations)
    Sets the optional subtitles.
    MediaItem.BuildersetSubtitles​(List<MediaItem.Subtitle> subtitles) +
    Deprecated. + +
    +
    MediaItem.Builder setTag​(Object tag)
    Sets the optional tag for custom attributes.
    MediaItem.Builder setUri​(Uri uri)
    Sets the optional URI.
    MediaItem.Builder setUri​(String uri) @@ -486,8 +565,8 @@ extends String uri)
    Sets the optional URI. -

    If uri is null or unset then no MediaItem.PlaybackProperties object is created - during build() and no other Builder methods that would populate MediaItem.playbackProperties should be called.

    +

    If uri is null or unset then no MediaItem.LocalConfiguration object is created + during build() and no other Builder methods that would populate MediaItem.localConfiguration should be called. @@ -500,8 +579,8 @@ extends Uri uri)

    Sets the optional URI. -

    If uri is null or unset then no MediaItem.PlaybackProperties object is created - during build() and no other Builder methods that would populate MediaItem.playbackProperties should be called.

    +

    If uri is null or unset then no MediaItem.LocalConfiguration object is created + during build() and no other Builder methods that would populate MediaItem.localConfiguration should be called. @@ -523,15 +602,28 @@ extends + + + +

    @@ -540,10 +632,11 @@ extends
  • setClipEndPositionMs

    -
    public MediaItem.Builder setClipEndPositionMs​(long endPositionMs)
    -
    Sets the optional end position in milliseconds which must be a value larger than or equal to - zero, or C.TIME_END_OF_SOURCE to end when playback reaches the end of media (Default: - C.TIME_END_OF_SOURCE).
    +
    @Deprecated
    +public MediaItem.Builder setClipEndPositionMs​(long endPositionMs)
    +
  • @@ -552,10 +645,11 @@ extends
  • setClipRelativeToLiveWindow

    -
    public MediaItem.Builder setClipRelativeToLiveWindow​(boolean relativeToLiveWindow)
    -
    Sets whether the start/end positions should move with the live window for live streams. If - false, live streams end when playback reaches the end position in live window seen - when the media is first loaded (Default: false).
    +
    @Deprecated
    +public MediaItem.Builder setClipRelativeToLiveWindow​(boolean relativeToLiveWindow)
    +
  • @@ -564,9 +658,11 @@ extends
  • setClipRelativeToDefaultPosition

    -
    public MediaItem.Builder setClipRelativeToDefaultPosition​(boolean relativeToDefaultPosition)
    -
    Sets whether the start position and the end position are relative to the default position in - the window (Default: false).
    +
    @Deprecated
    +public MediaItem.Builder setClipRelativeToDefaultPosition​(boolean relativeToDefaultPosition)
    +
  • @@ -575,9 +671,22 @@ extends
  • setClipStartsAtKeyFrame

    -
    public MediaItem.Builder setClipStartsAtKeyFrame​(boolean startsAtKeyFrame)
    -
    Sets whether the start point is guaranteed to be a key frame. If false, the playback - transition into the clip may not be seamless (Default: false).
    +
    @Deprecated
    +public MediaItem.Builder setClipStartsAtKeyFrame​(boolean startsAtKeyFrame)
    + +
  • + + + + + @@ -586,12 +695,12 @@ extends
  • setDrmLicenseUri

    -
    public MediaItem.Builder setDrmLicenseUri​(@Nullable
    +
    @Deprecated
    +public MediaItem.Builder setDrmLicenseUri​(@Nullable
                                               Uri licenseUri)
    -
    Sets the optional default DRM license server URI. If this URI is set, the MediaItem.DrmConfiguration.uuid needs to be specified as well. - -

    This method should only be called if both setUri(java.lang.String) and setDrmUuid(UUID) - are passed non-null values.

    +
  • @@ -600,12 +709,12 @@ extends
  • setDrmLicenseUri

    -
    public MediaItem.Builder setDrmLicenseUri​(@Nullable
    +
    @Deprecated
    +public MediaItem.Builder setDrmLicenseUri​(@Nullable
                                               String licenseUri)
    -
    Sets the optional default DRM license server URI. If this URI is set, the MediaItem.DrmConfiguration.uuid needs to be specified as well. - -

    This method should only be called if both setUri(java.lang.String) and setDrmUuid(UUID) - are passed non-null values.

    +
  • @@ -614,14 +723,13 @@ extends
  • setDrmLicenseRequestHeaders

    -
    public MediaItem.Builder setDrmLicenseRequestHeaders​(@Nullable
    +
    @Deprecated
    +public MediaItem.Builder setDrmLicenseRequestHeaders​(@Nullable
                                                          Map<String,​String> licenseRequestHeaders)
    -
    Sets the optional request headers attached to the DRM license request. - -

    null or an empty Map can be used for a reset. - -

    This method should only be called if both setUri(java.lang.String) and setDrmUuid(UUID) - are passed non-null values.

    +
  • @@ -630,14 +738,13 @@ extends
  • setDrmUuid

    -
    public MediaItem.Builder setDrmUuid​(@Nullable
    +
    @Deprecated
    +public MediaItem.Builder setDrmUuid​(@Nullable
                                         UUID uuid)
    -
    Sets the UUID of the protection scheme. - -

    If uuid is null or unset then no MediaItem.DrmConfiguration object is created during - build() and no other Builder methods that would populate MediaItem.PlaybackProperties.drmConfiguration should be called. - -

    This method should only be called if setUri(java.lang.String) is passed a non-null value.

    +
    Deprecated. +
    Use setDrmConfiguration(DrmConfiguration) and pass the uuid to + Builder(UUID) instead.
    +
  • @@ -646,11 +753,11 @@ extends
  • setDrmMultiSession

    -
    public MediaItem.Builder setDrmMultiSession​(boolean multiSession)
    -
    Sets whether the DRM configuration is multi session enabled. - -

    This method should only be called if both setUri(java.lang.String) and setDrmUuid(UUID) - are passed non-null values.

    +
    @Deprecated
    +public MediaItem.Builder setDrmMultiSession​(boolean multiSession)
    +
  • @@ -659,12 +766,11 @@ extends
  • setDrmForceDefaultLicenseUri

    -
    public MediaItem.Builder setDrmForceDefaultLicenseUri​(boolean forceDefaultLicenseUri)
    -
    Sets whether to force use the default DRM license server URI even if the media specifies its - own DRM license server URI. - -

    This method should only be called if both setUri(java.lang.String) and setDrmUuid(UUID) - are passed non-null values.

    +
    @Deprecated
    +public MediaItem.Builder setDrmForceDefaultLicenseUri​(boolean forceDefaultLicenseUri)
    +
  • @@ -673,12 +779,11 @@ extends
  • setDrmPlayClearContentWithoutKey

    -
    public MediaItem.Builder setDrmPlayClearContentWithoutKey​(boolean playClearContentWithoutKey)
    -
    Sets whether clear samples within protected content should be played when keys for the - encrypted part of the content have yet to be loaded. - -

    This method should only be called if both setUri(java.lang.String) and setDrmUuid(UUID) - are passed non-null values.

    +
    @Deprecated
    +public MediaItem.Builder setDrmPlayClearContentWithoutKey​(boolean playClearContentWithoutKey)
    +
  • @@ -687,14 +792,11 @@ extends
  • setDrmSessionForClearPeriods

    -
    public MediaItem.Builder setDrmSessionForClearPeriods​(boolean sessionForClearPeriods)
    -
    Sets whether a DRM session should be used for clear tracks of type C.TRACK_TYPE_VIDEO - and C.TRACK_TYPE_AUDIO. - -

    This method overrides what has been set by previously calling setDrmSessionForClearTypes(List). - -

    This method should only be called if both setUri(java.lang.String) and setDrmUuid(UUID) - are passed non-null values.

    +
    @Deprecated
    +public MediaItem.Builder setDrmSessionForClearPeriods​(boolean sessionForClearPeriods)
    +
  • @@ -703,19 +805,13 @@ extends
  • setDrmSessionForClearTypes

    -
    public MediaItem.Builder setDrmSessionForClearTypes​(@Nullable
    -                                                    List<Integer> sessionForClearTypes)
    -
    Sets a list of C.TRACK_TYPE_* constants for which to use a DRM session even - when the tracks are in the clear. - -

    For the common case of using a DRM session for C.TRACK_TYPE_VIDEO and C.TRACK_TYPE_AUDIO the setDrmSessionForClearPeriods(boolean) can be used. - -

    This method overrides what has been set by previously calling setDrmSessionForClearPeriods(boolean). - -

    null or an empty List can be used for a reset. - -

    This method should only be called if both setUri(java.lang.String) and setDrmUuid(UUID) - are passed non-null values.

    +
    @Deprecated
    +public MediaItem.Builder setDrmSessionForClearTypes​(@Nullable
    +                                                    List<@TrackType Integer> sessionForClearTypes)
    +
  • @@ -724,16 +820,12 @@ extends
  • setDrmKeySetId

    -
    public MediaItem.Builder setDrmKeySetId​(@Nullable
    +
    @Deprecated
    +public MediaItem.Builder setDrmKeySetId​(@Nullable
                                             byte[] keySetId)
    -
    Sets the key set ID of the offline license. - -

    The key set ID identifies an offline license. The ID is required to query, renew or - release an existing offline license (see DefaultDrmSessionManager#setMode(int - mode,byte[] offlineLicenseKeySetId)). - -

    This method should only be called if both setUri(java.lang.String) and setDrmUuid(UUID) - are passed non-null values.

    +
  • @@ -750,7 +842,7 @@ extends null or an empty List can be used for a reset.

    If setUri(java.lang.String) is passed a non-null uri, the stream keys are used to create a - MediaItem.PlaybackProperties object. Otherwise they will be ignored. + MediaItem.LocalConfiguration object. Otherwise they will be ignored. @@ -772,11 +864,36 @@ extends

  • setSubtitles

    -
    public MediaItem.Builder setSubtitles​(@Nullable
    +
    @Deprecated
    +public MediaItem.Builder setSubtitles​(@Nullable
                                           List<MediaItem.Subtitle> subtitles)
    +
    Deprecated. +
    Use setSubtitleConfigurations(List) instead. Note that setSubtitleConfigurations(List) doesn't accept null, use an empty list to clear the + contents.
    +
    +
  • + + + + + + + + + @@ -808,19 +919,13 @@ extends
  • setAdTagUri

    -
    public MediaItem.Builder setAdTagUri​(@Nullable
    +
    @Deprecated
    +public MediaItem.Builder setAdTagUri​(@Nullable
                                          Uri adTagUri)
    -
    Sets the optional ad tag Uri. - -

    Media items in the playlist with the same ad tag URI, media ID and ads loader will share - the same ad playback state. To resume ad playback when recreating the playlist on returning - from the background, pass media items with the same ad tag URIs and media IDs to the player. - -

    This method should only be called if setUri(java.lang.String) is passed a non-null value.

    -
    -
    Parameters:
    -
    adTagUri - The ad tag URI to load.
    -
    +
    Deprecated. +
    Use setAdsConfiguration(AdsConfiguration) and pass the adTagUri + to Builder(Uri) instead.
    +
  • @@ -829,25 +934,25 @@ extends
  • setAdTagUri

    -
    public MediaItem.Builder setAdTagUri​(@Nullable
    +
    @Deprecated
    +public MediaItem.Builder setAdTagUri​(@Nullable
                                          Uri adTagUri,
                                          @Nullable
                                          Object adsId)
    -
    Sets the optional ad tag Uri and ads identifier. - -

    Media items in the playlist that have the same ads identifier and ads loader share the - same ad playback state. To resume ad playback when recreating the playlist on returning from - the background, pass the same ads IDs to the player. - -

    This method should only be called if setUri(java.lang.String) is passed a non-null value.

    -
    -
    Parameters:
    -
    adTagUri - The ad tag URI to load.
    -
    adsId - An opaque identifier for ad playback state associated with this item. Ad loading - and playback state is shared among all media items that have the same ads ID (by equality) and ads loader, so it is important to pass the same - identifiers when constructing playlist items each time the player returns to the - foreground.
    -
    +
    Deprecated. + +
    +
  • + + + + + @@ -856,15 +961,11 @@ extends
  • setLiveTargetOffsetMs

    -
    public MediaItem.Builder setLiveTargetOffsetMs​(long liveTargetOffsetMs)
    -
    Sets the optional target offset from the live edge for live streams, in milliseconds. - -

    See Player#getCurrentLiveOffset().

    -
    -
    Parameters:
    -
    liveTargetOffsetMs - The target offset, in milliseconds, or C.TIME_UNSET to use - the media-defined default.
    -
    +
    @Deprecated
    +public MediaItem.Builder setLiveTargetOffsetMs​(long liveTargetOffsetMs)
    +
  • @@ -873,15 +974,11 @@ extends
  • setLiveMinOffsetMs

    -
    public MediaItem.Builder setLiveMinOffsetMs​(long liveMinOffsetMs)
    -
    Sets the optional minimum offset from the live edge for live streams, in milliseconds. - -

    See Player#getCurrentLiveOffset().

    -
    -
    Parameters:
    -
    liveMinOffsetMs - The minimum allowed offset, in milliseconds, or C.TIME_UNSET - to use the media-defined default.
    -
    +
    @Deprecated
    +public MediaItem.Builder setLiveMinOffsetMs​(long liveMinOffsetMs)
    +
  • @@ -890,15 +987,11 @@ extends
  • setLiveMaxOffsetMs

    -
    public MediaItem.Builder setLiveMaxOffsetMs​(long liveMaxOffsetMs)
    -
    Sets the optional maximum offset from the live edge for live streams, in milliseconds. - -

    See Player#getCurrentLiveOffset().

    -
    -
    Parameters:
    -
    liveMaxOffsetMs - The maximum allowed offset, in milliseconds, or C.TIME_UNSET - to use the media-defined default.
    -
    +
    @Deprecated
    +public MediaItem.Builder setLiveMaxOffsetMs​(long liveMaxOffsetMs)
    +
  • @@ -907,15 +1000,11 @@ extends
  • setLiveMinPlaybackSpeed

    -
    public MediaItem.Builder setLiveMinPlaybackSpeed​(float minPlaybackSpeed)
    -
    Sets the optional minimum playback speed for live stream speed adjustment. - -

    This value is ignored for other stream types.

    -
    -
    Parameters:
    -
    minPlaybackSpeed - The minimum factor by which playback can be sped up for live streams, - or C.RATE_UNSET to use the media-defined default.
    -
    +
    @Deprecated
    +public MediaItem.Builder setLiveMinPlaybackSpeed​(float minPlaybackSpeed)
    +
  • @@ -924,15 +1013,11 @@ extends
  • setLiveMaxPlaybackSpeed

    -
    public MediaItem.Builder setLiveMaxPlaybackSpeed​(float maxPlaybackSpeed)
    -
    Sets the optional maximum playback speed for live stream speed adjustment. - -

    This value is ignored for other stream types.

    -
    -
    Parameters:
    -
    maxPlaybackSpeed - The maximum factor by which playback can be sped up for live streams, - or C.RATE_UNSET to use the media-defined default.
    -
    +
    @Deprecated
    +public MediaItem.Builder setLiveMaxPlaybackSpeed​(float maxPlaybackSpeed)
    +
  • diff --git a/docs/doc/reference/com/google/android/exoplayer2/MediaItem.ClippingConfiguration.Builder.html b/docs/doc/reference/com/google/android/exoplayer2/MediaItem.ClippingConfiguration.Builder.html new file mode 100644 index 0000000000..09e7bc2dc1 --- /dev/null +++ b/docs/doc/reference/com/google/android/exoplayer2/MediaItem.ClippingConfiguration.Builder.html @@ -0,0 +1,434 @@ + + + + +MediaItem.ClippingConfiguration.Builder (ExoPlayer library) + + + + + + + + + + + + + +
    + +
    + +
    +
    + +

    Class MediaItem.ClippingConfiguration.Builder

    +
    +
    +
      +
    • java.lang.Object
    • +
    • +
        +
      • com.google.android.exoplayer2.MediaItem.ClippingConfiguration.Builder
      • +
      +
    • +
    +
    + +
    +
    + +
    +
    +
      +
    • + +
      +
        +
      • + + +

        Constructor Detail

        + + + +
          +
        • +

          Builder

          +
          public Builder()
          +
          Constructs an instance.
          +
        • +
        +
      • +
      +
      + +
      +
        +
      • + + +

        Method Detail

        + + + +
          +
        • +

          setStartPositionMs

          +
          public MediaItem.ClippingConfiguration.Builder setStartPositionMs​(@IntRange(from=0L)
          +                                                                  long startPositionMs)
          +
          Sets the optional start position in milliseconds which must be a value larger than or equal + to zero (Default: 0).
          +
        • +
        + + + + + + + +
          +
        • +

          setRelativeToLiveWindow

          +
          public MediaItem.ClippingConfiguration.Builder setRelativeToLiveWindow​(boolean relativeToLiveWindow)
          +
          Sets whether the start/end positions should move with the live window for live streams. If + false, live streams end when playback reaches the end position in live window seen + when the media is first loaded (Default: false).
          +
        • +
        + + + +
          +
        • +

          setRelativeToDefaultPosition

          +
          public MediaItem.ClippingConfiguration.Builder setRelativeToDefaultPosition​(boolean relativeToDefaultPosition)
          +
          Sets whether the start position and the end position are relative to the default position + in the window (Default: false).
          +
        • +
        + + + +
          +
        • +

          setStartsAtKeyFrame

          +
          public MediaItem.ClippingConfiguration.Builder setStartsAtKeyFrame​(boolean startsAtKeyFrame)
          +
          Sets whether the start point is guaranteed to be a key frame. If false, the + playback transition into the clip may not be seamless (Default: false).
          +
        • +
        + + + + + + + + +
      • +
      +
      +
    • +
    +
    +
    +
    + + + + diff --git a/docs/doc/reference/com/google/android/exoplayer2/MediaItem.ClippingConfiguration.html b/docs/doc/reference/com/google/android/exoplayer2/MediaItem.ClippingConfiguration.html new file mode 100644 index 0000000000..b58cccb864 --- /dev/null +++ b/docs/doc/reference/com/google/android/exoplayer2/MediaItem.ClippingConfiguration.html @@ -0,0 +1,521 @@ + + + + +MediaItem.ClippingConfiguration (ExoPlayer library) + + + + + + + + + + + + + +
    + +
    + +
    +
    + +

    Class MediaItem.ClippingConfiguration

    +
    +
    +
      +
    • java.lang.Object
    • +
    • +
        +
      • com.google.android.exoplayer2.MediaItem.ClippingConfiguration
      • +
      +
    • +
    +
    + +
    +
    + +
    +
    + +
    +
    +
    + + + + diff --git a/docs/doc/reference/com/google/android/exoplayer2/MediaItem.ClippingProperties.html b/docs/doc/reference/com/google/android/exoplayer2/MediaItem.ClippingProperties.html index 4fe4df1dcc..b619bd05a7 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/MediaItem.ClippingProperties.html +++ b/docs/doc/reference/com/google/android/exoplayer2/MediaItem.ClippingProperties.html @@ -25,12 +25,6 @@ catch(err) { } //--> -var data = {"i0":10,"i1":10,"i2":10}; -var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; -var altColor = "altColor"; -var rowColor = "rowColor"; -var tableTab = "tableTab"; -var activeTableTab = "activeTableTab"; var pathtoroot = "../../../../"; var useModuleDirectories = false; loadScripts(document, 'script'); @@ -95,7 +89,7 @@ loadScripts(document, 'script');
  • Detail: 
  • Field | 
  • Constr | 
  • -
  • Method
  • +
  • Method
  • @@ -121,10 +115,15 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  • java.lang.Object
  • +
  • +
    @@ -155,6 +156,13 @@ implements +
  • + + +

    Nested classes/interfaces inherited from class com.google.android.exoplayer2.MediaItem.ClippingConfiguration

    +MediaItem.ClippingConfiguration.Builder
  • + +
    static Bundleable.Creator<MediaItem.ClippingProperties>CREATORstatic MediaItem.ClippingPropertiesUNSET -
    Object that can restore MediaItem.ClippingProperties from a Bundle.
    -
    longendPositionMs -
    The end position in milliseconds.
    -
    booleanrelativeToDefaultPosition -
    Whether startPositionMs and endPositionMs are relative to the default - position.
    -
    booleanrelativeToLiveWindow -
    Whether the clipping of active media periods moves with a live window.
    -
    longstartPositionMs -
    The start position in milliseconds.
    -
    booleanstartsAtKeyFrame -
    Sets whether the start point is guaranteed to be a key frame.
    -
    + @@ -232,31 +211,13 @@ implements -All Methods Instance Methods Concrete Methods  - -Modifier and Type -Method -Description - - -boolean -equals​(Object obj) -  - - -int -hashCode() -  - - -Bundle -toBundle() - -
    Returns a Bundle representing the information stored in this object.
    - - - +
    • @@ -280,118 +241,14 @@ implements - - -
        -
      • -

        startPositionMs

        -
        public final long startPositionMs
        -
        The start position in milliseconds. This is a value larger than or equal to zero.
        -
      • -
      - - - -
        -
      • -

        endPositionMs

        -
        public final long endPositionMs
        -
        The end position in milliseconds. This is a value larger than or equal to zero or C.TIME_END_OF_SOURCE to play to the end of the stream.
        -
      • -
      - - - -
        -
      • -

        relativeToLiveWindow

        -
        public final boolean relativeToLiveWindow
        -
        Whether the clipping of active media periods moves with a live window. If false, - playback ends when it reaches endPositionMs.
        -
      • -
      - - - -
        -
      • -

        relativeToDefaultPosition

        -
        public final boolean relativeToDefaultPosition
        -
        Whether startPositionMs and endPositionMs are relative to the default - position.
        -
      • -
      - - - -
        -
      • -

        startsAtKeyFrame

        -
        public final boolean startsAtKeyFrame
        -
        Sets whether the start point is guaranteed to be a key frame.
        -
      • -
      - + -
    • -
    - - -
    - diff --git a/docs/doc/reference/com/google/android/exoplayer2/MediaItem.DrmConfiguration.Builder.html b/docs/doc/reference/com/google/android/exoplayer2/MediaItem.DrmConfiguration.Builder.html new file mode 100644 index 0000000000..b8bc49adea --- /dev/null +++ b/docs/doc/reference/com/google/android/exoplayer2/MediaItem.DrmConfiguration.Builder.html @@ -0,0 +1,503 @@ + + + + +MediaItem.DrmConfiguration.Builder (ExoPlayer library) + + + + + + + + + + + + + +
    + +
    + +
    +
    + +

    Class MediaItem.DrmConfiguration.Builder

    +
    +
    +
      +
    • java.lang.Object
    • +
    • +
        +
      • com.google.android.exoplayer2.MediaItem.DrmConfiguration.Builder
      • +
      +
    • +
    +
    + +
    +
    + +
    +
    + +
    +
    +
    + + + + diff --git a/docs/doc/reference/com/google/android/exoplayer2/MediaItem.DrmConfiguration.html b/docs/doc/reference/com/google/android/exoplayer2/MediaItem.DrmConfiguration.html index 962e8326a7..b92180a011 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/MediaItem.DrmConfiguration.html +++ b/docs/doc/reference/com/google/android/exoplayer2/MediaItem.DrmConfiguration.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":10,"i1":10,"i2":10}; +var data = {"i0":10,"i1":10,"i2":10,"i3":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -86,7 +86,7 @@ loadScripts(document, 'script');
    @@ -121,10 +115,15 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  • java.lang.Object
  • +
  • +
    • @@ -133,9 +132,12 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
      MediaItem

    -
    public static final class MediaItem.PlaybackProperties
    -extends Object
    -
    Properties for local playback.
    +
    @Deprecated
    +public static final class MediaItem.PlaybackProperties
    +extends MediaItem.LocalConfiguration
    +
    Deprecated. + +
    @@ -149,70 +151,13 @@ extends

    Field Summary

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Fields 
    Modifier and TypeFieldDescription
    MediaItem.AdsConfigurationadsConfiguration -
    Optional ads configuration.
    -
    StringcustomCacheKey -
    Optional custom cache key (only used for progressive streams).
    -
    MediaItem.DrmConfigurationdrmConfiguration -
    Optional MediaItem.DrmConfiguration for the media.
    -
    StringmimeType -
    The optional MIME type of the item, or null if unspecified.
    -
    List<StreamKey>streamKeys -
    Optional stream keys by which the manifest is filtered.
    -
    List<MediaItem.Subtitle>subtitles -
    Optional subtitles to be sideloaded.
    -
    Objecttag -
    Optional tag for custom attributes.
    -
    Uriuri -
    The Uri.
    -
    + @@ -223,24 +168,13 @@ extends

    Method Summary

    - - - - - - - - - - - - - - - - - -
    All Methods Instance Methods Concrete Methods 
    Modifier and TypeMethodDescription
    booleanequals​(Object obj) 
    inthashCode() 
    + -
    -
      -
    • - -
      -
        -
      • - - -

        Field Detail

        - - - -
          -
        • -

          uri

          -
          public final Uri uri
          -
          The Uri.
          -
        • -
        - - - -
          -
        • -

          mimeType

          -
          @Nullable
          -public final String mimeType
          -
          The optional MIME type of the item, or null if unspecified. - -

          The MIME type can be used to disambiguate media items that have a URI which does not allow - to infer the actual media type.

          -
        • -
        - - - - - - - - - - - -
          -
        • -

          streamKeys

          -
          public final List<StreamKey> streamKeys
          -
          Optional stream keys by which the manifest is filtered.
          -
        • -
        - - - -
          -
        • -

          customCacheKey

          -
          @Nullable
          -public final String customCacheKey
          -
          Optional custom cache key (only used for progressive streams).
          -
        • -
        - - - - - - - -
          -
        • -

          tag

          -
          @Nullable
          -public final Object tag
          -
          Optional tag for custom attributes. The tag for the media source which will be published in - the com.google.android.exoplayer2.Timeline of the source as - com.google.android.exoplayer2.Timeline.Window#tag.
          -
        • -
        -
      • -
      -
      - -
      -
        -
      • - - -

        Method Detail

        - - - -
          -
        • -

          equals

          -
          public boolean equals​(@Nullable
          -                      Object obj)
          -
          -
          Overrides:
          -
          equals in class Object
          -
          -
        • -
        - - - -
          -
        • -

          hashCode

          -
          public int hashCode()
          -
          -
          Overrides:
          -
          hashCode in class Object
          -
          -
        • -
        -
      • -
      -
      -
    • -
    -
    @@ -449,9 +240,9 @@ public final 
  • Detail: 
  • -
  • Field | 
  • +
  • Field | 
  • Constr | 
  • -
  • Method
  • +
  • Method
  • diff --git a/docs/doc/reference/com/google/android/exoplayer2/MediaItem.Subtitle.html b/docs/doc/reference/com/google/android/exoplayer2/MediaItem.Subtitle.html index 6f9c93e6b6..22d9d9bfcf 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/MediaItem.Subtitle.html +++ b/docs/doc/reference/com/google/android/exoplayer2/MediaItem.Subtitle.html @@ -25,12 +25,6 @@ catch(err) { } //--> -var data = {"i0":10,"i1":10}; -var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; -var altColor = "altColor"; -var rowColor = "rowColor"; -var tableTab = "tableTab"; -var activeTableTab = "activeTableTab"; var pathtoroot = "../../../../"; var useModuleDirectories = false; loadScripts(document, 'script'); @@ -86,16 +80,16 @@ loadScripts(document, 'script');
    @@ -121,10 +115,15 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  • java.lang.Object
  • +
  • +
    • @@ -133,15 +132,35 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
      MediaItem

    -
    public static final class MediaItem.Subtitle
    -extends Object
    -
    Properties for a text track.
    +
    @Deprecated
    +public static final class MediaItem.Subtitle
    +extends MediaItem.SubtitleConfiguration
    +
    Deprecated. + +
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/MediaItem.SubtitleConfiguration.Builder.html b/docs/doc/reference/com/google/android/exoplayer2/MediaItem.SubtitleConfiguration.Builder.html new file mode 100644 index 0000000000..b3385dc9c7 --- /dev/null +++ b/docs/doc/reference/com/google/android/exoplayer2/MediaItem.SubtitleConfiguration.Builder.html @@ -0,0 +1,423 @@ + + + + +MediaItem.SubtitleConfiguration.Builder (ExoPlayer library) + + + + + + + + + + + + + +
    + +
    + +
    +
    + +

    Class MediaItem.SubtitleConfiguration.Builder

    +
    +
    +
      +
    • java.lang.Object
    • +
    • +
        +
      • com.google.android.exoplayer2.MediaItem.SubtitleConfiguration.Builder
      • +
      +
    • +
    +
    + +
    +
    + +
    +
    + +
    +
    +
    + + + + diff --git a/docs/doc/reference/com/google/android/exoplayer2/MediaItem.SubtitleConfiguration.html b/docs/doc/reference/com/google/android/exoplayer2/MediaItem.SubtitleConfiguration.html new file mode 100644 index 0000000000..646cfb4fc5 --- /dev/null +++ b/docs/doc/reference/com/google/android/exoplayer2/MediaItem.SubtitleConfiguration.html @@ -0,0 +1,471 @@ + + + + +MediaItem.SubtitleConfiguration (ExoPlayer library) + + + + + + + + + + + + + +
    + +
    + +
    +
    + +

    Class MediaItem.SubtitleConfiguration

    +
    +
    +
      +
    • java.lang.Object
    • +
    • +
        +
      • com.google.android.exoplayer2.MediaItem.SubtitleConfiguration
      • +
      +
    • +
    +
    +
      +
    • +
      +
      Direct Known Subclasses:
      +
      MediaItem.Subtitle
      +
      +
      +
      Enclosing class:
      +
      MediaItem
      +
      +
      +
      public static class MediaItem.SubtitleConfiguration
      +extends Object
      +
      Properties for a text track.
      +
    • +
    +
    +
    + +
    +
    +
      +
    • + +
      +
        +
      • + + +

        Field Detail

        + + + +
          +
        • +

          uri

          +
          public final Uri uri
          +
          The Uri to the subtitle file.
          +
        • +
        + + + +
          +
        • +

          mimeType

          +
          @Nullable
          +public final String mimeType
          +
          The optional MIME type of the subtitle file, or null if unspecified.
          +
        • +
        + + + +
          +
        • +

          language

          +
          @Nullable
          +public final String language
          +
          The language.
          +
        • +
        + + + +
          +
        • +

          selectionFlags

          +
          @SelectionFlags
          +public final @com.google.android.exoplayer2.C.SelectionFlags int selectionFlags
          +
          The selection flags.
          +
        • +
        + + + +
          +
        • +

          roleFlags

          +
          @RoleFlags
          +public final @com.google.android.exoplayer2.C.RoleFlags int roleFlags
          +
          The role flags.
          +
        • +
        + + + +
          +
        • +

          label

          +
          @Nullable
          +public final String label
          +
          The label.
          +
        • +
        +
      • +
      +
      + +
      + +
      +
    • +
    +
    +
    +
    + + + + diff --git a/docs/doc/reference/com/google/android/exoplayer2/MediaItem.html b/docs/doc/reference/com/google/android/exoplayer2/MediaItem.html index 9e476679f9..6286401732 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/MediaItem.html +++ b/docs/doc/reference/com/google/android/exoplayer2/MediaItem.html @@ -173,36 +173,63 @@ implements static class  -MediaItem.ClippingProperties +MediaItem.ClippingConfiguration
    Optionally clips the media item to a custom start and end position.
    static class  +MediaItem.ClippingProperties + +
    Deprecated. + +
    + + + +static class  MediaItem.DrmConfiguration
    DRM configuration for a media item.
    - + static class  MediaItem.LiveConfiguration
    Live playback configuration.
    + +static class  +MediaItem.LocalConfiguration + +
    Properties for local playback.
    + + static class  MediaItem.PlaybackProperties -
    Properties for local playback.
    +
    Deprecated. + +
    static class  MediaItem.Subtitle +
    Deprecated. + +
    + + + +static class  +MediaItem.SubtitleConfiguration +
    Properties for a text track.
    @@ -232,40 +259,56 @@ implements Description -MediaItem.ClippingProperties -clippingProperties +MediaItem.ClippingConfiguration +clippingConfiguration
    The clipping properties.
    +MediaItem.ClippingProperties +clippingProperties + +
    Deprecated. + +
    + + + static Bundleable.Creator<MediaItem> CREATOR
    Object that can restore MediaItem from a Bundle.
    - + static String DEFAULT_MEDIA_ID
    The default media ID that is used if the media ID is not explicitly set by MediaItem.Builder.setMediaId(String).
    - + static MediaItem EMPTY
    Empty MediaItem.
    - + MediaItem.LiveConfiguration liveConfiguration
    The live playback configuration.
    + +MediaItem.LocalConfiguration +localConfiguration + +
    Optional configuration for local playback.
    + + String mediaId @@ -284,7 +327,9 @@ implements MediaItem.PlaybackProperties playbackProperties -
    Optional playback properties.
    +
    Deprecated. +
    Use localConfiguration instead.
    +
    @@ -401,15 +446,30 @@ implements Identifies the media item. + + + +
      +
    • +

      localConfiguration

      +
      @Nullable
      +public final MediaItem.LocalConfiguration localConfiguration
      +
      Optional configuration for local playback. May be null if shared over process + boundaries.
      +
    • +
    @@ -432,14 +492,27 @@ public final The media metadata. + + + + @@ -451,7 +524,7 @@ public final Bundleable.Creator<MediaItem> CREATOR
    Object that can restore MediaItem from a Bundle. -

    The playbackProperties of a restored instance will always be null.

    +

    The localConfiguration of a restored instance will always be null. @@ -542,7 +615,7 @@ public final public Bundle toBundle()

    Returns a Bundle representing the information stored in this object. -

    It omits the playbackProperties field. The playbackProperties of an +

    It omits the localConfiguration field. The localConfiguration of an instance restored by CREATOR will always be null.

    Specified by:
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/MediaMetadata.Builder.html b/docs/doc/reference/com/google/android/exoplayer2/MediaMetadata.Builder.html index cceffedcbf..764cb28e27 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/MediaMetadata.Builder.html +++ b/docs/doc/reference/com/google/android/exoplayer2/MediaMetadata.Builder.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":42,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":42}; +var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":42,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":42}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -186,8 +186,8 @@ extends MediaMetadata.Builder -maybeSetArtworkData​(byte[] artworkData, - int artworkDataType) +maybeSetArtworkData​(byte[] artworkData, + @com.google.android.exoplayer2.MediaMetadata.PictureType int artworkDataType)
    Sets the artwork data as a compressed byte array in the event that the associated MediaMetadata.PictureType is MediaMetadata.PICTURE_TYPE_FRONT_COVER, the existing MediaMetadata.PictureType is not MediaMetadata.PICTURE_TYPE_FRONT_COVER, or the current artworkData is not set.
    @@ -195,239 +195,246 @@ extends MediaMetadata.Builder +populate​(MediaMetadata mediaMetadata) + +
    Populates all the fields from mediaMetadata, provided they are non-null.
    + + + +MediaMetadata.Builder populateFromMetadata​(Metadata metadata)
    Sets all fields supported by the entries within the Metadata.
    - + MediaMetadata.Builder populateFromMetadata​(List<Metadata> metadataList)
    Sets all fields supported by the entries within the list of Metadata.
    - + MediaMetadata.Builder setAlbumArtist​(CharSequence albumArtist)
    Sets the album artist.
    - + MediaMetadata.Builder setAlbumTitle​(CharSequence albumTitle)
    Sets the album title.
    - + MediaMetadata.Builder setArtist​(CharSequence artist)
    Sets the artist.
    - + MediaMetadata.Builder setArtworkData​(byte[] artworkData) - + MediaMetadata.Builder setArtworkData​(byte[] artworkData, - Integer artworkDataType) + @PictureType Integer artworkDataType)
    Sets the artwork data as a compressed byte array with an associated artworkDataType.
    - + MediaMetadata.Builder setArtworkUri​(Uri artworkUri)
    Sets the artwork Uri.
    - + MediaMetadata.Builder setCompilation​(CharSequence compilation)
    Sets the compilation.
    - + MediaMetadata.Builder setComposer​(CharSequence composer)
    Sets the composer.
    - + MediaMetadata.Builder setConductor​(CharSequence conductor)
    Sets the conductor.
    - + MediaMetadata.Builder setDescription​(CharSequence description)
    Sets the description.
    - + MediaMetadata.Builder setDiscNumber​(Integer discNumber)
    Sets the disc number.
    - + MediaMetadata.Builder setDisplayTitle​(CharSequence displayTitle)
    Sets the display title.
    - + MediaMetadata.Builder setExtras​(Bundle extras)
    Sets the extras Bundle.
    - + MediaMetadata.Builder -setFolderType​(Integer folderType) +setFolderType​(@FolderType Integer folderType) - + MediaMetadata.Builder setGenre​(CharSequence genre)
    Sets the genre.
    - + MediaMetadata.Builder setIsPlayable​(Boolean isPlayable)
    Sets whether the media is playable.
    - + MediaMetadata.Builder setMediaUri​(Uri mediaUri)
    Sets the media Uri.
    - + MediaMetadata.Builder setOverallRating​(Rating overallRating)
    Sets the overall Rating.
    - + MediaMetadata.Builder setRecordingDay​(Integer recordingDay)
    Sets the day of the recording date.
    - + MediaMetadata.Builder setRecordingMonth​(Integer recordingMonth)
    Sets the month of the recording date.
    - + MediaMetadata.Builder setRecordingYear​(Integer recordingYear)
    Sets the year of the recording date.
    - + MediaMetadata.Builder setReleaseDay​(Integer releaseDay)
    Sets the day of the release date.
    - + MediaMetadata.Builder setReleaseMonth​(Integer releaseMonth)
    Sets the month of the release date.
    - + MediaMetadata.Builder setReleaseYear​(Integer releaseYear)
    Sets the year of the release date.
    - + MediaMetadata.Builder setSubtitle​(CharSequence subtitle)
    Sets the subtitle.
    - + MediaMetadata.Builder setTitle​(CharSequence title)
    Sets the title.
    - + MediaMetadata.Builder setTotalDiscCount​(Integer totalDiscCount)
    Sets the total number of discs.
    - + MediaMetadata.Builder setTotalTrackCount​(Integer totalTrackCount)
    Sets the total number of tracks.
    - + MediaMetadata.Builder setTrackNumber​(Integer trackNumber)
    Sets the track number.
    - + MediaMetadata.Builder setUserRating​(Rating userRating)
    Sets the user Rating.
    - + MediaMetadata.Builder setWriter​(CharSequence writer)
    Sets the writer.
    - + MediaMetadata.Builder setYear​(Integer year) @@ -601,7 +608,7 @@ extends MediaMetadata.Builder setArtworkData​(@Nullable byte[] artworkData) @@ -614,11 +621,11 @@ public public MediaMetadata.Builder setArtworkData​(@Nullable byte[] artworkData, @Nullable @PictureType - Integer artworkDataType) + @PictureType Integer artworkDataType)
    Sets the artwork data as a compressed byte array with an associated artworkDataType.
    - + @@ -894,6 +901,17 @@ public Metadata.Entry objects within any of the Metadata relate to the same MediaMetadata field, then the last one will be used. + + + +
      +
    • +

      populate

      +
      public MediaMetadata.Builder populate​(@Nullable
      +                                      MediaMetadata mediaMetadata)
      +
      Populates all the fields from mediaMetadata, provided they are non-null.
      +
    • +
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/MediaMetadata.FolderType.html b/docs/doc/reference/com/google/android/exoplayer2/MediaMetadata.FolderType.html index 5cf377cb11..c555f2c606 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/MediaMetadata.FolderType.html +++ b/docs/doc/reference/com/google/android/exoplayer2/MediaMetadata.FolderType.html @@ -115,6 +115,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    @Documented
     @Retention(SOURCE)
    +@Target({FIELD,METHOD,PARAMETER,LOCAL_VARIABLE,TYPE_USE})
     public static @interface MediaMetadata.FolderType
    The folder type of the media item. diff --git a/docs/doc/reference/com/google/android/exoplayer2/MediaMetadata.PictureType.html b/docs/doc/reference/com/google/android/exoplayer2/MediaMetadata.PictureType.html index 8aa35d1a6e..06dab22929 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/MediaMetadata.PictureType.html +++ b/docs/doc/reference/com/google/android/exoplayer2/MediaMetadata.PictureType.html @@ -115,6 +115,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    @Documented
     @Retention(SOURCE)
    +@Target({FIELD,METHOD,PARAMETER,LOCAL_VARIABLE,TYPE_USE})
     public static @interface MediaMetadata.PictureType
    The picture type of the artwork. diff --git a/docs/doc/reference/com/google/android/exoplayer2/MediaMetadata.html b/docs/doc/reference/com/google/android/exoplayer2/MediaMetadata.html index a8ce3ba8e0..446b711fa7 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/MediaMetadata.html +++ b/docs/doc/reference/com/google/android/exoplayer2/MediaMetadata.html @@ -232,7 +232,7 @@ implements -Integer +@PictureType Integer artworkDataType
    Optional MediaMetadata.PictureType of the artwork data.
    @@ -365,7 +365,7 @@ implements -Integer +@FolderType Integer folderType @@ -1196,7 +1196,7 @@ public final byte[] artworkData

    artworkDataType

    @Nullable
     @PictureType
    -public final Integer artworkDataType
    +public final @PictureType Integer artworkDataType
    Optional MediaMetadata.PictureType of the artwork data.
    @@ -1241,7 +1241,7 @@ public final @FolderType -public final Integer folderType +public final @FolderType Integer folderType diff --git a/docs/doc/reference/com/google/android/exoplayer2/NoSampleRenderer.html b/docs/doc/reference/com/google/android/exoplayer2/NoSampleRenderer.html index 36998fa580..038a05ad8e 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/NoSampleRenderer.html +++ b/docs/doc/reference/com/google/android/exoplayer2/NoSampleRenderer.html @@ -156,7 +156,7 @@ implements Renderer -Renderer.State, Renderer.VideoScalingMode, Renderer.WakeupListener +Renderer.MessageType, Renderer.State, Renderer.WakeupListener
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/Player.Commands.Builder.html b/docs/doc/reference/com/google/android/exoplayer2/Player.Commands.Builder.html index ca5c0339c3..80bb720c04 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/Player.Commands.Builder.html +++ b/docs/doc/reference/com/google/android/exoplayer2/Player.Commands.Builder.html @@ -181,14 +181,14 @@ extends Player.Commands.Builder -add​(int command) +add​(@com.google.android.exoplayer2.Player.Command int command) Player.Commands.Builder -addAll​(int... commands) +addAll​(@com.google.android.exoplayer2.Player.Command int... commands)
    Adds commands.
    @@ -209,7 +209,7 @@ extends Player.Commands.Builder -addIf​(int command, +addIf​(@com.google.android.exoplayer2.Player.Command int command, boolean condition)
    Adds a Player.Command if the provided condition is true.
    @@ -224,21 +224,21 @@ extends Player.Commands.Builder -remove​(int command) +remove​(@com.google.android.exoplayer2.Player.Command int command)
    Removes a Player.Command.
    Player.Commands.Builder -removeAll​(int... commands) +removeAll​(@com.google.android.exoplayer2.Player.Command int... commands)
    Removes commands.
    Player.Commands.Builder -removeIf​(int command, +removeIf​(@com.google.android.exoplayer2.Player.Command int command, boolean condition)
    Removes a Player.Command if the provided condition is true.
    @@ -288,14 +288,14 @@ extends

    Method Detail

    - + - +
    • addIf

      public Player.Commands.Builder addIf​(@Command
      -                                     int command,
      +                                     @com.google.android.exoplayer2.Player.Command int command,
                                            boolean condition)
      Adds a Player.Command if the provided condition is true. Does nothing otherwise.
      @@ -328,14 +328,14 @@ extends
    - + - + - +
    • removeIf

      public Player.Commands.Builder removeIf​(@Command
      -                                        int command,
      +                                        @com.google.android.exoplayer2.Player.Command int command,
                                               boolean condition)
      Removes a Player.Command if the provided condition is true. Does nothing otherwise.
      @@ -421,14 +421,14 @@ extends
    - +
    • removeAll

      public Player.Commands.Builder removeAll​(@Command
      -                                         int... commands)
      + @com.google.android.exoplayer2.Player.Command int... commands)
      Removes commands.
      Parameters:
      diff --git a/docs/doc/reference/com/google/android/exoplayer2/Player.Commands.html b/docs/doc/reference/com/google/android/exoplayer2/Player.Commands.html index 7b79b004ec..545fd32c74 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/Player.Commands.html +++ b/docs/doc/reference/com/google/android/exoplayer2/Player.Commands.html @@ -236,7 +236,7 @@ implements boolean -contains​(int command) +contains​(@com.google.android.exoplayer2.Player.Command int command)
      Returns whether the set of commands contains the specified Player.Command.
      @@ -247,7 +247,7 @@ implements   -int +@com.google.android.exoplayer2.Player.Command int get​(int index)
      Returns the Player.Command at the given index.
      @@ -336,14 +336,14 @@ implements Returns a Player.Commands.Builder initialized with the values of this instance.
    - +
    • contains

      public boolean contains​(@Command
      -                        int command)
      + @com.google.android.exoplayer2.Player.Command int command)
      Returns whether the set of commands contains the specified Player.Command.
    @@ -364,7 +364,7 @@ implements

    get

    @Command
    -public int get​(int index)
    +public @com.google.android.exoplayer2.Player.Command int get​(int index)
    Returns the Player.Command at the given index.
    Parameters:
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/Player.DiscontinuityReason.html b/docs/doc/reference/com/google/android/exoplayer2/Player.DiscontinuityReason.html index 0fa6ed4600..76879e9080 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/Player.DiscontinuityReason.html +++ b/docs/doc/reference/com/google/android/exoplayer2/Player.DiscontinuityReason.html @@ -115,6 +115,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    @Documented
     @Retention(SOURCE)
    +@Target({FIELD,METHOD,PARAMETER,LOCAL_VARIABLE,TYPE_USE})
     public static @interface Player.DiscontinuityReason
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/Player.Event.html b/docs/doc/reference/com/google/android/exoplayer2/Player.Event.html index 51e7f50293..5407eca322 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/Player.Event.html +++ b/docs/doc/reference/com/google/android/exoplayer2/Player.Event.html @@ -115,6 +115,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    @Documented
     @Retention(SOURCE)
    +@Target({FIELD,METHOD,PARAMETER,LOCAL_VARIABLE,TYPE_USE})
     public static @interface Player.Event
    Events that can be reported via Player.Listener.onEvents(Player, Events). diff --git a/docs/doc/reference/com/google/android/exoplayer2/Player.EventListener.html b/docs/doc/reference/com/google/android/exoplayer2/Player.EventListener.html index 8aadfb108f..f6beaf7e46 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/Player.EventListener.html +++ b/docs/doc/reference/com/google/android/exoplayer2/Player.EventListener.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":50,"i1":50,"i2":50,"i3":50,"i4":50,"i5":50,"i6":50,"i7":50,"i8":50,"i9":50,"i10":50,"i11":50,"i12":50,"i13":50,"i14":50,"i15":50,"i16":50,"i17":50,"i18":50,"i19":50,"i20":50,"i21":50,"i22":50,"i23":50,"i24":50,"i25":50}; +var data = {"i0":50,"i1":50,"i2":50,"i3":50,"i4":50,"i5":50,"i6":50,"i7":50,"i8":50,"i9":50,"i10":50,"i11":50,"i12":50,"i13":50,"i14":50,"i15":50,"i16":50,"i17":50,"i18":50,"i19":50,"i20":50,"i21":50,"i22":50,"i23":50,"i24":50,"i25":50,"i26":50}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],16:["t5","Default Methods"],32:["t6","Deprecated Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -126,7 +126,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    All Known Implementing Classes:
    -
    AnalyticsCollector, DebugTextViewHelper, ExoPlayerTestRunner, ImaAdsLoader
    +
    AnalyticsCollector, DebugTextViewHelper, ExoPlayerTestRunner, ImaAdsLoader, SubtitleView
    Enclosing interface:
    @@ -169,7 +169,7 @@ public static interface Player.EventListener< onAvailableCommandsChanged​(Player.Commands availableCommands)
    Deprecated.
    -
    Called when the value returned from Player.isCommandAvailable(int) changes for at least one +
    Called when the value returned from Player.isCommandAvailable(int) changes for at least one Player.Command.
    @@ -209,7 +209,7 @@ public static interface Player.EventListener< default void -onMaxSeekToPreviousPositionChanged​(int maxSeekToPreviousPositionMs) +onMaxSeekToPreviousPositionChanged​(long maxSeekToPreviousPositionMs)
    Deprecated.
    Called when the value of Player.getMaxSeekToPreviousPosition() changes.
    @@ -217,8 +217,8 @@ public static interface Player.EventListener< default void -onMediaItemTransition​(MediaItem mediaItem, - int reason) +onMediaItemTransition​(MediaItem mediaItem, + @com.google.android.exoplayer2.Player.MediaItemTransitionReason int reason)
    Deprecated.
    Called when playback transitions to a media item or starts repeating a media item according @@ -243,7 +243,7 @@ public static interface Player.EventListener< default void -onPlaybackStateChanged​(int playbackState) +onPlaybackStateChanged​(@com.google.android.exoplayer2.Player.State int playbackState)
    Deprecated.
    Called when the value returned from Player.getPlaybackState() changes.
    @@ -251,7 +251,7 @@ public static interface Player.EventListener< default void -onPlaybackSuppressionReasonChanged​(int playbackSuppressionReason) +onPlaybackSuppressionReasonChanged​(@com.google.android.exoplayer2.Player.PlaybackSuppressionReason int playbackSuppressionReason)
    Deprecated.
    Called when the value returned from Player.getPlaybackSuppressionReason() changes.
    @@ -275,11 +275,11 @@ public static interface Player.EventListener< default void -onPlayerStateChanged​(boolean playWhenReady, - int playbackState) +onPlayerStateChanged​(boolean playWhenReady, + @com.google.android.exoplayer2.Player.State int playbackState) @@ -293,8 +293,8 @@ public static interface Player.EventListener< default void -onPlayWhenReadyChanged​(boolean playWhenReady, - int reason) +onPlayWhenReadyChanged​(boolean playWhenReady, + @com.google.android.exoplayer2.Player.PlayWhenReadyChangeReason int reason)
    Deprecated.
    Called when the value returned from Player.getPlayWhenReady() changes.
    @@ -302,18 +302,18 @@ public static interface Player.EventListener< default void -onPositionDiscontinuity​(int reason) +onPositionDiscontinuity​(@com.google.android.exoplayer2.Player.DiscontinuityReason int reason) default void -onPositionDiscontinuity​(Player.PositionInfo oldPosition, +onPositionDiscontinuity​(Player.PositionInfo oldPosition, Player.PositionInfo newPosition, - int reason) + @com.google.android.exoplayer2.Player.DiscontinuityReason int reason)
    Deprecated.
    Called when a position discontinuity occurs.
    @@ -321,7 +321,7 @@ public static interface Player.EventListener< default void -onRepeatModeChanged​(int repeatMode) +onRepeatModeChanged​(@com.google.android.exoplayer2.Player.RepeatMode int repeatMode)
    Deprecated.
    Called when the value of Player.getRepeatMode() changes.
    @@ -362,29 +362,35 @@ public static interface Player.EventListener< default void -onStaticMetadataChanged​(List<Metadata> metadataList) - -
    Deprecated. -
    Use Player.getMediaMetadata() and onMediaMetadataChanged(MediaMetadata) for access to structured metadata, or access the - raw static metadata directly from the track - selections' formats.
    -
    - - - -default void -onTimelineChanged​(Timeline timeline, - int reason) +onTimelineChanged​(Timeline timeline, + @com.google.android.exoplayer2.Player.TimelineChangeReason int reason)
    Deprecated.
    Called when the timeline has been refreshed.
    - + default void onTracksChanged​(TrackGroupArray trackGroups, TrackSelectionArray trackSelections) +
    Deprecated. + +
    + + + +default void +onTrackSelectionParametersChanged​(TrackSelectionParameters parameters) + +
    Deprecated.
    +
    Called when the value returned from Player.getTrackSelectionParameters() changes.
    + + + +default void +onTracksInfoChanged​(TracksInfo tracksInfo) +
    Deprecated.
    Called when the available or selected tracks change.
    @@ -406,7 +412,7 @@ public static interface Player.EventListener<

    Method Detail

    - +
      @@ -414,12 +420,14 @@ public static interface Player.EventListener<

      onTimelineChanged

      default void onTimelineChanged​(Timeline timeline,
                                      @TimelineChangeReason
      -                               int reason)
      + @com.google.android.exoplayer2.Player.TimelineChangeReason int reason)
      Deprecated.
      Called when the timeline has been refreshed. -

      Note that the current window or period index may change as a result of a timeline change. - If playback can't continue smoothly because of this timeline change, a separate onPositionDiscontinuity(PositionInfo, PositionInfo, int) callback will be triggered. +

      Note that the current MediaItem or playback position may change as a result of a + timeline change. If playback can't continue smoothly because of this timeline change, a + separate onPositionDiscontinuity(PositionInfo, PositionInfo, int) callback will be + triggered.

      onEvents(Player, Events) will also be called to report this event along with other events that happen in the same Looper message queue iteration.

      @@ -430,7 +438,7 @@ public static interface Player.EventListener<
    - +
      @@ -439,7 +447,7 @@ public static interface Player.EventListener<
      default void onMediaItemTransition​(@Nullable
                                          MediaItem mediaItem,
                                          @MediaItemTransitionReason
      -                                   int reason)
      + @com.google.android.exoplayer2.Player.MediaItemTransitionReason int reason)
      Deprecated.
      Called when playback transitions to a media item or starts repeating a media item according to the current repeat mode. @@ -462,9 +470,12 @@ public static interface Player.EventListener<
    - + @@ -506,7 +520,11 @@ default void onStaticMetadataChanged​(MediaMetadata is a combination of the MediaItem.mediaMetadata and the static and dynamic metadata from the track - selections' formats and MetadataOutput.onMetadata(Metadata). + selections' formats and Player.Listener.onMetadata(Metadata). If a field is populated in + the MediaItem.mediaMetadata, it will be prioritised above the same field coming from + static or dynamic metadata. + +

    This method may be called multiple times in quick succession.

    onEvents(Player, Events) will also be called to report this event along with other events that happen in the same Looper message queue iteration. @@ -566,7 +584,7 @@ default void onLoadingChanged​(boolean isLoading)

    onAvailableCommandsChanged

    default void onAvailableCommandsChanged​(Player.Commands availableCommands)
    Deprecated.
    -
    Called when the value returned from Player.isCommandAvailable(int) changes for at least one +
    Called when the value returned from Player.isCommandAvailable(int) changes for at least one Player.Command.

    onEvents(Player, Events) will also be called to report this event along with @@ -577,7 +595,25 @@ default void onLoadingChanged​(boolean isLoading)

    - + + + + + - +
    • onPlaybackStateChanged

      default void onPlaybackStateChanged​(@State
      -                                    int playbackState)
      + @com.google.android.exoplayer2.Player.State int playbackState)
      Deprecated.
      Called when the value returned from Player.getPlaybackState() changes. @@ -611,7 +647,7 @@ default void onPlayerStateChanged​(boolean playWhenReady,
    - +
      @@ -619,7 +655,7 @@ default void onPlayerStateChanged​(boolean playWhenReady,

      onPlayWhenReadyChanged

      default void onPlayWhenReadyChanged​(boolean playWhenReady,
                                           @PlayWhenReadyChangeReason
      -                                    int reason)
      + @com.google.android.exoplayer2.Player.PlayWhenReadyChangeReason int reason)
      Deprecated.
      Called when the value returned from Player.getPlayWhenReady() changes. @@ -632,14 +668,14 @@ default void onPlayerStateChanged​(boolean playWhenReady,
    - +
    • onPlaybackSuppressionReasonChanged

      default void onPlaybackSuppressionReasonChanged​(@PlaybackSuppressionReason
      -                                                int playbackSuppressionReason)
      + @com.google.android.exoplayer2.Player.PlaybackSuppressionReason int playbackSuppressionReason)
      Deprecated.
      Called when the value returned from Player.getPlaybackSuppressionReason() changes. @@ -669,14 +705,14 @@ default void onPlayerStateChanged​(boolean playWhenReady,
    - +
    • onRepeatModeChanged

      default void onRepeatModeChanged​(@RepeatMode
      -                                 int repeatMode)
      + @com.google.android.exoplayer2.Player.RepeatMode int repeatMode)
      Deprecated.
      Called when the value of Player.getRepeatMode() changes. @@ -702,7 +738,7 @@ default void onPlayerStateChanged​(boolean playWhenReady, other events that happen in the same Looper message queue iteration.
      Parameters:
      -
      shuffleModeEnabled - Whether shuffling of windows is enabled.
      +
      shuffleModeEnabled - Whether shuffling of media items is enabled.
    @@ -750,7 +786,7 @@ default void onPlayerStateChanged​(boolean playWhenReady,
    - + - + @@ -419,7 +411,7 @@ extends + - + - +
    • -

      onTracksChanged

      -
      default void onTracksChanged​(TrackGroupArray trackGroups,
      -                             TrackSelectionArray trackSelections)
      -
      Description copied from interface: Player.EventListener
      +

      onTracksInfoChanged

      +
      default void onTracksInfoChanged​(TracksInfo tracksInfo)
      +
      Description copied from interface: Player.EventListener
      Called when the available or selected tracks change.

      Player.EventListener.onEvents(Player, Events) will also be called to report this event along with other events that happen in the same Looper message queue iteration.

      Specified by:
      -
      onTracksChanged in interface Player.EventListener
      +
      onTracksInfoChanged in interface Player.EventListener
      Parameters:
      -
      trackGroups - The available tracks. Never null, but may be of length zero.
      -
      trackSelections - The selected tracks. Never null, but may contain null elements. A - concrete implementation may include null elements if it has a fixed number of renderer - components, wishes to report a TrackSelection for each of them, and has one or more - renderer components that is not assigned any selected tracks.
      +
      tracksInfo - The available tracks information. Never null, but may be of length zero.
    @@ -526,7 +515,7 @@ extends default void onAvailableCommandsChanged​(Player.Commands availableCommands)
    Description copied from interface: Player.EventListener
    -
    Called when the value returned from Player.isCommandAvailable(int) changes for at least one +
    Called when the value returned from Player.isCommandAvailable(int) changes for at least one Player.Command.

    Player.EventListener.onEvents(Player, Events) will also be called to report this event along with @@ -539,28 +528,28 @@ extends +

    - + - +
    @@ -713,7 +702,7 @@ extends + - + @@ -896,12 +868,7 @@ extends default void onDeviceVolumeChanged​(int volume, boolean muted) -
    Called when the device volume or mute state changes.
    -
    -
    Specified by:
    -
    onDeviceVolumeChanged in interface DeviceListener
    -
    @@ -924,15 +891,15 @@ extends Player.EventListener.onPlaybackStateChanged(int) and Player.EventListener.onPlayWhenReadyChanged(boolean, + both Player.EventListener.onPlaybackStateChanged(int) and Player.EventListener.onPlayWhenReadyChanged(boolean, int)).
  • They need access to the Player object to trigger further events (e.g. to call - Player.seekTo(long) after a Player.EventListener.onMediaItemTransition(MediaItem, int)). + Player.seekTo(long) after a Player.EventListener.onMediaItemTransition(MediaItem, int)).
  • They intend to use multiple state values together or in combination with Player - getter methods. For example using Player.getCurrentWindowIndex() with the - timeline provided in Player.EventListener.onTimelineChanged(Timeline, int) is only safe from + getter methods. For example using Player.getCurrentMediaItemIndex() with the + timeline provided in Player.EventListener.onTimelineChanged(Timeline, int) is only safe from within this method. -
  • They are interested in events that logically happened together (e.g Player.EventListener.onPlaybackStateChanged(int) to Player.STATE_BUFFERING because of Player.EventListener.onMediaItemTransition(MediaItem, int)). +
  • They are interested in events that logically happened together (e.g Player.EventListener.onPlaybackStateChanged(int) to Player.STATE_BUFFERING because of Player.EventListener.onMediaItemTransition(MediaItem, int)).
    Specified by:
    @@ -952,11 +919,8 @@ extends

    onVideoSizeChanged

    default void onVideoSizeChanged​(VideoSize videoSize)
    -
    Description copied from interface: VideoListener
    Called each time there's a change in the size of the video being rendered.
    -
    Specified by:
    -
    onVideoSizeChanged in interface VideoListener
    Parameters:
    videoSize - The new size of the video.
    @@ -970,15 +934,12 @@ extends default void onSurfaceSizeChanged​(int width, int height) -
    Called each time there's a change in the size of the surface onto which the video is being rendered.
    -
    Specified by:
    -
    onSurfaceSizeChanged in interface VideoListener
    Parameters:
    -
    width - The surface width in pixels. May be C.LENGTH_UNSET if unknown, or 0 if the - video is not rendered onto a surface.
    +
    width - The surface width in pixels. May be C.LENGTH_UNSET if unknown, or 0 if + the video is not rendered onto a surface.
    height - The surface height in pixels. May be C.LENGTH_UNSET if unknown, or 0 if the video is not rendered onto a surface.
    @@ -991,13 +952,8 @@ extends

    onRenderedFirstFrame

    default void onRenderedFirstFrame()
    -
    Called when a frame is rendered for the first time since setting the surface, or since the renderer was reset, or since the stream being rendered was changed.
    -
    -
    Specified by:
    -
    onRenderedFirstFrame in interface VideoListener
    -
  • @@ -1007,14 +963,11 @@ extends

    onCues

    default void onCues​(List<Cue> cues)
    -
    Description copied from interface: TextOutput
    Called when there is a change in the Cues.

    cues is in ascending order of priority. If any of the cue boxes overlap when displayed, the Cue nearer the end of the list should be shown on top.

    -
    Specified by:
    -
    onCues in interface TextOutput
    Parameters:
    cues - The Cues. May be empty.
    @@ -1027,11 +980,8 @@ extends

    onMetadata

    default void onMetadata​(Metadata metadata)
    -
    Description copied from interface: MetadataOutput
    -
    Called when there is metadata associated with current playback time.
    +
    Called when there is metadata associated with the current playback time.
    -
    Specified by:
    -
    onMetadata in interface MetadataOutput
    Parameters:
    metadata - The metadata.
    @@ -1049,7 +999,11 @@ extends MediaMetadata is a combination of the MediaItem.mediaMetadata and the static and dynamic metadata from the track - selections' formats and MetadataOutput.onMetadata(Metadata). + selections' formats
    and onMetadata(Metadata). If a field is populated in + the MediaItem.mediaMetadata, it will be prioritised above the same field coming from + static or dynamic metadata. + +

    This method may be called multiple times in quick succession.

    Player.EventListener.onEvents(Player, Events) will also be called to report this event along with other events that happen in the same Looper message queue iteration. diff --git a/docs/doc/reference/com/google/android/exoplayer2/Player.MediaItemTransitionReason.html b/docs/doc/reference/com/google/android/exoplayer2/Player.MediaItemTransitionReason.html index ca6b2f59b9..9aeb9e8ff3 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/Player.MediaItemTransitionReason.html +++ b/docs/doc/reference/com/google/android/exoplayer2/Player.MediaItemTransitionReason.html @@ -115,6 +115,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));


    @Documented
     @Retention(SOURCE)
    +@Target({FIELD,METHOD,PARAMETER,LOCAL_VARIABLE,TYPE_USE})
     public static @interface Player.MediaItemTransitionReason
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/Player.PlayWhenReadyChangeReason.html b/docs/doc/reference/com/google/android/exoplayer2/Player.PlayWhenReadyChangeReason.html index 5727e123a3..c859add3c2 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/Player.PlayWhenReadyChangeReason.html +++ b/docs/doc/reference/com/google/android/exoplayer2/Player.PlayWhenReadyChangeReason.html @@ -115,6 +115,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    @Documented
     @Retention(SOURCE)
    +@Target({FIELD,METHOD,PARAMETER,LOCAL_VARIABLE,TYPE_USE})
     public static @interface Player.PlayWhenReadyChangeReason
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/Player.PlaybackSuppressionReason.html b/docs/doc/reference/com/google/android/exoplayer2/Player.PlaybackSuppressionReason.html index adb9d25a81..e9449f426b 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/Player.PlaybackSuppressionReason.html +++ b/docs/doc/reference/com/google/android/exoplayer2/Player.PlaybackSuppressionReason.html @@ -115,6 +115,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    @Documented
     @Retention(SOURCE)
    +@Target({FIELD,METHOD,PARAMETER,LOCAL_VARIABLE,TYPE_USE})
     public static @interface Player.PlaybackSuppressionReason
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/Player.PositionInfo.html b/docs/doc/reference/com/google/android/exoplayer2/Player.PositionInfo.html index 56aad779c6..14ab0b9589 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/Player.PositionInfo.html +++ b/docs/doc/reference/com/google/android/exoplayer2/Player.PositionInfo.html @@ -207,6 +207,20 @@ implements +MediaItem +mediaItem + +
    The media item, or null if the timeline is empty.
    + + + +int +mediaItemIndex + +
    The media item index.
    + + + int periodIndex @@ -217,7 +231,7 @@ implements Object periodUid -
    The UID of the period, or null, if the timeline is empty.
    +
    The UID of the period, or null if the timeline is empty.
    @@ -231,14 +245,16 @@ implements int windowIndex -
    The window index.
    +
    Deprecated. +
    Use mediaItemIndex instead.
    +
    Object windowUid -
    The UID of the window, or null, if the timeline is empty.
    +
    The UID of the window, or null if the timeline is empty.
    @@ -259,8 +275,9 @@ implements Description -PositionInfo​(Object windowUid, - int windowIndex, +PositionInfo​(Object windowUid, + int mediaItemIndex, + MediaItem mediaItem, Object periodUid, int periodIndex, long positionMs, @@ -271,6 +288,22 @@ implements Creates an instance. + +PositionInfo​(Object windowUid, + int mediaItemIndex, + Object periodUid, + int periodIndex, + long positionMs, + long contentPositionMs, + int adGroupIndex, + int adIndexInAdGroup) + + + + @@ -338,7 +371,7 @@ implements Object windowUid -
    The UID of the window, or null, if the timeline is empty.
    +
    The UID of the window, or null if the timeline is empty.
    @@ -347,8 +380,32 @@ public final 
  • windowIndex

    -
    public final int windowIndex
    -
    The window index.
    +
    @Deprecated
    +public final int windowIndex
    +
    Deprecated. +
    Use mediaItemIndex instead.
    +
    +
  • + + + + +
      +
    • +

      mediaItemIndex

      +
      public final int mediaItemIndex
      +
      The media item index.
      +
    • +
    + + + +
      +
    • +

      mediaItem

      +
      @Nullable
      +public final MediaItem mediaItem
      +
      The media item, or null if the timeline is empty.
    @@ -359,7 +416,7 @@ public final Object periodUid -
    The UID of the period, or null, if the timeline is empty.
    +
    The UID of the period, or null if the timeline is empty.
    @@ -437,12 +494,37 @@ public final  + + + +
    • PositionInfo

      public PositionInfo​(@Nullable
                           Object windowUid,
      -                    int windowIndex,
      +                    int mediaItemIndex,
      +                    @Nullable
      +                    MediaItem mediaItem,
                           @Nullable
                           Object periodUid,
                           int periodIndex,
      diff --git a/docs/doc/reference/com/google/android/exoplayer2/Player.RepeatMode.html b/docs/doc/reference/com/google/android/exoplayer2/Player.RepeatMode.html
      index 6c7fa3a240..f2c8abd799 100644
      --- a/docs/doc/reference/com/google/android/exoplayer2/Player.RepeatMode.html
      +++ b/docs/doc/reference/com/google/android/exoplayer2/Player.RepeatMode.html
      @@ -115,6 +115,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
       
      @Documented
       @Retention(SOURCE)
      +@Target({FIELD,METHOD,PARAMETER,LOCAL_VARIABLE,TYPE_USE})
       public static @interface Player.RepeatMode
    • diff --git a/docs/doc/reference/com/google/android/exoplayer2/Player.State.html b/docs/doc/reference/com/google/android/exoplayer2/Player.State.html index f4758744ae..2e49a77eda 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/Player.State.html +++ b/docs/doc/reference/com/google/android/exoplayer2/Player.State.html @@ -115,6 +115,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
      @Documented
       @Retention(SOURCE)
      +@Target({FIELD,METHOD,PARAMETER,LOCAL_VARIABLE,TYPE_USE})
       public static @interface Player.State
      diff --git a/docs/doc/reference/com/google/android/exoplayer2/Player.TimelineChangeReason.html b/docs/doc/reference/com/google/android/exoplayer2/Player.TimelineChangeReason.html index 34514269e3..9972d82602 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/Player.TimelineChangeReason.html +++ b/docs/doc/reference/com/google/android/exoplayer2/Player.TimelineChangeReason.html @@ -115,6 +115,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
      @Documented
       @Retention(SOURCE)
      +@Target({FIELD,METHOD,PARAMETER,LOCAL_VARIABLE,TYPE_USE})
       public static @interface Player.TimelineChangeReason
      diff --git a/docs/doc/reference/com/google/android/exoplayer2/Player.html b/docs/doc/reference/com/google/android/exoplayer2/Player.html index 06a5f53fd3..a2e407a755 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/Player.html +++ b/docs/doc/reference/com/google/android/exoplayer2/Player.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":38,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6,"i8":6,"i9":6,"i10":6,"i11":6,"i12":6,"i13":6,"i14":6,"i15":6,"i16":6,"i17":6,"i18":6,"i19":6,"i20":6,"i21":6,"i22":6,"i23":6,"i24":6,"i25":6,"i26":6,"i27":6,"i28":6,"i29":38,"i30":6,"i31":6,"i32":6,"i33":6,"i34":6,"i35":6,"i36":6,"i37":6,"i38":6,"i39":6,"i40":6,"i41":6,"i42":6,"i43":6,"i44":6,"i45":6,"i46":6,"i47":6,"i48":6,"i49":6,"i50":6,"i51":6,"i52":6,"i53":6,"i54":6,"i55":6,"i56":38,"i57":6,"i58":38,"i59":6,"i60":6,"i61":6,"i62":6,"i63":6,"i64":6,"i65":6,"i66":6,"i67":6,"i68":6,"i69":6,"i70":6,"i71":38,"i72":6,"i73":6,"i74":6,"i75":38,"i76":6,"i77":38,"i78":6,"i79":6,"i80":6,"i81":6,"i82":6,"i83":6,"i84":6,"i85":6,"i86":6,"i87":6,"i88":6,"i89":6,"i90":6,"i91":6,"i92":6,"i93":6,"i94":6,"i95":6,"i96":6,"i97":6,"i98":6,"i99":6,"i100":6,"i101":6,"i102":6,"i103":6,"i104":6,"i105":6,"i106":6,"i107":6,"i108":6,"i109":6,"i110":6,"i111":38}; +var data = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6,"i8":6,"i9":6,"i10":6,"i11":6,"i12":6,"i13":6,"i14":6,"i15":6,"i16":6,"i17":6,"i18":6,"i19":6,"i20":6,"i21":6,"i22":6,"i23":6,"i24":6,"i25":6,"i26":6,"i27":6,"i28":6,"i29":6,"i30":6,"i31":38,"i32":38,"i33":6,"i34":38,"i35":6,"i36":6,"i37":6,"i38":6,"i39":6,"i40":6,"i41":6,"i42":6,"i43":38,"i44":6,"i45":6,"i46":6,"i47":6,"i48":6,"i49":6,"i50":6,"i51":38,"i52":6,"i53":6,"i54":6,"i55":6,"i56":6,"i57":6,"i58":6,"i59":6,"i60":38,"i61":6,"i62":38,"i63":38,"i64":6,"i65":38,"i66":6,"i67":6,"i68":6,"i69":6,"i70":6,"i71":38,"i72":38,"i73":38,"i74":6,"i75":6,"i76":6,"i77":6,"i78":6,"i79":6,"i80":38,"i81":6,"i82":6,"i83":6,"i84":38,"i85":6,"i86":6,"i87":6,"i88":6,"i89":6,"i90":6,"i91":6,"i92":6,"i93":6,"i94":6,"i95":6,"i96":6,"i97":38,"i98":6,"i99":6,"i100":38,"i101":6,"i102":6,"i103":6,"i104":6,"i105":6,"i106":6,"i107":6,"i108":6,"i109":6,"i110":6,"i111":6,"i112":6,"i113":6,"i114":6,"i115":6,"i116":6,"i117":6,"i118":6,"i119":6,"i120":6,"i121":6,"i122":38}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],32:["t6","Deprecated Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -126,7 +126,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    All Known Implementing Classes:
    -
    BasePlayer, CastPlayer, ForwardingPlayer, SimpleExoPlayer, StubExoPlayer
    +
    BasePlayer, CastPlayer, ForwardingPlayer, SimpleExoPlayer, StubExoPlayer, StubPlayer

    public interface Player
    @@ -143,10 +143,8 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); @@ -311,7 +309,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); static int COMMAND_GET_CURRENT_MEDIA_ITEM -
    Command to get the MediaItem of the current window.
    +
    Command to get the currently playing MediaItem.
    @@ -344,130 +342,180 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); static int +COMMAND_GET_TRACK_INFOS + +
    Command to get track infos.
    + + + +static int COMMAND_GET_VOLUME
    Command to get the player volume.
    - + static int COMMAND_INVALID
    Represents an invalid Player.Command.
    - + static int COMMAND_PLAY_PAUSE
    Command to start, pause or resume playback.
    + +static int +COMMAND_PREPARE + +
    Command to prepare the player.
    + + static int -COMMAND_PREPARE_STOP +COMMAND_SEEK_BACK -
    Command to prepare the player, stop playback or release the player.
    +
    Command to seek back by a fixed increment into the current MediaItem.
    static int -COMMAND_SEEK_BACK +COMMAND_SEEK_FORWARD -
    Command to seek back by a fixed increment into the current window.
    +
    Command to seek forward by a fixed increment into the current MediaItem.
    static int -COMMAND_SEEK_FORWARD +COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM -
    Command to seek forward by a fixed increment into the current window.
    +
    Command to seek anywhere into the current MediaItem.
    static int COMMAND_SEEK_IN_CURRENT_WINDOW -
    Command to seek anywhere into the current window.
    +
    Deprecated. + +
    static int COMMAND_SEEK_TO_DEFAULT_POSITION -
    Command to seek to the default position of the current window.
    +
    Command to seek to the default position of the current MediaItem.
    static int +COMMAND_SEEK_TO_MEDIA_ITEM + +
    Command to seek anywhere in any MediaItem.
    + + + +static int COMMAND_SEEK_TO_NEXT -
    Command to seek to a later position in the current or next window.
    +
    Command to seek to a later position in the current or next MediaItem.
    + + + +static int +COMMAND_SEEK_TO_NEXT_MEDIA_ITEM + +
    Command to seek to the default position of the next MediaItem.
    static int COMMAND_SEEK_TO_NEXT_WINDOW -
    Command to seek to the default position of the next window.
    +
    Deprecated. + +
    static int COMMAND_SEEK_TO_PREVIOUS -
    Command to seek to an earlier position in the current or previous window.
    +
    Command to seek to an earlier position in the current or previous MediaItem.
    static int -COMMAND_SEEK_TO_PREVIOUS_WINDOW +COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM -
    Command to seek to the default position of the previous window.
    +
    Command to seek to the default position of the previous MediaItem.
    static int -COMMAND_SEEK_TO_WINDOW +COMMAND_SEEK_TO_PREVIOUS_WINDOW -
    Command to seek anywhere in any window.
    +
    Deprecated. + +
    static int +COMMAND_SEEK_TO_WINDOW + +
    Deprecated. + +
    + + + +static int COMMAND_SET_DEVICE_VOLUME
    Command to set the device volume and mute it.
    - + static int COMMAND_SET_MEDIA_ITEMS_METADATA
    Command to set the MediaItems metadata.
    - + static int COMMAND_SET_REPEAT_MODE
    Command to set the repeat mode.
    - + static int COMMAND_SET_SHUFFLE_MODE
    Command to enable shuffling.
    - + static int COMMAND_SET_SPEED_AND_PITCH
    Command to set the playback speed and pitch.
    + +static int +COMMAND_SET_TRACK_SELECTION_PARAMETERS + +
    Command to set the player's track selection parameters.
    + + static int COMMAND_SET_VIDEO_SURFACE @@ -484,33 +532,40 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); static int +COMMAND_STOP + +
    Command to stop playback or release the player.
    + + + +static int DISCONTINUITY_REASON_AUTO_TRANSITION
    Automatic playback transition from one period in the timeline to the next.
    - + static int DISCONTINUITY_REASON_INTERNAL
    Discontinuity introduced internally (e.g.
    - + static int DISCONTINUITY_REASON_REMOVE
    Discontinuity caused by the removal of the current period from the Timeline.
    - + static int DISCONTINUITY_REASON_SEEK
    Seek within the current period or to another period.
    - + static int DISCONTINUITY_REASON_SEEK_ADJUSTMENT @@ -518,141 +573,132 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); permitted to be inexact. - + static int DISCONTINUITY_REASON_SKIP
    Discontinuity introduced by a skipped period (for instance a skipped ad).
    - + static int EVENT_AVAILABLE_COMMANDS_CHANGED -
    isCommandAvailable(int) changed for at least one Player.Command.
    +
    isCommandAvailable(int) changed for at least one Player.Command.
    - + static int EVENT_IS_LOADING_CHANGED
    isLoading() ()} changed.
    - + static int EVENT_IS_PLAYING_CHANGED
    isPlaying() changed.
    - + static int EVENT_MAX_SEEK_TO_PREVIOUS_POSITION_CHANGED - + static int EVENT_MEDIA_ITEM_TRANSITION
    getCurrentMediaItem() changed or the player started repeating the current item.
    - + static int EVENT_MEDIA_METADATA_CHANGED - + static int EVENT_PLAY_WHEN_READY_CHANGED - + static int EVENT_PLAYBACK_PARAMETERS_CHANGED - + static int EVENT_PLAYBACK_STATE_CHANGED - + static int EVENT_PLAYBACK_SUPPRESSION_REASON_CHANGED - + static int EVENT_PLAYER_ERROR - + static int EVENT_PLAYLIST_METADATA_CHANGED - + static int EVENT_POSITION_DISCONTINUITY
    A position discontinuity occurred.
    - + static int EVENT_REPEAT_MODE_CHANGED - + static int EVENT_SEEK_BACK_INCREMENT_CHANGED - + static int EVENT_SEEK_FORWARD_INCREMENT_CHANGED - + static int EVENT_SHUFFLE_MODE_ENABLED_CHANGED - -static int -EVENT_STATIC_METADATA_CHANGED - -
    Deprecated. -
    Use EVENT_MEDIA_METADATA_CHANGED for structured metadata changes.
    -
    - - static int EVENT_TIMELINE_CHANGED @@ -662,110 +708,117 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); static int -EVENT_TRACKS_CHANGED +EVENT_TRACK_SELECTION_PARAMETERS_CHANGED - + static int +EVENT_TRACKS_CHANGED + + + + + +static int MEDIA_ITEM_TRANSITION_REASON_AUTO
    Playback has automatically transitioned to the next media item.
    - + static int MEDIA_ITEM_TRANSITION_REASON_PLAYLIST_CHANGED
    The current media item has changed because of a change in the playlist.
    - + static int MEDIA_ITEM_TRANSITION_REASON_REPEAT
    The media item has been repeated.
    - + static int MEDIA_ITEM_TRANSITION_REASON_SEEK
    A seek to another media item has occurred.
    - + static int PLAY_WHEN_READY_CHANGE_REASON_AUDIO_BECOMING_NOISY
    Playback has been paused to avoid becoming noisy.
    - + static int PLAY_WHEN_READY_CHANGE_REASON_AUDIO_FOCUS_LOSS
    Playback has been paused because of a loss of audio focus.
    - + static int PLAY_WHEN_READY_CHANGE_REASON_END_OF_MEDIA_ITEM
    Playback has been paused at the end of a media item.
    - + static int PLAY_WHEN_READY_CHANGE_REASON_REMOTE
    Playback has been started or paused because of a remote change.
    - + static int PLAY_WHEN_READY_CHANGE_REASON_USER_REQUEST
    Playback has been started or paused by a call to setPlayWhenReady(boolean).
    - + static int PLAYBACK_SUPPRESSION_REASON_NONE
    Playback is not suppressed.
    - + static int PLAYBACK_SUPPRESSION_REASON_TRANSIENT_AUDIO_FOCUS_LOSS
    Playback is suppressed due to transient audio focus loss.
    - + static int REPEAT_MODE_ALL
    Repeats the entire timeline infinitely.
    - + static int REPEAT_MODE_OFF
    Normal playback without repetition.
    - + static int REPEAT_MODE_ONE -
    Repeats the currently playing window infinitely during ongoing playback.
    +
    Repeats the currently playing MediaItem infinitely during ongoing playback.
    - + static int STATE_BUFFERING @@ -773,35 +826,35 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); so. - + static int STATE_ENDED
    The player has finished playing the media.
    - + static int STATE_IDLE
    The player is idle, and must be prepared before it will play the media.
    - + static int STATE_READY
    The player is able to immediately play from its current position.
    - + static int TIMELINE_CHANGE_REASON_PLAYLIST_CHANGED
    Timeline changed as a result of a change of the playlist items or the order of the items.
    - + static int TIMELINE_CHANGE_REASON_SOURCE_UPDATE @@ -828,21 +881,12 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); void -addListener​(Player.EventListener listener) - -
    Deprecated. - -
    - - - -void addListener​(Player.Listener listener)
    Registers a listener to receive all events from the player.
    - + void addMediaItem​(int index, MediaItem mediaItem) @@ -850,14 +894,14 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    Adds a media item at the given index of the playlist.
    - + void addMediaItem​(MediaItem mediaItem)
    Adds a media item to the end of the playlist.
    - + void addMediaItems​(int index, List<MediaItem> mediaItems) @@ -865,13 +909,20 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    Adds a list of media items at the given index of the playlist.
    - + void addMediaItems​(List<MediaItem> mediaItems)
    Adds a list of media items to the end of the playlist.
    + +boolean +canAdvertiseSession() + +
    Returns whether the player can be used to advertise a media session.
    + + void clearMediaItems() @@ -949,7 +1000,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); int getBufferedPercentage() -
    Returns an estimate of the percentage in the current content window or ad up to which data is +
    Returns an estimate of the percentage in the current content or ad up to which data is buffered, or 0 if no estimate is available.
    @@ -957,8 +1008,8 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); long getBufferedPosition() -
    Returns an estimate of the position in the current content window or ad up to which data is - buffered, in milliseconds.
    +
    Returns an estimate of the position in the current content or ad up to which data is buffered, + in milliseconds.
    @@ -966,15 +1017,15 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); getContentBufferedPosition()
    If isPlayingAd() returns true, returns an estimate of the content position in - the current content window up to which data is buffered, in milliseconds.
    + the current content up to which data is buffered, in milliseconds.
    long getContentDuration() -
    If isPlayingAd() returns true, returns the duration of the current content - window in milliseconds, or C.TIME_UNSET if the duration is not known.
    +
    If isPlayingAd() returns true, returns the duration of the current content in + milliseconds, or C.TIME_UNSET if the duration is not known.
    @@ -1012,8 +1063,8 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); getCurrentLiveOffset()
    Returns the offset of the current playback position from the live edge in milliseconds, or - C.TIME_UNSET if the current window isn't live or the - offset is unknown.
    + C.TIME_UNSET if the current MediaItem isCurrentMediaItemLive() isn't + live} or the offset is unknown. @@ -1027,34 +1078,30 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); MediaItem getCurrentMediaItem() -
    Returns the media item of the current window in the timeline.
    +
    Returns the currently playing MediaItem.
    int +getCurrentMediaItemIndex() + +
    Returns the index of the current MediaItem in the timeline, or the prospective index if the current timeline is + empty.
    + + + +int getCurrentPeriodIndex()
    Returns the index of the period currently being played.
    - + long getCurrentPosition() -
    Returns the playback position in the current content window or ad, in milliseconds, or the - prospective position in milliseconds if the current timeline is - empty.
    - - - -List<Metadata> -getCurrentStaticMetadata() - -
    Deprecated. -
    Use getMediaMetadata() and Player.Listener.onMediaMetadataChanged(MediaMetadata) for access to structured metadata, or - access the raw static metadata directly from the track - selections' formats.
    -
    +
    Returns the playback position in the current content or ad, in milliseconds, or the prospective + position in milliseconds if the current timeline is empty.
    @@ -1068,67 +1115,80 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); TrackGroupArray getCurrentTrackGroups() -
    Returns the available track groups.
    +
    Deprecated. + +
    TrackSelectionArray getCurrentTrackSelections() -
    Returns the current track selections.
    +
    Deprecated. + +
    -int -getCurrentWindowIndex() +TracksInfo +getCurrentTracksInfo() -
    Returns the index of the current window in the timeline, or the prospective window index if the current timeline is empty.
    +
    Returns the available tracks, as well as the tracks' support, type, and selection status.
    -DeviceInfo +int +getCurrentWindowIndex() + +
    Deprecated. + +
    + + + +DeviceInfo getDeviceInfo()
    Gets the device information.
    - + int getDeviceVolume()
    Gets the current volume of the device.
    - + long getDuration() -
    Returns the duration of the current content window or ad in milliseconds, or C.TIME_UNSET if the duration is not known.
    - - - -int -getMaxSeekToPreviousPosition() - -
    Returns the maximum position for which seekToPrevious() seeks to the previous window, - in milliseconds.
    +
    Returns the duration of the current content or ad in milliseconds, or C.TIME_UNSET if + the duration is not known.
    +long +getMaxSeekToPreviousPosition() + +
    Returns the maximum position for which seekToPrevious() seeks to the previous MediaItem, in milliseconds.
    + + + MediaItem getMediaItemAt​(int index)
    Returns the MediaItem at the given index.
    - + int getMediaItemCount()
    Returns the number of media items in the playlist.
    - + MediaMetadata getMediaMetadata() @@ -1136,214 +1196,284 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); supported. - + +int +getNextMediaItemIndex() + +
    Returns the index of the MediaItem that will be played if seekToNextMediaItem() is called, which may depend on the current repeat mode and whether + shuffle mode is enabled.
    + + + int getNextWindowIndex() -
    Returns the index of the window that will be played if seekToNextWindow() is called, - which may depend on the current repeat mode and whether shuffle mode is enabled.
    +
    Deprecated. + +
    - + PlaybackParameters getPlaybackParameters()
    Returns the currently active playback parameters.
    - -int + +@com.google.android.exoplayer2.Player.State int getPlaybackState()
    Returns the current playback state of the player.
    - -int + +@com.google.android.exoplayer2.Player.PlaybackSuppressionReason int getPlaybackSuppressionReason()
    Returns the reason why playback is suppressed even though getPlayWhenReady() is true, or PLAYBACK_SUPPRESSION_REASON_NONE if playback is not suppressed.
    - + PlaybackException getPlayerError()
    Returns the error that caused playback to fail.
    - + MediaMetadata getPlaylistMetadata()
    Returns the playlist MediaMetadata, as set by setPlaylistMetadata(MediaMetadata), or MediaMetadata.EMPTY if not supported.
    - + boolean getPlayWhenReady()
    Whether playback will proceed when getPlaybackState() == STATE_READY.
    - + +int +getPreviousMediaItemIndex() + +
    Returns the index of the MediaItem that will be played if seekToPreviousMediaItem() is called, which may depend on the current repeat mode and whether + shuffle mode is enabled.
    + + + int getPreviousWindowIndex() -
    Returns the index of the window that will be played if seekToPreviousWindow() is - called, which may depend on the current repeat mode and whether shuffle mode is enabled.
    +
    Deprecated. + +
    - -int + +@com.google.android.exoplayer2.Player.RepeatMode int getRepeatMode()
    Returns the current Player.RepeatMode used for playback.
    - + long getSeekBackIncrement()
    Returns the seekBack() increment.
    - + long getSeekForwardIncrement()
    Returns the seekForward() increment.
    - + boolean getShuffleModeEnabled() -
    Returns whether shuffling of windows is enabled.
    +
    Returns whether shuffling of media items is enabled.
    - + long getTotalBufferedDuration()
    Returns an estimate of the total buffered duration from the current position, in milliseconds.
    - + +TrackSelectionParameters +getTrackSelectionParameters() + +
    Returns the parameters constraining the track selection.
    + + + VideoSize getVideoSize()
    Gets the size of the video.
    - + float getVolume()
    Returns the audio volume, with 0 being silence and 1 being unity gain (signal unchanged).
    - + boolean hasNext()
    Deprecated. -
    Use hasNextWindow() instead.
    +
    Use hasNextMediaItem() instead.
    - + +boolean +hasNextMediaItem() + +
    Returns whether a next MediaItem exists, which may depend on the current repeat mode + and whether shuffle mode is enabled.
    + + + boolean hasNextWindow() -
    Returns whether a next window exists, which may depend on the current repeat mode and whether - shuffle mode is enabled.
    +
    Deprecated. +
    Use hasNextMediaItem() instead.
    +
    - + boolean hasPrevious()
    Deprecated. -
    Use hasPreviousWindow() instead.
    +
    - + boolean -hasPreviousWindow() +hasPreviousMediaItem() -
    Returns whether a previous window exists, which may depend on the current repeat mode and +
    Returns whether a previous media item exists, which may depend on the current repeat mode and whether shuffle mode is enabled.
    - + +boolean +hasPreviousWindow() + +
    Deprecated. + +
    + + + void increaseDeviceVolume()
    Increases the volume of the device.
    - + boolean -isCommandAvailable​(int command) +isCommandAvailable​(@com.google.android.exoplayer2.Player.Command int command)
    Returns whether the provided Player.Command is available.
    - + +boolean +isCurrentMediaItemDynamic() + +
    Returns whether the current MediaItem is dynamic (may change when the Timeline + is updated), or false if the Timeline is empty.
    + + + +boolean +isCurrentMediaItemLive() + +
    Returns whether the current MediaItem is live, or false if the Timeline + is empty.
    + + + +boolean +isCurrentMediaItemSeekable() + +
    Returns whether the current MediaItem is seekable, or false if the Timeline is empty.
    + + + boolean isCurrentWindowDynamic() -
    Returns whether the current window is dynamic, or false if the Timeline is - empty.
    +
    Deprecated. + +
    - + boolean isCurrentWindowLive() -
    Returns whether the current window is live, or false if the Timeline is empty.
    +
    Deprecated. + +
    - + boolean isCurrentWindowSeekable() -
    Returns whether the current window is seekable, or false if the Timeline is - empty.
    +
    Deprecated. + +
    - + boolean isDeviceMuted()
    Gets whether the device is muted or not.
    - + boolean isLoading()
    Whether the player is currently loading the source.
    - + boolean isPlaying()
    Returns whether the player is playing, i.e.
    - + boolean isPlayingAd()
    Returns whether the player is currently playing an ad.
    - + void moveMediaItem​(int currentIndex, int newIndex) @@ -1351,7 +1481,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    Moves the media item at the current index to the new index.
    - + void moveMediaItems​(int fromIndex, int toIndex, @@ -1360,76 +1490,67 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    Moves the media item range to the new index.
    - + void next()
    Deprecated. -
    Use seekToNextWindow() instead.
    +
    - + void pause()
    Pauses playback.
    - + void play()
    Resumes playback as soon as getPlaybackState() == STATE_READY.
    - + void prepare()
    Prepares the player.
    - + void previous()
    Deprecated. - +
    - + void release()
    Releases the player.
    - -void -removeListener​(Player.EventListener listener) - -
    Deprecated. - -
    - - - + void removeListener​(Player.Listener listener)
    Unregister a listener registered through addListener(Listener).
    - + void removeMediaItem​(int index)
    Removes the media item at the given index of the playlist.
    - + void removeMediaItems​(int fromIndex, int toIndex) @@ -1437,94 +1558,113 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    Removes a range of media items from the playlist.
    - + void seekBack() -
    Seeks back in the current window by getSeekBackIncrement() milliseconds.
    - - - -void -seekForward() - -
    Seeks forward in the current window by getSeekForwardIncrement() milliseconds.
    - - - -void -seekTo​(int windowIndex, - long positionMs) - -
    Seeks to a position specified in milliseconds in the specified window.
    - - - -void -seekTo​(long positionMs) - -
    Seeks to a position specified in milliseconds in the current window.
    - - - -void -seekToDefaultPosition() - -
    Seeks to the default position associated with the current window.
    - - - -void -seekToDefaultPosition​(int windowIndex) - -
    Seeks to the default position associated with the specified window.
    - - - -void -seekToNext() - -
    Seeks to a later position in the current or next window (if available).
    - - - -void -seekToNextWindow() - -
    Seeks to the default position of the next window, which may depend on the current repeat mode - and whether shuffle mode is enabled.
    - - - -void -seekToPrevious() - -
    Seeks to an earlier position in the current or previous window (if available).
    +
    Seeks back in the current MediaItem by getSeekBackIncrement() milliseconds.
    void -seekToPreviousWindow() +seekForward() -
    Seeks to the default position of the previous window, which may depend on the current repeat - mode and whether shuffle mode is enabled.
    +
    Seeks forward in the current MediaItem by getSeekForwardIncrement() + milliseconds.
    void +seekTo​(int mediaItemIndex, + long positionMs) + +
    Seeks to a position specified in milliseconds in the specified MediaItem.
    + + + +void +seekTo​(long positionMs) + +
    Seeks to a position specified in milliseconds in the current MediaItem.
    + + + +void +seekToDefaultPosition() + +
    Seeks to the default position associated with the current MediaItem.
    + + + +void +seekToDefaultPosition​(int mediaItemIndex) + +
    Seeks to the default position associated with the specified MediaItem.
    + + + +void +seekToNext() + +
    Seeks to a later position in the current or next MediaItem (if available).
    + + + +void +seekToNextMediaItem() + +
    Seeks to the default position of the next MediaItem, which may depend on the current + repeat mode and whether shuffle mode is enabled.
    + + + +void +seekToNextWindow() + +
    Deprecated. + +
    + + + +void +seekToPrevious() + +
    Seeks to an earlier position in the current or previous MediaItem (if available).
    + + + +void +seekToPreviousMediaItem() + +
    Seeks to the default position of the previous MediaItem, which may depend on the + current repeat mode and whether shuffle mode is enabled.
    + + + +void +seekToPreviousWindow() + +
    Deprecated. + +
    + + + +void setDeviceMuted​(boolean muted)
    Sets the mute state of the device.
    - + void setDeviceVolume​(int volume)
    Sets the volume of the device.
    - + void setMediaItem​(MediaItem mediaItem) @@ -1532,7 +1672,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); default position.
    - + void setMediaItem​(MediaItem mediaItem, boolean resetPosition) @@ -1540,7 +1680,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    Clears the playlist and adds the specified MediaItem.
    - + void setMediaItem​(MediaItem mediaItem, long startPositionMs) @@ -1548,7 +1688,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    Clears the playlist and adds the specified MediaItem.
    - + void setMediaItems​(List<MediaItem> mediaItems) @@ -1556,7 +1696,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); the default position. - + void setMediaItems​(List<MediaItem> mediaItems, boolean resetPosition) @@ -1564,65 +1704,72 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    Clears the playlist and adds the specified MediaItems.
    - + void setMediaItems​(List<MediaItem> mediaItems, - int startWindowIndex, + int startIndex, long startPositionMs)
    Clears the playlist and adds the specified MediaItems.
    - + void setPlaybackParameters​(PlaybackParameters playbackParameters)
    Attempts to set the playback parameters.
    - + void setPlaybackSpeed​(float speed)
    Changes the rate at which playback occurs.
    - + void setPlaylistMetadata​(MediaMetadata mediaMetadata)
    Sets the playlist MediaMetadata.
    - + void setPlayWhenReady​(boolean playWhenReady)
    Sets whether playback should proceed when getPlaybackState() == STATE_READY.
    - + void -setRepeatMode​(int repeatMode) +setRepeatMode​(@com.google.android.exoplayer2.Player.RepeatMode int repeatMode)
    Sets the Player.RepeatMode to be used for playback.
    - + void setShuffleModeEnabled​(boolean shuffleModeEnabled) -
    Sets whether shuffling of windows is enabled.
    +
    Sets whether shuffling of media items is enabled.
    - + +void +setTrackSelectionParameters​(TrackSelectionParameters parameters) + +
    Sets the parameters constraining the track selection.
    + + + void setVideoSurface​(Surface surface)
    Sets the Surface onto which video will be rendered.
    - + void setVideoSurfaceHolder​(SurfaceHolder surfaceHolder) @@ -1630,35 +1777,36 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); rendered. - + void setVideoSurfaceView​(SurfaceView surfaceView)
    Sets the SurfaceView onto which video will be rendered.
    - + void setVideoTextureView​(TextureView textureView)
    Sets the TextureView onto which video will be rendered.
    - + void -setVolume​(float audioVolume) +setVolume​(float volume) -
    Sets the audio volume, with 0 being silence and 1 being unity gain (signal unchanged).
    +
    Sets the audio volume, valid values are between 0 (silence) and 1 (unity gain, signal + unchanged), inclusive.
    - + void stop()
    Stops playback without resetting the player.
    - + void stop​(boolean reset) @@ -1850,7 +1998,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));

    REPEAT_MODE_OFF

    static final int REPEAT_MODE_OFF
    Normal playback without repetition. "Previous" and "Next" actions move to the previous and next - windows respectively, and do nothing when there is no previous or next window to move to.
    + MediaItem respectively, and do nothing when there is no previous or next MediaItem to move to.
    See Also:
    Constant Field Values
    @@ -1864,9 +2012,9 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  • REPEAT_MODE_ONE

    static final int REPEAT_MODE_ONE
    -
    Repeats the currently playing window infinitely during ongoing playback. "Previous" and "Next" - actions behave as they do in REPEAT_MODE_OFF, moving to the previous and next windows - respectively, and doing nothing when there is no previous or next window to move to.
    +
    Repeats the currently playing MediaItem infinitely during ongoing playback. "Previous" + and "Next" actions behave as they do in REPEAT_MODE_OFF, moving to the previous and + next MediaItem respectively, and doing nothing when there is no previous or next MediaItem to move to.
    See Also:
    Constant Field Values
    @@ -1882,8 +2030,8 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    static final int REPEAT_MODE_ALL
    Repeats the entire timeline infinitely. "Previous" and "Next" actions behave as they do in REPEAT_MODE_OFF, but with looping at the ends so that "Previous" when playing the - first window will move to the last window, and "Next" when playing the last window will move to - the first window.
    + first MediaItem will move to the last MediaItem, and "Next" when playing the + last MediaItem will move to the first MediaItem.
    See Also:
    Constant Field Values
    @@ -2108,30 +2256,13 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  • EVENT_TRACKS_CHANGED

    static final int EVENT_TRACKS_CHANGED
    - +
    See Also:
    Constant Field Values
  • - - - - @@ -2251,7 +2382,7 @@ static final int EVENT_STATIC_METADATA_CHANGED
  • EVENT_POSITION_DISCONTINUITY

    static final int EVENT_POSITION_DISCONTINUITY
    -
    A position discontinuity occurred. See Player.Listener.onPositionDiscontinuity(PositionInfo, +
    See Also:
    @@ -2280,7 +2411,7 @@ static final int EVENT_STATIC_METADATA_CHANGED
  • EVENT_AVAILABLE_COMMANDS_CHANGED

    static final int EVENT_AVAILABLE_COMMANDS_CHANGED
    -
    isCommandAvailable(int) changed for at least one Player.Command.
    +
    isCommandAvailable(int) changed for at least one Player.Command.
    See Also:
    Constant Field Values
    @@ -2357,6 +2488,20 @@ static final int EVENT_STATIC_METADATA_CHANGED
  • + + + + @@ -2371,17 +2516,31 @@ static final int EVENT_STATIC_METADATA_CHANGED
  • - +
    • -

      COMMAND_PREPARE_STOP

      -
      static final int COMMAND_PREPARE_STOP
      -
      Command to prepare the player, stop playback or release the player.
      +

      COMMAND_PREPARE

      +
      static final int COMMAND_PREPARE
      +
      Command to prepare the player.
      See Also:
      -
      Constant Field Values
      +
      Constant Field Values
      +
      +
    • +
    + + + +
      +
    • +

      COMMAND_STOP

      +
      static final int COMMAND_STOP
      +
      Command to stop playback or release the player.
      +
      +
      See Also:
      +
      Constant Field Values
    @@ -2392,35 +2551,69 @@ static final int EVENT_STATIC_METADATA_CHANGED
  • COMMAND_SEEK_TO_DEFAULT_POSITION

    static final int COMMAND_SEEK_TO_DEFAULT_POSITION
    -
    Command to seek to the default position of the current window.
    +
    Command to seek to the default position of the current MediaItem.
    See Also:
    Constant Field Values
  • + + + +
      +
    • +

      COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM

      +
      static final int COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM
      +
      Command to seek anywhere into the current MediaItem.
      +
      +
      See Also:
      +
      Constant Field Values
      +
      +
    • +
    + + + +
      +
    • +

      COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM

      +
      static final int COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM
      +
      Command to seek to the default position of the previous MediaItem.
      +
      +
      See Also:
      +
      Constant Field Values
      +
      +
    • +
    • COMMAND_SEEK_TO_PREVIOUS_WINDOW

      -
      static final int COMMAND_SEEK_TO_PREVIOUS_WINDOW
      -
      Command to seek to the default position of the previous window.
      +
      @Deprecated
      +static final int COMMAND_SEEK_TO_PREVIOUS_WINDOW
      +
      Deprecated. + +
      See Also:
      Constant Field Values
      @@ -2434,21 +2627,38 @@ static final int EVENT_STATIC_METADATA_CHANGED
    • COMMAND_SEEK_TO_PREVIOUS

      static final int COMMAND_SEEK_TO_PREVIOUS
      -
      Command to seek to an earlier position in the current or previous window.
      +
      Command to seek to an earlier position in the current or previous MediaItem.
      See Also:
      Constant Field Values
    + + + +
      +
    • +

      COMMAND_SEEK_TO_NEXT_MEDIA_ITEM

      +
      static final int COMMAND_SEEK_TO_NEXT_MEDIA_ITEM
      +
      Command to seek to the default position of the next MediaItem.
      +
      +
      See Also:
      +
      Constant Field Values
      +
      +
    • +
    • COMMAND_SEEK_TO_NEXT_WINDOW

      -
      static final int COMMAND_SEEK_TO_NEXT_WINDOW
      -
      Command to seek to the default position of the next window.
      +
      @Deprecated
      +static final int COMMAND_SEEK_TO_NEXT_WINDOW
      +
      Deprecated. + +
      See Also:
      Constant Field Values
      @@ -2462,21 +2672,38 @@ static final int EVENT_STATIC_METADATA_CHANGED
    • COMMAND_SEEK_TO_NEXT

      static final int COMMAND_SEEK_TO_NEXT
      -
      Command to seek to a later position in the current or next window.
      +
      Command to seek to a later position in the current or next MediaItem.
      See Also:
      Constant Field Values
    + + + +
      +
    • +

      COMMAND_SEEK_TO_MEDIA_ITEM

      +
      static final int COMMAND_SEEK_TO_MEDIA_ITEM
      +
      Command to seek anywhere in any MediaItem.
      +
      +
      See Also:
      +
      Constant Field Values
      +
      +
    • +
    • COMMAND_SEEK_TO_WINDOW

      -
      static final int COMMAND_SEEK_TO_WINDOW
      -
      Command to seek anywhere in any window.
      +
      @Deprecated
      +static final int COMMAND_SEEK_TO_WINDOW
      +
      Deprecated. + +
      See Also:
      Constant Field Values
      @@ -2490,7 +2717,7 @@ static final int EVENT_STATIC_METADATA_CHANGED
    • COMMAND_SEEK_BACK

      static final int COMMAND_SEEK_BACK
      -
      Command to seek back by a fixed increment into the current window.
      +
      Command to seek back by a fixed increment into the current MediaItem.
      See Also:
      Constant Field Values
      @@ -2504,7 +2731,7 @@ static final int EVENT_STATIC_METADATA_CHANGED
    • COMMAND_SEEK_FORWARD

      static final int COMMAND_SEEK_FORWARD
      -
      Command to seek forward by a fixed increment into the current window.
      +
      Command to seek forward by a fixed increment into the current MediaItem.
      See Also:
      Constant Field Values
      @@ -2560,7 +2787,7 @@ static final int EVENT_STATIC_METADATA_CHANGED
    • COMMAND_GET_CURRENT_MEDIA_ITEM

      static final int COMMAND_GET_CURRENT_MEDIA_ITEM
      -
      Command to get the MediaItem of the current window.
      +
      Command to get the currently playing MediaItem.
      See Also:
      Constant Field Values
      @@ -2735,6 +2962,34 @@ static final int EVENT_STATIC_METADATA_CHANGED
    + + + +
      +
    • +

      COMMAND_SET_TRACK_SELECTION_PARAMETERS

      +
      static final int COMMAND_SET_TRACK_SELECTION_PARAMETERS
      +
      Command to set the player's track selection parameters.
      +
      +
      See Also:
      +
      Constant Field Values
      +
      +
    • +
    + + + +
      +
    • +

      COMMAND_GET_TRACK_INFOS

      +
      static final int COMMAND_GET_TRACK_INFOS
      +
      Command to get track infos.
      +
      +
      See Also:
      +
      Constant Field Values
      +
      +
    • +
    @@ -2770,28 +3025,6 @@ static final int EVENT_STATIC_METADATA_CHANGED player and on which player events are received.
  • - - - -
      -
    • -

      addListener

      -
      @Deprecated
      -void addListener​(Player.EventListener listener)
      -
      Deprecated. - -
      -
      Registers a listener to receive events from the player. - -

      The listener's methods will be called on the thread that was used to construct the player. - However, if the thread used to construct the player does not have a Looper, then the - listener will be called on the main thread.

      -
      -
      Parameters:
      -
      listener - The listener to register.
      -
      -
    • -
    @@ -2801,34 +3034,13 @@ void addListener​(void addListener​(Player.Listener listener)
    Registers a listener to receive all events from the player. -

    The listener's methods will be called on the thread that was used to construct the player. - However, if the thread used to construct the player does not have a Looper, then the - listener will be called on the main thread.

    +

    The listener's methods will be called on the thread associated with getApplicationLooper().

    Parameters:
    listener - The listener to register.
    - - - - @@ -2873,7 +3085,7 @@ void removeListener​(MediaItems.
    resetPosition - Whether the playback position should be reset to the default position in the first Timeline.Window. If false, playback will start from the position defined - by getCurrentWindowIndex() and getCurrentPosition().
    + by getCurrentMediaItemIndex() and getCurrentPosition().
    @@ -2884,19 +3096,19 @@ void removeListener​(

    setMediaItems

    void setMediaItems​(List<MediaItem> mediaItems,
    -                   int startWindowIndex,
    +                   int startIndex,
                        long startPositionMs)
    Clears the playlist and adds the specified MediaItems.
    Parameters:
    mediaItems - The new MediaItems.
    -
    startWindowIndex - The window index to start playback from. If C.INDEX_UNSET is - passed, the current position is not reset.
    -
    startPositionMs - The position in milliseconds to start playback from. If C.TIME_UNSET is passed, the default position of the given window is used. In any case, if - startWindowIndex is set to C.INDEX_UNSET, this parameter is ignored and the - position is not reset at all.
    +
    startIndex - The MediaItem index to start playback from. If C.INDEX_UNSET + is passed, the current position is not reset.
    +
    startPositionMs - The position in milliseconds to start playback from. If C.TIME_UNSET is passed, the default position of the given MediaItem is used. In + any case, if startIndex is set to C.INDEX_UNSET, this parameter is ignored + and the position is not reset at all.
    Throws:
    -
    IllegalSeekPositionException - If the provided startWindowIndex is not within the +
    IllegalSeekPositionException - If the provided startIndex is not within the bounds of the list of media items.
    @@ -2945,7 +3157,7 @@ void removeListener​(Parameters:
    mediaItem - The new MediaItem.
    resetPosition - Whether the playback position should be reset to the default position. If - false, playback will start from the position defined by getCurrentWindowIndex() + false, playback will start from the position defined by getCurrentMediaItemIndex() and getCurrentPosition().
    @@ -3090,24 +3302,23 @@ void removeListener​(Clears the playlist. - + @@ -3178,14 +3398,14 @@ int getPlaybackState()
  • getPlaybackSuppressionReason

    @PlaybackSuppressionReason
    -int getPlaybackSuppressionReason()
    +@com.google.android.exoplayer2.Player.PlaybackSuppressionReason int getPlaybackSuppressionReason()
    Returns the reason why playback is suppressed even though getPlayWhenReady() is true, or PLAYBACK_SUPPRESSION_REASON_NONE if playback is not suppressed.
    Returns:
    The current playback suppression reason.
    See Also:
    -
    Player.Listener.onPlaybackSuppressionReasonChanged(int)
    +
    Player.Listener.onPlaybackSuppressionReasonChanged(int)
  • @@ -3284,18 +3504,18 @@ int getPlaybackSuppressionReason()
    Returns:
    Whether playback will proceed when ready.
    See Also:
    -
    Player.Listener.onPlayWhenReadyChanged(boolean, int)
    +
    Player.Listener.onPlayWhenReadyChanged(boolean, int)
    - + @@ -3327,7 +3547,7 @@ int getRepeatMode()
  • setShuffleModeEnabled

    void setShuffleModeEnabled​(boolean shuffleModeEnabled)
    -
    Sets whether shuffling of windows is enabled.
    +
    Sets whether shuffling of media items is enabled.
    Parameters:
    shuffleModeEnabled - Whether shuffling is enabled.
    @@ -3341,7 +3561,7 @@ int getRepeatMode()
  • getShuffleModeEnabled

    boolean getShuffleModeEnabled()
    -
    Returns whether shuffling of windows is enabled.
    +
    Returns whether shuffling of media items is enabled.
    See Also:
    Player.Listener.onShuffleModeEnabledChanged(boolean)
    @@ -3371,9 +3591,9 @@ int getRepeatMode()
  • seekToDefaultPosition

    void seekToDefaultPosition()
    -
    Seeks to the default position associated with the current window. The position can depend on - the type of media being played. For live streams it will typically be the live edge of the - window. For other streams it will typically be the start of the window.
    +
    Seeks to the default position associated with the current MediaItem. The position can + depend on the type of media being played. For live streams it will typically be the live edge. + For other streams it will typically be the start.
  • @@ -3382,17 +3602,17 @@ int getRepeatMode() @@ -3403,11 +3623,11 @@ int getRepeatMode()
  • seekTo

    void seekTo​(long positionMs)
    -
    Seeks to a position specified in milliseconds in the current window.
    +
    Seeks to a position specified in milliseconds in the current MediaItem.
    Parameters:
    -
    positionMs - The seek position in the current window, or C.TIME_UNSET to seek to - the window's default position.
    +
    positionMs - The seek position in the current MediaItem, or C.TIME_UNSET + to seek to the media item's default position.
  • @@ -3417,17 +3637,17 @@ int getRepeatMode()
    • seekTo

      -
      void seekTo​(int windowIndex,
      +
      void seekTo​(int mediaItemIndex,
                   long positionMs)
      -
      Seeks to a position specified in milliseconds in the specified window.
      +
      Seeks to a position specified in milliseconds in the specified MediaItem.
      Parameters:
      -
      windowIndex - The index of the window.
      -
      positionMs - The seek position in the specified window, or C.TIME_UNSET to seek to - the window's default position.
      +
      mediaItemIndex - The index of the MediaItem.
      +
      positionMs - The seek position in the specified MediaItem, or C.TIME_UNSET + to seek to the media item's default position.
      Throws:
      IllegalSeekPositionException - If the player has a non-empty timeline and the provided - windowIndex is not within the bounds of the current timeline.
      + mediaItemIndex is not within the bounds of the current timeline.
    @@ -3454,7 +3674,7 @@ int getRepeatMode()
  • seekBack

    void seekBack()
    -
    Seeks back in the current window by getSeekBackIncrement() milliseconds.
    +
    Seeks back in the current MediaItem by getSeekBackIncrement() milliseconds.
  • @@ -3480,7 +3700,8 @@ int getRepeatMode()
  • seekForward

    void seekForward()
    -
    +
    Seeks forward in the current MediaItem by getSeekForwardIncrement() + milliseconds.
  • @@ -3492,7 +3713,7 @@ int getRepeatMode()
    @Deprecated
     boolean hasPrevious()
    Deprecated. -
    Use hasPreviousWindow() instead.
    +
  • @@ -3502,8 +3723,21 @@ boolean hasPrevious()
    • hasPreviousWindow

      -
      boolean hasPreviousWindow()
      -
      Returns whether a previous window exists, which may depend on the current repeat mode and +
      @Deprecated
      +boolean hasPreviousWindow()
      +
      Deprecated. + +
      +
    • +
    + + + +
      +
    • +

      hasPreviousMediaItem

      +
      boolean hasPreviousMediaItem()
      +
      Returns whether a previous media item exists, which may depend on the current repeat mode and whether shuffle mode is enabled.

      Note: When the repeat mode is REPEAT_MODE_ONE, this method behaves the same as when @@ -3520,7 +3754,7 @@ boolean hasPrevious()

      @Deprecated
       void previous()
      Deprecated. - +
    @@ -3530,10 +3764,22 @@ void previous()
    • seekToPreviousWindow

      -
      void seekToPreviousWindow()
      -
      Seeks to the default position of the previous window, which may depend on the current repeat - mode and whether shuffle mode is enabled. Does nothing if hasPreviousWindow() is - false. +
      @Deprecated
      +void seekToPreviousWindow()
      +
      Deprecated. + +
      +
    • +
    + + + + @@ -3588,7 +3835,7 @@ void previous()
    @Deprecated
     boolean hasNext()
    Deprecated. -
    Use hasNextWindow() instead.
    +
    Use hasNextMediaItem() instead.
  • @@ -3598,9 +3845,22 @@ boolean hasNext()
    • hasNextWindow

      -
      boolean hasNextWindow()
      -
      Returns whether a next window exists, which may depend on the current repeat mode and whether - shuffle mode is enabled. +
      @Deprecated
      +boolean hasNextWindow()
      +
      Deprecated. +
      Use hasNextMediaItem() instead.
      +
      +
    • +
    + + + + @@ -3626,9 +3886,23 @@ void next()
    • seekToNextWindow

      -
      void seekToNextWindow()
      -
      Seeks to the default position of the next window, which may depend on the current repeat mode - and whether shuffle mode is enabled. Does nothing if hasNextWindow() is false. +
      @Deprecated
      +void seekToNextWindow()
      +
      Deprecated. + +
      +
    • +
    + + + + @@ -3871,8 +4193,22 @@ void stop​(boolean reset) + + + +
      +
    • +

      getCurrentMediaItemIndex

      +
      int getCurrentMediaItemIndex()
      +
      Returns the index of the current MediaItem in the timeline, or the prospective index if the current timeline is + empty.
    @@ -3881,9 +4217,23 @@ void stop​(boolean reset) + + + + @@ -3959,9 +4322,8 @@ void stop​(boolean reset)
  • getCurrentPosition

    long getCurrentPosition()
    -
    +
    Returns the playback position in the current content or ad, in milliseconds, or the prospective + position in milliseconds if the current timeline is empty.
  • @@ -3971,8 +4333,8 @@ void stop​(boolean reset)
  • getBufferedPosition

    long getBufferedPosition()
    -
    Returns an estimate of the position in the current content window or ad up to which data is - buffered, in milliseconds.
    +
    Returns an estimate of the position in the current content or ad up to which data is buffered, + in milliseconds.
  • @@ -3981,8 +4343,10 @@ void stop​(boolean reset)
    • getBufferedPercentage

      -
      int getBufferedPercentage()
      -
      Returns an estimate of the percentage in the current content window or ad up to which data is +
      @IntRange(from=0L,
      +          to=100L)
      +int getBufferedPercentage()
      +
      Returns an estimate of the percentage in the current content or ad up to which data is buffered, or 0 if no estimate is available.
    @@ -3994,7 +4358,7 @@ void stop​(boolean reset)

    getTotalBufferedDuration

    long getTotalBufferedDuration()
    Returns an estimate of the total buffered duration from the current position, in milliseconds. - This includes pre-buffered data for subsequent ads and windows.
    + This includes pre-buffered data for subsequent ads and
    media items. @@ -4003,9 +4367,22 @@ void stop​(boolean reset) + + + + @@ -155,7 +155,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); TextOutput textRendererOutput, MetadataOutput metadataRendererOutput) -
    Builds the Renderer instances for a SimpleExoPlayer.
    +
    Builds the Renderer instances for an ExoPlayer.
    @@ -186,7 +186,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); AudioRendererEventListener audioRendererEventListener, TextOutput textRendererOutput, MetadataOutput metadataRendererOutput) -
    Builds the Renderer instances for a SimpleExoPlayer.
    +
    Builds the Renderer instances for an ExoPlayer.
    Parameters:
    eventHandler - A handler to use when invoking event listeners and outputs.
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/SimpleExoPlayer.Builder.html b/docs/doc/reference/com/google/android/exoplayer2/SimpleExoPlayer.Builder.html index cb8e403feb..3b18bc8635 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/SimpleExoPlayer.Builder.html +++ b/docs/doc/reference/com/google/android/exoplayer2/SimpleExoPlayer.Builder.html @@ -25,8 +25,8 @@ catch(err) { } //--> -var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10}; -var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; +var data = {"i0":42,"i1":42,"i2":42,"i3":42,"i4":42,"i5":42,"i6":42,"i7":42,"i8":42,"i9":42,"i10":42,"i11":42,"i12":42,"i13":42,"i14":42,"i15":42,"i16":42,"i17":42,"i18":42,"i19":42,"i20":42,"i21":42,"i22":42,"i23":42}; +var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; var tableTab = "tableTab"; @@ -133,11 +133,12 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    SimpleExoPlayer

    -
    public static final class SimpleExoPlayer.Builder
    +
    @Deprecated
    +public static final class SimpleExoPlayer.Builder
     extends Object
    -
    A builder for SimpleExoPlayer instances. - -

    See Builder(Context) for the list of default values.

    +
    Deprecated. +
    Use ExoPlayer.Builder instead.
    +
    @@ -160,21 +161,27 @@ extends Builder​(Context context) -
    Creates a builder.
    +
    Deprecated. +
    Use Builder(Context) instead.
    +
    Builder​(Context context, ExtractorsFactory extractorsFactory) -
    Creates a builder with a custom ExtractorsFactory.
    + Builder​(Context context, RenderersFactory renderersFactory) -
    Creates a builder with a custom RenderersFactory.
    +
    Deprecated. + +
    @@ -182,7 +189,10 @@ extends RenderersFactory renderersFactory, ExtractorsFactory extractorsFactory)
    -
    Creates a builder with a custom RenderersFactory and ExtractorsFactory.
    + @@ -194,7 +204,11 @@ extends BandwidthMeter bandwidthMeter, AnalyticsCollector analyticsCollector) -
    Creates a builder with the specified custom components.
    + @@ -209,7 +223,7 @@ extends

    Method Summary

    - + @@ -219,21 +233,28 @@ extends SimpleExoPlayer @@ -241,144 +262,191 @@ extends setAudioAttributes​(AudioAttributes audioAttributes, boolean handleAudioFocus) - + - + + + + + +
    All Methods Instance Methods Concrete Methods All Methods Instance Methods Concrete Methods Deprecated Methods 
    Modifier and Type Method build() -
    Builds a SimpleExoPlayer instance.
    +
    Deprecated. + +
    SimpleExoPlayer.Builder experimentalSetForegroundModeTimeoutMs​(long timeoutMs) -
    Set a limit on the time a call to SimpleExoPlayer.setForegroundMode(boolean) can spend.
    +
    SimpleExoPlayer.Builder setAnalyticsCollector​(AnalyticsCollector analyticsCollector) -
    Sets the AnalyticsCollector that will collect and forward all player events.
    +
    -
    Sets AudioAttributes that will be used by the player and whether to handle audio - focus.
    +
    SimpleExoPlayer.Builder setBandwidthMeter​(BandwidthMeter bandwidthMeter) -
    Sets the BandwidthMeter that will be used by the player.
    +
    SimpleExoPlayer.Builder setClock​(Clock clock) -
    Sets the Clock that will be used by the player.
    +
    Deprecated. + +
    SimpleExoPlayer.Builder setDetachSurfaceTimeoutMs​(long detachSurfaceTimeoutMs) -
    Sets a timeout for detaching a surface from the player.
    +
    SimpleExoPlayer.Builder setHandleAudioBecomingNoisy​(boolean handleAudioBecomingNoisy) -
    Sets whether the player should pause automatically when audio is rerouted from a headset to - device speakers.
    +
    SimpleExoPlayer.Builder setLivePlaybackSpeedControl​(LivePlaybackSpeedControl livePlaybackSpeedControl) -
    Sets the LivePlaybackSpeedControl that will control the playback speed when playing - live streams, in order to maintain a steady target offset from the live stream edge.
    +
    SimpleExoPlayer.Builder setLoadControl​(LoadControl loadControl) -
    Sets the LoadControl that will be used by the player.
    +
    SimpleExoPlayer.Builder setLooper​(Looper looper) -
    Sets the Looper that must be used for all calls to the player and that is used to - call listeners on.
    +
    Deprecated. + +
    SimpleExoPlayer.Builder setMediaSourceFactory​(MediaSourceFactory mediaSourceFactory) -
    Sets the MediaSourceFactory that will be used by the player.
    +
    SimpleExoPlayer.Builder setPauseAtEndOfMediaItems​(boolean pauseAtEndOfMediaItems) -
    Sets whether to pause playback at the end of each media item.
    +
    SimpleExoPlayer.Builder setPriorityTaskManager​(PriorityTaskManager priorityTaskManager) -
    Sets an PriorityTaskManager that will be used by the player.
    +
    SimpleExoPlayer.Builder setReleaseTimeoutMs​(long releaseTimeoutMs) - +
    SimpleExoPlayer.Builder setSeekBackIncrementMs​(long seekBackIncrementMs) -
    Sets the BasePlayer.seekBack() increment.
    +
    SimpleExoPlayer.Builder setSeekForwardIncrementMs​(long seekForwardIncrementMs) -
    Sets the BasePlayer.seekForward() increment.
    +
    SimpleExoPlayer.Builder setSeekParameters​(SeekParameters seekParameters) -
    Sets the parameters that control how seek operations are performed.
    +
    SimpleExoPlayer.Builder setSkipSilenceEnabled​(boolean skipSilenceEnabled) -
    Sets whether silences silences in the audio stream is enabled.
    +
    SimpleExoPlayer.Builder setTrackSelector​(TrackSelector trackSelector) -
    Sets the TrackSelector that will be used by the player.
    +
    SimpleExoPlayer.Builder setUseLazyPreparation​(boolean useLazyPreparation) -
    Sets whether media sources should be initialized lazily.
    +
    SimpleExoPlayer.BuildersetVideoScalingMode​(int videoScalingMode)setVideoChangeFrameRateStrategy​(int videoChangeFrameRateStrategy) -
    Sets the C.VideoScalingMode that will be used by the player.
    +
    SimpleExoPlayer.BuildersetWakeMode​(int wakeMode)setVideoScalingMode​(int videoScalingMode) -
    Sets the C.WakeMode that will be used by the player.
    +
    Deprecated. + +
    +
    SimpleExoPlayer.BuildersetWakeMode​(@com.google.android.exoplayer2.C.WakeMode int wakeMode) +
    Deprecated. + +
    @@ -411,43 +479,11 @@ extends
  • Builder

    -
    public Builder​(Context context)
    -
    Creates a builder. - -

    Use Builder(Context, RenderersFactory), Builder(Context, - RenderersFactory) or Builder(Context, RenderersFactory, ExtractorsFactory) instead, - if you intend to provide a custom RenderersFactory or a custom ExtractorsFactory. This is to ensure that ProGuard or R8 can remove ExoPlayer's DefaultRenderersFactory and DefaultExtractorsFactory from the APK. - -

    The builder uses the following default values: - -

    -
    -
    Parameters:
    -
    context - A Context.
    -
    +
    @Deprecated
    +public Builder​(Context context)
    +
    Deprecated. +
    Use Builder(Context) instead.
    +
  • @@ -456,17 +492,12 @@ extends
  • Builder

    -
    public Builder​(Context context,
    +
    @Deprecated
    +public Builder​(Context context,
                    RenderersFactory renderersFactory)
    -
    Creates a builder with a custom RenderersFactory. - -

    See Builder(Context) for a list of default values.

    -
    -
    Parameters:
    -
    context - A Context.
    -
    renderersFactory - A factory for creating Renderers to be used by the - player.
    -
    +
    Deprecated. + +
  • @@ -475,17 +506,12 @@ extends
  • Builder

    -
    public Builder​(Context context,
    +
    @Deprecated
    +public Builder​(Context context,
                    ExtractorsFactory extractorsFactory)
    -
    Creates a builder with a custom ExtractorsFactory. - -

    See Builder(Context) for a list of default values.

    -
    -
    Parameters:
    -
    context - A Context.
    -
    extractorsFactory - An ExtractorsFactory used to extract progressive media from - its container.
    -
    +
  • @@ -494,20 +520,14 @@ extends
  • Builder

    -
    public Builder​(Context context,
    +
    @Deprecated
    +public Builder​(Context context,
                    RenderersFactory renderersFactory,
                    ExtractorsFactory extractorsFactory)
    -
    Creates a builder with a custom RenderersFactory and ExtractorsFactory. - -

    See Builder(Context) for a list of default values.

    -
    -
    Parameters:
    -
    context - A Context.
    -
    renderersFactory - A factory for creating Renderers to be used by the - player.
    -
    extractorsFactory - An ExtractorsFactory used to extract progressive media from - its container.
    -
    +
  • @@ -516,28 +536,19 @@ extends
  • Builder

    -
    public Builder​(Context context,
    +
    @Deprecated
    +public Builder​(Context context,
                    RenderersFactory renderersFactory,
                    TrackSelector trackSelector,
                    MediaSourceFactory mediaSourceFactory,
                    LoadControl loadControl,
                    BandwidthMeter bandwidthMeter,
                    AnalyticsCollector analyticsCollector)
    -
    Creates a builder with the specified custom components. - -

    Note that this constructor is only useful to try and ensure that ExoPlayer's default - components can be removed by ProGuard or R8.

    -
    -
    Parameters:
    -
    context - A Context.
    -
    renderersFactory - A factory for creating Renderers to be used by the - player.
    -
    trackSelector - A TrackSelector.
    -
    mediaSourceFactory - A MediaSourceFactory.
    -
    loadControl - A LoadControl.
    -
    bandwidthMeter - A BandwidthMeter.
    -
    analyticsCollector - An AnalyticsCollector.
    -
    +
  • @@ -556,15 +567,12 @@ extends
  • experimentalSetForegroundModeTimeoutMs

    -
    public SimpleExoPlayer.Builder experimentalSetForegroundModeTimeoutMs​(long timeoutMs)
    -
    Set a limit on the time a call to SimpleExoPlayer.setForegroundMode(boolean) can spend. If a call to SimpleExoPlayer.setForegroundMode(boolean) takes more than timeoutMs milliseconds to complete, the player - will raise an error via Player.Listener.onPlayerError(com.google.android.exoplayer2.PlaybackException). - -

    This method is experimental, and will be renamed or removed in a future release.

    -
    -
    Parameters:
    -
    timeoutMs - The time limit in milliseconds.
    -
    +
    @Deprecated
    +public SimpleExoPlayer.Builder experimentalSetForegroundModeTimeoutMs​(long timeoutMs)
    +
  • @@ -573,16 +581,11 @@ extends
  • setTrackSelector

    -
    public SimpleExoPlayer.Builder setTrackSelector​(TrackSelector trackSelector)
    -
    Sets the TrackSelector that will be used by the player.
    -
    -
    Parameters:
    -
    trackSelector - A TrackSelector.
    -
    Returns:
    -
    This builder.
    -
    Throws:
    -
    IllegalStateException - If build() has already been called.
    -
    +
    @Deprecated
    +public SimpleExoPlayer.Builder setTrackSelector​(TrackSelector trackSelector)
    +
  • @@ -591,16 +594,11 @@ extends
  • setMediaSourceFactory

    -
    public SimpleExoPlayer.Builder setMediaSourceFactory​(MediaSourceFactory mediaSourceFactory)
    -
    Sets the MediaSourceFactory that will be used by the player.
    -
    -
    Parameters:
    -
    mediaSourceFactory - A MediaSourceFactory.
    -
    Returns:
    -
    This builder.
    -
    Throws:
    -
    IllegalStateException - If build() has already been called.
    -
    +
    @Deprecated
    +public SimpleExoPlayer.Builder setMediaSourceFactory​(MediaSourceFactory mediaSourceFactory)
    +
  • @@ -609,16 +607,11 @@ extends
  • setLoadControl

    -
    public SimpleExoPlayer.Builder setLoadControl​(LoadControl loadControl)
    -
    Sets the LoadControl that will be used by the player.
    -
    -
    Parameters:
    -
    loadControl - A LoadControl.
    -
    Returns:
    -
    This builder.
    -
    Throws:
    -
    IllegalStateException - If build() has already been called.
    -
    +
    @Deprecated
    +public SimpleExoPlayer.Builder setLoadControl​(LoadControl loadControl)
    +
  • @@ -627,16 +620,11 @@ extends
  • setBandwidthMeter

    -
    public SimpleExoPlayer.Builder setBandwidthMeter​(BandwidthMeter bandwidthMeter)
    -
    Sets the BandwidthMeter that will be used by the player.
    -
    -
    Parameters:
    -
    bandwidthMeter - A BandwidthMeter.
    -
    Returns:
    -
    This builder.
    -
    Throws:
    -
    IllegalStateException - If build() has already been called.
    -
    +
    @Deprecated
    +public SimpleExoPlayer.Builder setBandwidthMeter​(BandwidthMeter bandwidthMeter)
    +
  • @@ -645,17 +633,11 @@ extends
  • setLooper

    -
    public SimpleExoPlayer.Builder setLooper​(Looper looper)
    -
    Sets the Looper that must be used for all calls to the player and that is used to - call listeners on.
    -
    -
    Parameters:
    -
    looper - A Looper.
    -
    Returns:
    -
    This builder.
    -
    Throws:
    -
    IllegalStateException - If build() has already been called.
    -
    +
    @Deprecated
    +public SimpleExoPlayer.Builder setLooper​(Looper looper)
    +
    Deprecated. + +
  • @@ -664,16 +646,11 @@ extends
  • setAnalyticsCollector

    -
    public SimpleExoPlayer.Builder setAnalyticsCollector​(AnalyticsCollector analyticsCollector)
    -
    Sets the AnalyticsCollector that will collect and forward all player events.
    -
    -
    Parameters:
    -
    analyticsCollector - An AnalyticsCollector.
    -
    Returns:
    -
    This builder.
    -
    Throws:
    -
    IllegalStateException - If build() has already been called.
    -
    +
    @Deprecated
    +public SimpleExoPlayer.Builder setAnalyticsCollector​(AnalyticsCollector analyticsCollector)
    +
  • @@ -682,19 +659,13 @@ extends
  • setPriorityTaskManager

    -
    public SimpleExoPlayer.Builder setPriorityTaskManager​(@Nullable
    +
    @Deprecated
    +public SimpleExoPlayer.Builder setPriorityTaskManager​(@Nullable
                                                           PriorityTaskManager priorityTaskManager)
    -
    Sets an PriorityTaskManager that will be used by the player. - -

    The priority C.PRIORITY_PLAYBACK will be set while the player is loading.

    -
    -
    Parameters:
    -
    priorityTaskManager - A PriorityTaskManager, or null to not use one.
    -
    Returns:
    -
    This builder.
    -
    Throws:
    -
    IllegalStateException - If build() has already been called.
    -
    +
  • @@ -703,48 +674,27 @@ extends
  • setAudioAttributes

    -
    public SimpleExoPlayer.Builder setAudioAttributes​(AudioAttributes audioAttributes,
    +
    @Deprecated
    +public SimpleExoPlayer.Builder setAudioAttributes​(AudioAttributes audioAttributes,
                                                       boolean handleAudioFocus)
    -
    Sets AudioAttributes that will be used by the player and whether to handle audio - focus. - -

    If audio focus should be handled, the AudioAttributes.usage must be C.USAGE_MEDIA or C.USAGE_GAME. Other usages will throw an IllegalArgumentException.

    -
    -
    Parameters:
    -
    audioAttributes - AudioAttributes.
    -
    handleAudioFocus - Whether the player should handle audio focus.
    -
    Returns:
    -
    This builder.
    -
    Throws:
    -
    IllegalStateException - If build() has already been called.
    -
    +
  • - + @@ -753,19 +703,11 @@ extends
  • setHandleAudioBecomingNoisy

    -
    public SimpleExoPlayer.Builder setHandleAudioBecomingNoisy​(boolean handleAudioBecomingNoisy)
    -
    Sets whether the player should pause automatically when audio is rerouted from a headset to - device speakers. See the audio - becoming noisy documentation for more information.
    -
    -
    Parameters:
    -
    handleAudioBecomingNoisy - Whether the player should pause automatically when audio is - rerouted from a headset to device speakers.
    -
    Returns:
    -
    This builder.
    -
    Throws:
    -
    IllegalStateException - If build() has already been called.
    -
    +
    @Deprecated
    +public SimpleExoPlayer.Builder setHandleAudioBecomingNoisy​(boolean handleAudioBecomingNoisy)
    +
  • @@ -774,16 +716,11 @@ extends
  • setSkipSilenceEnabled

    -
    public SimpleExoPlayer.Builder setSkipSilenceEnabled​(boolean skipSilenceEnabled)
    -
    Sets whether silences silences in the audio stream is enabled.
    -
    -
    Parameters:
    -
    skipSilenceEnabled - Whether skipping silences is enabled.
    -
    Returns:
    -
    This builder.
    -
    Throws:
    -
    IllegalStateException - If build() has already been called.
    -
    +
    @Deprecated
    +public SimpleExoPlayer.Builder setSkipSilenceEnabled​(boolean skipSilenceEnabled)
    +
  • @@ -792,19 +729,26 @@ extends
  • setVideoScalingMode

    -
    public SimpleExoPlayer.Builder setVideoScalingMode​(@VideoScalingMode
    +
    @Deprecated
    +public SimpleExoPlayer.Builder setVideoScalingMode​(@VideoScalingMode
                                                        int videoScalingMode)
    -
    Sets the C.VideoScalingMode that will be used by the player. - -

    Note that the scaling mode only applies if a MediaCodec-based video Renderer is enabled and if the output surface is owned by a SurfaceView.

    -
    -
    Parameters:
    -
    videoScalingMode - A C.VideoScalingMode.
    -
    Returns:
    -
    This builder.
    -
    Throws:
    -
    IllegalStateException - If build() has already been called.
    -
    +
    Deprecated. + +
    +
  • + + + + + @@ -813,20 +757,11 @@ extends
  • setUseLazyPreparation

    -
    public SimpleExoPlayer.Builder setUseLazyPreparation​(boolean useLazyPreparation)
    -
    Sets whether media sources should be initialized lazily. - -

    If false, all initial preparation steps (e.g., manifest loads) happen immediately. If - true, these initial preparations are triggered only when the player starts buffering the - media.

    -
    -
    Parameters:
    -
    useLazyPreparation - Whether to use lazy preparation.
    -
    Returns:
    -
    This builder.
    -
    Throws:
    -
    IllegalStateException - If build() has already been called.
    -
    +
    @Deprecated
    +public SimpleExoPlayer.Builder setUseLazyPreparation​(boolean useLazyPreparation)
    +
  • @@ -835,16 +770,11 @@ extends
  • setSeekParameters

    -
    public SimpleExoPlayer.Builder setSeekParameters​(SeekParameters seekParameters)
    -
    Sets the parameters that control how seek operations are performed.
    -
    -
    Parameters:
    -
    seekParameters - The SeekParameters.
    -
    Returns:
    -
    This builder.
    -
    Throws:
    -
    IllegalStateException - If build() has already been called.
    -
    +
    @Deprecated
    +public SimpleExoPlayer.Builder setSeekParameters​(SeekParameters seekParameters)
    +
  • @@ -853,18 +783,12 @@ extends
  • setSeekBackIncrementMs

    -
    public SimpleExoPlayer.Builder setSeekBackIncrementMs​(@IntRange(from=1L)
    +
    @Deprecated
    +public SimpleExoPlayer.Builder setSeekBackIncrementMs​(@IntRange(from=1L)
                                                           long seekBackIncrementMs)
    -
    Sets the BasePlayer.seekBack() increment.
    -
    -
    Parameters:
    -
    seekBackIncrementMs - The seek back increment, in milliseconds.
    -
    Returns:
    -
    This builder.
    -
    Throws:
    -
    IllegalArgumentException - If seekBackIncrementMs is non-positive.
    -
    IllegalStateException - If build() has already been called.
    -
    +
  • @@ -873,18 +797,12 @@ extends
  • setSeekForwardIncrementMs

    -
    public SimpleExoPlayer.Builder setSeekForwardIncrementMs​(@IntRange(from=1L)
    +
    @Deprecated
    +public SimpleExoPlayer.Builder setSeekForwardIncrementMs​(@IntRange(from=1L)
                                                              long seekForwardIncrementMs)
    -
    Sets the BasePlayer.seekForward() increment.
    -
    -
    Parameters:
    -
    seekForwardIncrementMs - The seek forward increment, in milliseconds.
    -
    Returns:
    -
    This builder.
    -
    Throws:
    -
    IllegalArgumentException - If seekForwardIncrementMs is non-positive.
    -
    IllegalStateException - If build() has already been called.
    -
    +
  • @@ -893,19 +811,11 @@ extends
  • setReleaseTimeoutMs

    -
    public SimpleExoPlayer.Builder setReleaseTimeoutMs​(long releaseTimeoutMs)
    - -
    -
    Parameters:
    -
    releaseTimeoutMs - The release timeout, in milliseconds.
    -
    Returns:
    -
    This builder.
    -
    Throws:
    -
    IllegalStateException - If build() has already been called.
    -
    +
    @Deprecated
    +public SimpleExoPlayer.Builder setReleaseTimeoutMs​(long releaseTimeoutMs)
    +
  • @@ -914,19 +824,11 @@ extends
  • setDetachSurfaceTimeoutMs

    -
    public SimpleExoPlayer.Builder setDetachSurfaceTimeoutMs​(long detachSurfaceTimeoutMs)
    -
    Sets a timeout for detaching a surface from the player. - -

    If detaching a surface or replacing a surface takes more than - detachSurfaceTimeoutMs to complete, the player will report an error via Player.Listener.onPlayerError(com.google.android.exoplayer2.PlaybackException).

    -
    -
    Parameters:
    -
    detachSurfaceTimeoutMs - The timeout for detaching a surface, in milliseconds.
    -
    Returns:
    -
    This builder.
    -
    Throws:
    -
    IllegalStateException - If build() has already been called.
    -
    +
    @Deprecated
    +public SimpleExoPlayer.Builder setDetachSurfaceTimeoutMs​(long detachSurfaceTimeoutMs)
    +
  • @@ -935,18 +837,11 @@ extends
  • setPauseAtEndOfMediaItems

    -
    public SimpleExoPlayer.Builder setPauseAtEndOfMediaItems​(boolean pauseAtEndOfMediaItems)
    -
    Sets whether to pause playback at the end of each media item. - -

    This means the player will pause at the end of each window in the current timeline. Listeners will be informed by a call to Player.Listener.onPlayWhenReadyChanged(boolean, int) with the reason Player.PLAY_WHEN_READY_CHANGE_REASON_END_OF_MEDIA_ITEM when this happens.

    -
    -
    Parameters:
    -
    pauseAtEndOfMediaItems - Whether to pause playback at the end of each media item.
    -
    Returns:
    -
    This builder.
    -
    Throws:
    -
    IllegalStateException - If build() has already been called.
    -
    +
    @Deprecated
    +public SimpleExoPlayer.Builder setPauseAtEndOfMediaItems​(boolean pauseAtEndOfMediaItems)
    +
  • @@ -955,17 +850,11 @@ extends
  • setLivePlaybackSpeedControl

    -
    public SimpleExoPlayer.Builder setLivePlaybackSpeedControl​(LivePlaybackSpeedControl livePlaybackSpeedControl)
    -
    Sets the LivePlaybackSpeedControl that will control the playback speed when playing - live streams, in order to maintain a steady target offset from the live stream edge.
    -
    -
    Parameters:
    -
    livePlaybackSpeedControl - The LivePlaybackSpeedControl.
    -
    Returns:
    -
    This builder.
    -
    Throws:
    -
    IllegalStateException - If build() has already been called.
    -
    +
    @Deprecated
    +public SimpleExoPlayer.Builder setLivePlaybackSpeedControl​(LivePlaybackSpeedControl livePlaybackSpeedControl)
    +
  • @@ -974,17 +863,11 @@ extends
  • setClock

    -
    public SimpleExoPlayer.Builder setClock​(Clock clock)
    -
    Sets the Clock that will be used by the player. Should only be set for testing - purposes.
    -
    -
    Parameters:
    -
    clock - A Clock.
    -
    Returns:
    -
    This builder.
    -
    Throws:
    -
    IllegalStateException - If build() has already been called.
    -
    +
    @Deprecated
    +public SimpleExoPlayer.Builder setClock​(Clock clock)
    +
    Deprecated. + +
  • @@ -993,12 +876,11 @@ extends
  • build

    -
    public SimpleExoPlayer build()
    -
    Builds a SimpleExoPlayer instance.
    -
    -
    Throws:
    -
    IllegalStateException - If this method has already been called.
    -
    +
    @Deprecated
    +public SimpleExoPlayer build()
    +
    Deprecated. + +
  • diff --git a/docs/doc/reference/com/google/android/exoplayer2/SimpleExoPlayer.html b/docs/doc/reference/com/google/android/exoplayer2/SimpleExoPlayer.html index 3471b07a47..f9d5724fe1 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/SimpleExoPlayer.html +++ b/docs/doc/reference/com/google/android/exoplayer2/SimpleExoPlayer.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":10,"i1":42,"i2":10,"i3":42,"i4":42,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":42,"i12":42,"i13":42,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":42,"i44":10,"i45":10,"i46":10,"i47":10,"i48":10,"i49":10,"i50":10,"i51":10,"i52":10,"i53":10,"i54":10,"i55":10,"i56":10,"i57":10,"i58":10,"i59":10,"i60":10,"i61":10,"i62":10,"i63":10,"i64":10,"i65":10,"i66":10,"i67":10,"i68":10,"i69":10,"i70":10,"i71":10,"i72":10,"i73":10,"i74":10,"i75":10,"i76":10,"i77":10,"i78":10,"i79":10,"i80":10,"i81":10,"i82":10,"i83":10,"i84":10,"i85":10,"i86":42,"i87":42,"i88":10,"i89":10,"i90":42,"i91":10,"i92":42,"i93":42,"i94":10,"i95":10,"i96":42,"i97":42,"i98":42,"i99":42,"i100":10,"i101":10,"i102":10,"i103":10,"i104":10,"i105":10,"i106":10,"i107":10,"i108":10,"i109":42,"i110":10,"i111":10,"i112":10,"i113":10,"i114":10,"i115":10,"i116":10,"i117":10,"i118":10,"i119":10,"i120":10,"i121":10,"i122":10,"i123":10,"i124":10,"i125":10,"i126":10,"i127":10,"i128":42,"i129":10,"i130":10,"i131":10,"i132":10,"i133":10,"i134":10,"i135":10,"i136":10,"i137":42}; +var data = {"i0":42,"i1":42,"i2":42,"i3":42,"i4":42,"i5":42,"i6":42,"i7":42,"i8":42,"i9":42,"i10":42,"i11":42,"i12":42,"i13":42,"i14":42,"i15":42,"i16":42,"i17":42,"i18":42,"i19":42,"i20":42,"i21":42,"i22":42,"i23":42,"i24":42,"i25":42,"i26":42,"i27":42,"i28":42,"i29":42,"i30":42,"i31":42,"i32":42,"i33":42,"i34":42,"i35":42,"i36":42,"i37":42,"i38":42,"i39":42,"i40":42,"i41":42,"i42":42,"i43":42,"i44":42,"i45":42,"i46":42,"i47":42,"i48":42,"i49":42,"i50":42,"i51":42,"i52":42,"i53":42,"i54":42,"i55":42,"i56":42,"i57":42,"i58":42,"i59":42,"i60":42,"i61":42,"i62":42,"i63":42,"i64":42,"i65":42,"i66":42,"i67":42,"i68":42,"i69":42,"i70":42,"i71":42,"i72":42,"i73":42,"i74":42,"i75":42,"i76":42,"i77":42,"i78":42,"i79":42,"i80":42,"i81":42,"i82":42,"i83":42,"i84":42,"i85":42,"i86":42,"i87":42,"i88":42,"i89":42,"i90":42,"i91":42,"i92":42,"i93":42,"i94":42,"i95":42,"i96":42,"i97":42,"i98":42,"i99":42,"i100":42,"i101":42,"i102":42,"i103":42,"i104":42,"i105":42,"i106":42,"i107":42,"i108":42,"i109":42,"i110":42,"i111":42,"i112":42,"i113":42,"i114":42,"i115":42,"i116":42,"i117":42,"i118":42,"i119":42,"i120":42,"i121":42,"i122":42,"i123":42,"i124":42,"i125":42,"i126":42,"i127":42,"i128":42,"i129":42,"i130":42,"i131":42}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -135,14 +135,16 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  • All Implemented Interfaces:
    -
    ExoPlayer, ExoPlayer.AudioComponent, ExoPlayer.DeviceComponent, ExoPlayer.MetadataComponent, ExoPlayer.TextComponent, ExoPlayer.VideoComponent, Player
    +
    ExoPlayer, ExoPlayer.AudioComponent, ExoPlayer.DeviceComponent, ExoPlayer.TextComponent, ExoPlayer.VideoComponent, Player

    -
    public class SimpleExoPlayer
    +
    @Deprecated
    +public class SimpleExoPlayer
     extends BasePlayer
    -implements ExoPlayer, ExoPlayer.AudioComponent, ExoPlayer.VideoComponent, ExoPlayer.TextComponent, ExoPlayer.MetadataComponent, ExoPlayer.DeviceComponent
    -
    An ExoPlayer implementation that uses default Renderer components. Instances can - be obtained from SimpleExoPlayer.Builder.
    +implements ExoPlayer, ExoPlayer.AudioComponent, ExoPlayer.VideoComponent, ExoPlayer.TextComponent, ExoPlayer.DeviceComponent
    +
    Deprecated. +
    Use ExoPlayer instead.
    +
  • @@ -167,7 +169,9 @@ implements static class  SimpleExoPlayer.Builder -
    A builder for SimpleExoPlayer instances.
    +
    Deprecated. +
    Use ExoPlayer.Builder instead.
    +
    @@ -176,7 +180,7 @@ implements ExoPlayer -ExoPlayer.AudioComponent, ExoPlayer.AudioOffloadListener, ExoPlayer.DeviceComponent, ExoPlayer.MetadataComponent, ExoPlayer.TextComponent, ExoPlayer.VideoComponent +ExoPlayer.AudioComponent, ExoPlayer.AudioOffloadListener, ExoPlayer.DeviceComponent, ExoPlayer.TextComponent, ExoPlayer.VideoComponent @@ -267,14 +266,16 @@ implements Looper applicationLooper)
    Deprecated. - +
    protected SimpleExoPlayer​(SimpleExoPlayer.Builder builder) -  + +
    Deprecated.
    +  @@ -298,623 +299,672 @@ implements void addAnalyticsListener​(AnalyticsListener listener) +
    Deprecated.
    Adds an AnalyticsListener to receive analytics events.
    void -addAudioListener​(AudioListener listener) - -
    Deprecated.
    - - - -void addAudioOffloadListener​(ExoPlayer.AudioOffloadListener listener) +
    Deprecated.
    Adds a listener to receive audio offload events.
    - -void -addDeviceListener​(DeviceListener listener) - -
    Deprecated.
    - - - + void addListener​(Player.EventListener listener)
    Deprecated.
    - + void addListener​(Player.Listener listener) +
    Deprecated.
    Registers a listener to receive all events from the player.
    - + void addMediaItems​(int index, List<MediaItem> mediaItems) +
    Deprecated.
    Adds a list of media items at the given index of the playlist.
    - + void addMediaSource​(int index, MediaSource mediaSource) +
    Deprecated.
    Adds a media source at the given index of the playlist.
    - + void addMediaSource​(MediaSource mediaSource) +
    Deprecated.
    Adds a media source to the end of the playlist.
    - + void addMediaSources​(int index, List<MediaSource> mediaSources) +
    Deprecated.
    Adds a list of media sources at the given index of the playlist.
    + +void +addMediaSources​(List<MediaSource> mediaSources) + +
    Deprecated.
    +
    Adds a list of media sources to the end of the playlist.
    + + + +void +clearAuxEffectInfo() + +
    Deprecated.
    +
    Detaches any previously attached auxiliary audio effect from the underlying audio track.
    + + void -addMediaSources​(List<MediaSource> mediaSources) +clearCameraMotionListener​(CameraMotionListener listener) -
    Adds a list of media sources to the end of the playlist.
    +
    Deprecated.
    +
    Clears the listener which receives camera motion events if it matches the one passed.
    void -addMetadataOutput​(MetadataOutput output) +clearVideoFrameMetadataListener​(VideoFrameMetadataListener listener)
    Deprecated.
    +
    Clears the listener which receives video frame metadata events if it matches the one passed.
    void -addTextOutput​(TextOutput listener) - -
    Deprecated.
    - - - -void -addVideoListener​(VideoListener listener) - -
    Deprecated.
    - - - -void -clearAuxEffectInfo() - -
    Detaches any previously attached auxiliary audio effect from the underlying audio track.
    - - - -void -clearCameraMotionListener​(CameraMotionListener listener) - -
    Clears the listener which receives camera motion events if it matches the one passed.
    - - - -void -clearVideoFrameMetadataListener​(VideoFrameMetadataListener listener) - -
    Clears the listener which receives video frame metadata events if it matches the one passed.
    - - - -void clearVideoSurface() +
    Deprecated.
    Clears any Surface, SurfaceHolder, SurfaceView or TextureView currently set on the player.
    - + void clearVideoSurface​(Surface surface) +
    Deprecated.
    Clears the Surface onto which video is being rendered if it matches the one passed.
    - + void clearVideoSurfaceHolder​(SurfaceHolder surfaceHolder) +
    Deprecated.
    Clears the SurfaceHolder that holds the Surface onto which video is being rendered if it matches the one passed.
    - + void clearVideoSurfaceView​(SurfaceView surfaceView) +
    Deprecated.
    Clears the SurfaceView onto which video is being rendered if it matches the one passed.
    - + void clearVideoTextureView​(TextureView textureView) +
    Deprecated.
    Clears the TextureView onto which video is being rendered if it matches the one passed.
    - + PlayerMessage createMessage​(PlayerMessage.Target target) +
    Deprecated.
    Creates a message that can be sent to a PlayerMessage.Target.
    - + void decreaseDeviceVolume() +
    Deprecated.
    Decreases the volume of the device.
    - + boolean experimentalIsSleepingForOffload() +
    Deprecated.
    Returns whether the player has paused its main loop to save power in offload scheduling mode.
    - + void experimentalSetOffloadSchedulingEnabled​(boolean offloadSchedulingEnabled) +
    Deprecated.
    Sets whether audio offload scheduling is enabled.
    - + AnalyticsCollector getAnalyticsCollector() +
    Deprecated.
    Returns the AnalyticsCollector used for collecting analytics events.
    - + Looper getApplicationLooper() +
    Deprecated.
    Returns the Looper associated with the application thread that's used to access the player and on which player events are received.
    - + AudioAttributes getAudioAttributes() +
    Deprecated.
    Returns the attributes for audio playback.
    - + ExoPlayer.AudioComponent getAudioComponent() -
    Returns the component of this player for audio output, or null if audio is not supported.
    - +
    Deprecated.
    +  - + DecoderCounters getAudioDecoderCounters() +
    Deprecated.
    Returns DecoderCounters for audio, or null if no audio is being played.
    - + Format getAudioFormat() +
    Deprecated.
    Returns the audio format currently being played, or null if no audio is being played.
    - + int getAudioSessionId() +
    Deprecated.
    Returns the audio session identifier, or C.AUDIO_SESSION_ID_UNSET if not set.
    - + Player.Commands getAvailableCommands() +
    Deprecated.
    Returns the player's currently available Player.Commands.
    - + long getBufferedPosition() -
    Returns an estimate of the position in the current content window or ad up to which data is - buffered, in milliseconds.
    +
    Deprecated.
    +
    Returns an estimate of the position in the current content or ad up to which data is buffered, + in milliseconds.
    - + Clock getClock() +
    Deprecated.
    Returns the Clock used for playback.
    - + long getContentBufferedPosition() +
    Deprecated.
    If Player.isPlayingAd() returns true, returns an estimate of the content position in - the current content window up to which data is buffered, in milliseconds.
    + the current content up to which data is buffered, in milliseconds. - + long getContentPosition() +
    Deprecated.
    If Player.isPlayingAd() returns true, returns the content position that will be played once all ads in the ad group have finished playing, in milliseconds.
    - + int getCurrentAdGroupIndex() +
    Deprecated.
    If Player.isPlayingAd() returns true, returns the index of the ad group in the period currently being played.
    - + int getCurrentAdIndexInAdGroup() +
    Deprecated.
    If Player.isPlayingAd() returns true, returns the index of the ad in its ad group.
    - + List<Cue> getCurrentCues() +
    Deprecated.
    Returns the current Cues.
    - + int -getCurrentPeriodIndex() +getCurrentMediaItemIndex() -
    Returns the index of the period currently being played.
    - - - -long -getCurrentPosition() - -
    Returns the playback position in the current content window or ad, in milliseconds, or the - prospective position in milliseconds if the current timeline is +
    Deprecated.
    +
    Returns the index of the current MediaItem in the timeline, or the prospective index if the current timeline is empty.
    - -List<Metadata> -getCurrentStaticMetadata() + +int +getCurrentPeriodIndex()
    Deprecated.
    +
    Returns the index of the period currently being played.
    - + +long +getCurrentPosition() + +
    Deprecated.
    +
    Returns the playback position in the current content or ad, in milliseconds, or the prospective + position in milliseconds if the current timeline is empty.
    + + + Timeline getCurrentTimeline() +
    Deprecated.
    Returns the current Timeline.
    - + TrackGroupArray getCurrentTrackGroups() +
    Deprecated.
    Returns the available track groups.
    - + TrackSelectionArray getCurrentTrackSelections() +
    Deprecated.
    Returns the current track selections.
    - -int -getCurrentWindowIndex() + +TracksInfo +getCurrentTracksInfo() -
    Returns the index of the current window in the timeline, or the prospective window index if the current timeline is empty.
    +
    Deprecated.
    +
    Returns the available tracks, as well as the tracks' support, type, and selection status.
    - + ExoPlayer.DeviceComponent getDeviceComponent() -
    Returns the component of this player for playback device, or null if it's not supported.
    - +
    Deprecated.
    +  - -DeviceInfo + +DeviceInfo getDeviceInfo() +
    Deprecated.
    Gets the device information.
    - + int getDeviceVolume() +
    Deprecated.
    Gets the current volume of the device.
    - + long getDuration() -
    Returns the duration of the current content window or ad in milliseconds, or C.TIME_UNSET if the duration is not known.
    +
    Deprecated.
    +
    Returns the duration of the current content or ad in milliseconds, or C.TIME_UNSET if + the duration is not known.
    - -int + +long getMaxSeekToPreviousPosition() -
    Returns the maximum position for which Player.seekToPrevious() seeks to the previous window, - in milliseconds.
    +
    Deprecated.
    +
    Returns the maximum position for which Player.seekToPrevious() seeks to the previous MediaItem, in milliseconds.
    - + MediaMetadata getMediaMetadata() +
    Deprecated.
    Returns the current combined MediaMetadata, or MediaMetadata.EMPTY if not supported.
    - -ExoPlayer.MetadataComponent -getMetadataComponent() - -
    Returns the component of this player for metadata output, or null if metadata is not supported.
    - - - + boolean getPauseAtEndOfMediaItems() +
    Deprecated.
    Returns whether the player pauses playback at the end of each media item.
    - + Looper getPlaybackLooper() +
    Deprecated.
    Returns the Looper associated with the playback thread.
    - + PlaybackParameters getPlaybackParameters() +
    Deprecated.
    Returns the currently active playback parameters.
    - -int + +@com.google.android.exoplayer2.Player.State int getPlaybackState() +
    Deprecated.
    Returns the current playback state of the player.
    - -int + +@com.google.android.exoplayer2.Player.PlaybackSuppressionReason int getPlaybackSuppressionReason() +
    Deprecated.
    Returns the reason why playback is suppressed even though Player.getPlayWhenReady() is true, or Player.PLAYBACK_SUPPRESSION_REASON_NONE if playback is not suppressed.
    - + ExoPlaybackException getPlayerError() +
    Deprecated.
    Equivalent to Player.getPlayerError(), except the exception is guaranteed to be an ExoPlaybackException.
    - + MediaMetadata getPlaylistMetadata() +
    Deprecated.
    Returns the playlist MediaMetadata, as set by Player.setPlaylistMetadata(MediaMetadata), or MediaMetadata.EMPTY if not supported.
    - + boolean getPlayWhenReady() +
    Deprecated.
    Whether playback will proceed when Player.getPlaybackState() == Player.STATE_READY.
    - + int getRendererCount() +
    Deprecated.
    Returns the number of renderers.
    - -int + +@com.google.android.exoplayer2.C.TrackType int getRendererType​(int index) +
    Deprecated.
    Returns the track type that the renderer at a given index handles.
    - -int + +@com.google.android.exoplayer2.Player.RepeatMode int getRepeatMode() +
    Deprecated.
    Returns the current Player.RepeatMode used for playback.
    - + long getSeekBackIncrement() +
    Deprecated.
    Returns the Player.seekBack() increment.
    - + long getSeekForwardIncrement() +
    Deprecated.
    Returns the Player.seekForward() increment.
    - + SeekParameters getSeekParameters() +
    Deprecated.
    Returns the currently active SeekParameters of the player.
    - + boolean getShuffleModeEnabled() -
    Returns whether shuffling of windows is enabled.
    +
    Deprecated.
    +
    Returns whether shuffling of media items is enabled.
    - + boolean getSkipSilenceEnabled() +
    Deprecated.
    Returns whether skipping silences in the audio stream is enabled.
    - + ExoPlayer.TextComponent getTextComponent() -
    Returns the component of this player for text output, or null if text is not supported.
    - +
    Deprecated.
    +  - + long getTotalBufferedDuration() +
    Deprecated.
    Returns an estimate of the total buffered duration from the current position, in milliseconds.
    - + +TrackSelectionParameters +getTrackSelectionParameters() + +
    Deprecated.
    +
    Returns the parameters constraining the track selection.
    + + + TrackSelector getTrackSelector() +
    Deprecated.
    Returns the track selector that this player uses, or null if track selection is not supported.
    - + +int +getVideoChangeFrameRateStrategy() + +
    Deprecated.
    + + + + ExoPlayer.VideoComponent getVideoComponent() -
    Returns the component of this player for video output, or null if video is not supported.
    - +
    Deprecated.
    +  - + DecoderCounters getVideoDecoderCounters() +
    Deprecated.
    Returns DecoderCounters for video, or null if no video is being played.
    - + Format getVideoFormat() +
    Deprecated.
    Returns the video format currently being played, or null if no video is being played.
    - + int getVideoScalingMode() +
    Deprecated.
    Returns the C.VideoScalingMode.
    - + VideoSize getVideoSize() +
    Deprecated.
    Gets the size of the video.
    - + float getVolume() +
    Deprecated.
    Returns the audio volume, with 0 being silence and 1 being unity gain (signal unchanged).
    - + void increaseDeviceVolume() +
    Deprecated.
    Increases the volume of the device.
    - + boolean isDeviceMuted() +
    Deprecated.
    Gets whether the device is muted or not.
    - + boolean isLoading() +
    Deprecated.
    Whether the player is currently loading the source.
    - + boolean isPlayingAd() +
    Deprecated.
    Returns whether the player is currently playing an ad.
    - + void moveMediaItems​(int fromIndex, int toIndex, int newIndex) +
    Deprecated.
    Moves the media item range to the new index.
    - + void prepare() +
    Deprecated.
    Prepares the player.
    - + void prepare​(MediaSource mediaSource) @@ -923,7 +973,7 @@ implements + void prepare​(MediaSource mediaSource, boolean resetPosition, @@ -935,85 +985,55 @@ implements + void release() +
    Deprecated.
    Releases the player.
    - + void removeAnalyticsListener​(AnalyticsListener listener) +
    Deprecated.
    Removes an AnalyticsListener.
    - -void -removeAudioListener​(AudioListener listener) - -
    Deprecated.
    - - - + void removeAudioOffloadListener​(ExoPlayer.AudioOffloadListener listener) +
    Deprecated.
    Removes a listener of audio offload events.
    - -void -removeDeviceListener​(DeviceListener listener) - -
    Deprecated.
    - - - + void removeListener​(Player.EventListener listener)
    Deprecated.
    - + void removeListener​(Player.Listener listener) +
    Deprecated.
    Unregister a listener registered through Player.addListener(Listener).
    - + void removeMediaItems​(int fromIndex, int toIndex) +
    Deprecated.
    Removes a range of media items from the playlist.
    - -void -removeMetadataOutput​(MetadataOutput output) - -
    Deprecated.
    - - - -void -removeTextOutput​(TextOutput listener) - -
    Deprecated.
    - - - -void -removeVideoListener​(VideoListener listener) - -
    Deprecated.
    - - - + void retry() @@ -1022,285 +1042,342 @@ implements + void -seekTo​(int windowIndex, +seekTo​(int mediaItemIndex, long positionMs) -
    Seeks to a position specified in milliseconds in the specified window.
    +
    Deprecated.
    +
    Seeks to a position specified in milliseconds in the specified MediaItem.
    - + void setAudioAttributes​(AudioAttributes audioAttributes, boolean handleAudioFocus) +
    Deprecated.
    Sets the attributes for audio playback, used by the underlying audio track.
    - + void setAudioSessionId​(int audioSessionId) +
    Deprecated.
    Sets the ID of the audio session to attach to the underlying AudioTrack.
    - + void setAuxEffectInfo​(AuxEffectInfo auxEffectInfo) +
    Deprecated.
    Sets information on an auxiliary audio effect to attach to the underlying audio track.
    - + void setCameraMotionListener​(CameraMotionListener listener) +
    Deprecated.
    Sets a listener of camera motion events.
    - + void setDeviceMuted​(boolean muted) +
    Deprecated.
    Sets the mute state of the device.
    - + void setDeviceVolume​(int volume) +
    Deprecated.
    Sets the volume of the device.
    - + void setForegroundMode​(boolean foregroundMode) +
    Deprecated.
    Sets whether the player is allowed to keep holding limited resources such as video decoders, even when in the idle state.
    - + void setHandleAudioBecomingNoisy​(boolean handleAudioBecomingNoisy) +
    Deprecated.
    Sets whether the player should pause automatically when audio is rerouted from a headset to device speakers.
    - + void setHandleWakeLock​(boolean handleWakeLock) -
    Deprecated. -
    Use setWakeMode(int) instead.
    -
    +
    Deprecated.
    - + void setMediaItems​(List<MediaItem> mediaItems, boolean resetPosition) +
    Deprecated.
    Clears the playlist and adds the specified MediaItems.
    - + void setMediaItems​(List<MediaItem> mediaItems, - int startWindowIndex, + int startIndex, long startPositionMs) +
    Deprecated.
    Clears the playlist and adds the specified MediaItems.
    - + void setMediaSource​(MediaSource mediaSource) +
    Deprecated.
    Clears the playlist, adds the specified MediaSource and resets the position to the default position.
    - + void setMediaSource​(MediaSource mediaSource, boolean resetPosition) +
    Deprecated.
    Clears the playlist and adds the specified MediaSource.
    - + void setMediaSource​(MediaSource mediaSource, long startPositionMs) +
    Deprecated.
    Clears the playlist and adds the specified MediaSource.
    - + void setMediaSources​(List<MediaSource> mediaSources) +
    Deprecated.
    Clears the playlist, adds the specified MediaSources and resets the position to the default position.
    - + void setMediaSources​(List<MediaSource> mediaSources, boolean resetPosition) +
    Deprecated.
    Clears the playlist and adds the specified MediaSources.
    + +void +setMediaSources​(List<MediaSource> mediaSources, + int startMediaItemIndex, + long startPositionMs) + +
    Deprecated.
    +
    Clears the playlist and adds the specified MediaSources.
    + + + +void +setPauseAtEndOfMediaItems​(boolean pauseAtEndOfMediaItems) + +
    Deprecated.
    +
    Sets whether to pause playback at the end of each media item.
    + + + +void +setPlaybackParameters​(PlaybackParameters playbackParameters) + +
    Deprecated.
    +
    Attempts to set the playback parameters.
    + + + +void +setPlaylistMetadata​(MediaMetadata mediaMetadata) + +
    Deprecated.
    +
    Sets the playlist MediaMetadata.
    + + + +void +setPlayWhenReady​(boolean playWhenReady) + +
    Deprecated.
    +
    Sets whether playback should proceed when Player.getPlaybackState() == Player.STATE_READY.
    + + + +void +setPriorityTaskManager​(PriorityTaskManager priorityTaskManager) + +
    Deprecated.
    +
    Sets a PriorityTaskManager, or null to clear a previously set priority task manager.
    + + + +void +setRepeatMode​(@com.google.android.exoplayer2.Player.RepeatMode int repeatMode) + +
    Deprecated.
    +
    Sets the Player.RepeatMode to be used for playback.
    + + + +void +setSeekParameters​(SeekParameters seekParameters) + +
    Deprecated.
    +
    Sets the parameters that control how seek operations are performed.
    + + + +void +setShuffleModeEnabled​(boolean shuffleModeEnabled) + +
    Deprecated.
    +
    Sets whether shuffling of media items is enabled.
    + + void -setMediaSources​(List<MediaSource> mediaSources, - int startWindowIndex, - long startPositionMs) +setShuffleOrder​(ShuffleOrder shuffleOrder) -
    Clears the playlist and adds the specified MediaSources.
    +
    Deprecated.
    +
    Sets the shuffle order.
    void -setPauseAtEndOfMediaItems​(boolean pauseAtEndOfMediaItems) +setSkipSilenceEnabled​(boolean skipSilenceEnabled) -
    Sets whether to pause playback at the end of each media item.
    +
    Deprecated.
    +
    Sets whether skipping silences in the audio stream is enabled.
    void -setPlaybackParameters​(PlaybackParameters playbackParameters) +setThrowsWhenUsingWrongThread​(boolean throwsWhenUsingWrongThread) -
    Attempts to set the playback parameters.
    +
    Deprecated.
    void -setPlaylistMetadata​(MediaMetadata mediaMetadata) +setTrackSelectionParameters​(TrackSelectionParameters parameters) -
    Sets the playlist MediaMetadata.
    +
    Deprecated.
    +
    Sets the parameters constraining the track selection.
    void -setPlayWhenReady​(boolean playWhenReady) +setVideoChangeFrameRateStrategy​(int videoChangeFrameRateStrategy) -
    Sets whether playback should proceed when Player.getPlaybackState() == Player.STATE_READY.
    +
    Deprecated.
    +
    Sets a C.VideoChangeFrameRateStrategy that will be used by the player when provided + with a video output Surface.
    void -setPriorityTaskManager​(PriorityTaskManager priorityTaskManager) +setVideoFrameMetadataListener​(VideoFrameMetadataListener listener) -
    Sets a PriorityTaskManager, or null to clear a previously set priority task manager.
    +
    Deprecated.
    +
    Sets a listener to receive video frame metadata events.
    void -setRepeatMode​(int repeatMode) +setVideoScalingMode​(int videoScalingMode) -
    Sets the Player.RepeatMode to be used for playback.
    +
    Deprecated.
    + void -setSeekParameters​(SeekParameters seekParameters) +setVideoSurface​(Surface surface) -
    Sets the parameters that control how seek operations are performed.
    +
    Deprecated.
    +
    Sets the Surface onto which video will be rendered.
    void -setShuffleModeEnabled​(boolean shuffleModeEnabled) - -
    Sets whether shuffling of windows is enabled.
    - - - -void -setShuffleOrder​(ShuffleOrder shuffleOrder) - -
    Sets the shuffle order.
    - - - -void -setSkipSilenceEnabled​(boolean skipSilenceEnabled) - -
    Sets whether skipping silences in the audio stream is enabled.
    - - - -void -setThrowsWhenUsingWrongThread​(boolean throwsWhenUsingWrongThread) - -
    Deprecated. -
    Disabling the enforcement can result in hard-to-detect bugs.
    -
    - - - -void -setVideoFrameMetadataListener​(VideoFrameMetadataListener listener) - -
    Sets a listener to receive video frame metadata events.
    - - - -void -setVideoScalingMode​(int videoScalingMode) - -
    Sets the video scaling mode.
    - - - -void -setVideoSurface​(Surface surface) - -
    Sets the Surface onto which video will be rendered.
    - - - -void setVideoSurfaceHolder​(SurfaceHolder surfaceHolder) +
    Deprecated.
    Sets the SurfaceHolder that holds the Surface onto which video will be rendered.
    - + void setVideoSurfaceView​(SurfaceView surfaceView) +
    Deprecated.
    Sets the SurfaceView onto which video will be rendered.
    - + void setVideoTextureView​(TextureView textureView) +
    Deprecated.
    Sets the TextureView onto which video will be rendered.
    - + void -setVolume​(float audioVolume) +setVolume​(float volume) -
    Sets the audio volume, with 0 being silence and 1 being unity gain (signal unchanged).
    +
    Deprecated.
    +
    Sets the audio volume, valid values are between 0 (silence) and 1 (unity gain, signal + unchanged), inclusive.
    - + void -setWakeMode​(int wakeMode) +setWakeMode​(@com.google.android.exoplayer2.C.WakeMode int wakeMode) +
    Deprecated.
    Sets how the player should keep the device awake for playback when the screen is off.
    - + +void +stop() + +
    Deprecated.
    +
    Stops playback without resetting the player.
    + + + void stop​(boolean reset) @@ -1313,7 +1390,7 @@ implements BasePlayer -addMediaItem, addMediaItem, addMediaItems, clearMediaItems, getAvailableCommands, getBufferedPercentage, getContentDuration, getCurrentLiveOffset, getCurrentManifest, getCurrentMediaItem, getMediaItemAt, getMediaItemCount, getNextWindowIndex, getPreviousWindowIndex, hasNext, hasNextWindow, hasPrevious, hasPreviousWindow, isCommandAvailable, isCurrentWindowDynamic, isCurrentWindowLive, isCurrentWindowSeekable, isPlaying, moveMediaItem, next, pause, play, previous, removeMediaItem, seekBack, seekForward, seekTo, seekToDefaultPosition, seekToDefaultPosition, seekToNext, seekToNextWindow, seekToPrevious, seekToPreviousWindow, setMediaItem, setMediaItem, setMediaItem, setMediaItems, setPlaybackSpeed, stop +addMediaItem, addMediaItem, addMediaItems, canAdvertiseSession, clearMediaItems, getAvailableCommands, getBufferedPercentage, getContentDuration, getCurrentLiveOffset, getCurrentManifest, getCurrentMediaItem, getCurrentWindowIndex, getMediaItemAt, getMediaItemCount, getNextMediaItemIndex, getNextWindowIndex, getPreviousMediaItemIndex, getPreviousWindowIndex, hasNext, hasNextMediaItem, hasNextWindow, hasPrevious, hasPreviousMediaItem, hasPreviousWindow, isCommandAvailable, isCurrentMediaItemDynamic, isCurrentMediaItemLive, isCurrentMediaItemSeekable, isCurrentWindowDynamic, isCurrentWindowLive, isCurrentWindowSeekable, isPlaying, moveMediaItem, next, pause, play, previous, removeMediaItem, seekBack, seekForward, seekTo, seekToDefaultPosition, seekToDefaultPosition, seekToNext, seekToNextMediaItem, seekToNextWindow, seekToPrevious, seekToPreviousMediaItem, seekToPreviousWindow, setMediaItem, setMediaItem, setMediaItem, setMediaItems, setPlaybackSpeed @@ -1345,20 +1422,6 @@ implements - - -
      -
    • -

      DEFAULT_DETACH_SURFACE_TIMEOUT_MS

      -
      public static final long DEFAULT_DETACH_SURFACE_TIMEOUT_MS
      -
      The default timeout for detaching a surface from the player, in milliseconds.
      -
      -
      See Also:
      -
      Constant Field Values
      -
      -
    • -
    @@ -1366,6 +1429,7 @@ implements

    renderers

    protected final Renderer[] renderers
    +
    Deprecated.
    @@ -1396,7 +1460,7 @@ protected SimpleExoPlayer​(Clock clock, Looper applicationLooper)
    Deprecated. - +
    @@ -1407,6 +1471,7 @@ protected SimpleExoPlayer​(

    SimpleExoPlayer

    protected SimpleExoPlayer​(SimpleExoPlayer.Builder builder)
    +
    Deprecated.
    Parameters:
    builder - The SimpleExoPlayer.Builder to obtain all construction parameters.
    @@ -1430,6 +1495,7 @@ protected SimpleExoPlayer​(

    experimentalSetOffloadSchedulingEnabled

    public void experimentalSetOffloadSchedulingEnabled​(boolean offloadSchedulingEnabled)
    +
    Deprecated.
    Sets whether audio offload scheduling is enabled. If enabled, ExoPlayer's main loop will run as rarely as possible when playing an audio stream using audio offload. @@ -1476,6 +1542,7 @@ protected SimpleExoPlayer​(

    experimentalIsSleepingForOffload

    public boolean experimentalIsSleepingForOffload()
    +
    Deprecated.
    Returns whether the player has paused its main loop to save power in offload scheduling mode.
    @@ -1495,8 +1562,7 @@ protected SimpleExoPlayer​(@Nullable public ExoPlayer.AudioComponent getAudioComponent() -
    Description copied from interface: ExoPlayer
    -
    Returns the component of this player for audio output, or null if audio is not supported.
    +
    Deprecated.
    Specified by:
    getAudioComponent in interface ExoPlayer
    @@ -1511,8 +1577,7 @@ public @Nullable public ExoPlayer.VideoComponent getVideoComponent() -
    Description copied from interface: ExoPlayer
    -
    Returns the component of this player for video output, or null if video is not supported.
    +
    Deprecated.
    Specified by:
    getVideoComponent in interface ExoPlayer
    @@ -1527,30 +1592,13 @@ public @Nullable public ExoPlayer.TextComponent getTextComponent() -
    Description copied from interface: ExoPlayer
    -
    Returns the component of this player for text output, or null if text is not supported.
    +
    Deprecated.
    Specified by:
    getTextComponent in interface ExoPlayer
    - - - - @@ -1559,8 +1607,7 @@ public @Nullable public ExoPlayer.DeviceComponent getDeviceComponent() -
    Description copied from interface: ExoPlayer
    -
    Returns the component of this player for playback device, or null if it's not supported.
    +
    Deprecated.
    Specified by:
    getDeviceComponent in interface ExoPlayer
    @@ -1575,12 +1622,16 @@ public public void setVideoScalingMode​(@VideoScalingMode int videoScalingMode) -
    Sets the video scaling mode. +
    Deprecated.
    +
    Description copied from interface: ExoPlayer
    +
    Sets the C.VideoScalingMode. -

    Note that the scaling mode only applies if a MediaCodec-based video Renderer - is enabled and if the output surface is owned by a SurfaceView.

    +

    The scaling mode only applies if a MediaCodec-based video Renderer is + enabled and if the output surface is owned by a SurfaceView.

    Specified by:
    +
    setVideoScalingMode in interface ExoPlayer
    +
    Specified by:
    setVideoScalingMode in interface ExoPlayer.VideoComponent
    Parameters:
    videoScalingMode - The C.VideoScalingMode.
    @@ -1595,14 +1646,64 @@ public @VideoScalingMode public int getVideoScalingMode() -
    Description copied from interface: ExoPlayer.VideoComponent
    +
    Deprecated.
    +
    Description copied from interface: ExoPlayer
    Returns the C.VideoScalingMode.
    Specified by:
    +
    getVideoScalingMode in interface ExoPlayer
    +
    Specified by:
    getVideoScalingMode in interface ExoPlayer.VideoComponent
    + + + + + + + + @@ -1610,6 +1711,7 @@ public int getVideoScalingMode()
  • getVideoSize

    public VideoSize getVideoSize()
    +
    Deprecated.
    Description copied from interface: Player
    Gets the size of the video. @@ -1632,6 +1734,7 @@ public int getVideoScalingMode()
  • clearVideoSurface

    public void clearVideoSurface()
    +
    Deprecated.
    Description copied from interface: Player
    Clears any Surface, SurfaceHolder, SurfaceView or TextureView currently set on the player.
    @@ -1651,6 +1754,7 @@ public int getVideoScalingMode()

    clearVideoSurface

    public void clearVideoSurface​(@Nullable
                                   Surface surface)
    +
    Deprecated.
    Description copied from interface: Player
    Clears the Surface onto which video is being rendered if it matches the one passed. Else does nothing.
    @@ -1672,6 +1776,7 @@ public int getVideoScalingMode()

    setVideoSurface

    public void setVideoSurface​(@Nullable
                                 Surface surface)
    +
    Deprecated.
    Description copied from interface: Player
    Sets the Surface onto which video will be rendered. The caller is responsible for tracking the lifecycle of the surface, and must clear the surface by calling @@ -1698,6 +1803,7 @@ public int getVideoScalingMode()

    setVideoSurfaceHolder

    public void setVideoSurfaceHolder​(@Nullable
                                       SurfaceHolder surfaceHolder)
    +
    Deprecated.
    Description copied from interface: Player
    Sets the SurfaceHolder that holds the Surface onto which video will be rendered. The player will track the lifecycle of the surface automatically. @@ -1722,6 +1828,7 @@ public int getVideoScalingMode()

    clearVideoSurfaceHolder

    public void clearVideoSurfaceHolder​(@Nullable
                                         SurfaceHolder surfaceHolder)
    +
    Deprecated.
    Description copied from interface: Player
    Clears the SurfaceHolder that holds the Surface onto which video is being rendered if it matches the one passed. Else does nothing.
    @@ -1743,6 +1850,7 @@ public int getVideoScalingMode()

    setVideoSurfaceView

    public void setVideoSurfaceView​(@Nullable
                                     SurfaceView surfaceView)
    +
    Deprecated.
    Description copied from interface: Player
    Sets the SurfaceView onto which video will be rendered. The player will track the lifecycle of the surface automatically. @@ -1767,6 +1875,7 @@ public int getVideoScalingMode()

    clearVideoSurfaceView

    public void clearVideoSurfaceView​(@Nullable
                                       SurfaceView surfaceView)
    +
    Deprecated.
    Description copied from interface: Player
    Clears the SurfaceView onto which video is being rendered if it matches the one passed. Else does nothing.
    @@ -1788,6 +1897,7 @@ public int getVideoScalingMode()

    setVideoTextureView

    public void setVideoTextureView​(@Nullable
                                     TextureView textureView)
    +
    Deprecated.
    Description copied from interface: Player
    Sets the TextureView onto which video will be rendered. The player will track the lifecycle of the surface automatically. @@ -1812,6 +1922,7 @@ public int getVideoScalingMode()

    clearVideoTextureView

    public void clearVideoTextureView​(@Nullable
                                       TextureView textureView)
    +
    Deprecated.
    Description copied from interface: Player
    Clears the TextureView onto which video is being rendered if it matches the one passed. Else does nothing.
    @@ -1832,6 +1943,7 @@ public int getVideoScalingMode()
  • addAudioOffloadListener

    public void addAudioOffloadListener​(ExoPlayer.AudioOffloadListener listener)
    +
    Deprecated.
    Description copied from interface: ExoPlayer
    Adds a listener to receive audio offload events.
    @@ -1849,6 +1961,7 @@ public int getVideoScalingMode()
  • removeAudioOffloadListener

    public void removeAudioOffloadListener​(ExoPlayer.AudioOffloadListener listener)
    +
    Deprecated.
    Description copied from interface: ExoPlayer
    Removes a listener of audio offload events.
    @@ -1859,44 +1972,6 @@ public int getVideoScalingMode()
  • - - - - - - - - @@ -1905,7 +1980,8 @@ public void removeAudioListener​(public void setAudioAttributes​(AudioAttributes audioAttributes, boolean handleAudioFocus) -
    Description copied from interface: ExoPlayer.AudioComponent
    +
    Deprecated.
    +
    Description copied from interface: ExoPlayer
    Sets the attributes for audio playback, used by the underlying audio track. If not set, the default audio attributes will be used. They are suitable for general media playback. @@ -1915,13 +1991,15 @@ public void removeAudioListener​(Util.getStreamTypeForAudioUsage(int). +

    If the device is running a build before platform API version 21, audio attributes cannot be + set directly on the underlying audio track. In this case, the usage will be mapped onto an + equivalent stream type using Util.getStreamTypeForAudioUsage(int).

    If audio focus should be handled, the AudioAttributes.usage must be C.USAGE_MEDIA or C.USAGE_GAME. Other usages will throw an IllegalArgumentException.

    Specified by:
    +
    setAudioAttributes in interface ExoPlayer
    +
    Specified by:
    setAudioAttributes in interface ExoPlayer.AudioComponent
    Parameters:
    audioAttributes - The attributes to use for audio playback.
    @@ -1936,6 +2014,7 @@ public void removeAudioListener​(

    getAudioAttributes

    public AudioAttributes getAudioAttributes()
    +
    Deprecated.
    Description copied from interface: Player
    Returns the attributes for audio playback.
    @@ -1953,17 +2032,20 @@ public void removeAudioListener​(

    setAudioSessionId

    public void setAudioSessionId​(int audioSessionId)
    -
    +
    Deprecated.
    +
    Description copied from interface: ExoPlayer
    Sets the ID of the audio session to attach to the underlying AudioTrack. -

    The audio session ID can be generated using C.generateAudioSessionIdV21(Context) +

    The audio session ID can be generated using Util.generateAudioSessionIdV21(Context) for API 21+.

    Specified by:
    +
    setAudioSessionId in interface ExoPlayer
    +
    Specified by:
    setAudioSessionId in interface ExoPlayer.AudioComponent
    Parameters:
    -
    audioSessionId - The audio session ID, or C.AUDIO_SESSION_ID_UNSET if it should - be generated by the framework.
    +
    audioSessionId - The audio session ID, or C.AUDIO_SESSION_ID_UNSET if it should be + generated by the framework.
  • @@ -1974,10 +2056,13 @@ public void removeAudioListener​(

    getAudioSessionId

    public int getAudioSessionId()
    -
    +
    Deprecated.
    +
    Description copied from interface: ExoPlayer
    Returns the audio session identifier, or C.AUDIO_SESSION_ID_UNSET if not set.
    Specified by:
    +
    getAudioSessionId in interface ExoPlayer
    +
    Specified by:
    getAudioSessionId in interface ExoPlayer.AudioComponent
    @@ -1989,10 +2074,13 @@ public void removeAudioListener​(

    setAuxEffectInfo

    public void setAuxEffectInfo​(AuxEffectInfo auxEffectInfo)
    -
    Description copied from interface: ExoPlayer.AudioComponent
    +
    Deprecated.
    +
    Description copied from interface: ExoPlayer
    Sets information on an auxiliary audio effect to attach to the underlying audio track.
    Specified by:
    +
    setAuxEffectInfo in interface ExoPlayer
    +
    Specified by:
    setAuxEffectInfo in interface ExoPlayer.AudioComponent
    @@ -2004,10 +2092,13 @@ public void removeAudioListener​(

    clearAuxEffectInfo

    public void clearAuxEffectInfo()
    -
    +
    Deprecated.
    +
    Description copied from interface: ExoPlayer
    Detaches any previously attached auxiliary audio effect from the underlying audio track.
    Specified by:
    +
    clearAuxEffectInfo in interface ExoPlayer
    +
    Specified by:
    clearAuxEffectInfo in interface ExoPlayer.AudioComponent
    @@ -2018,16 +2109,18 @@ public void removeAudioListener​(
  • setVolume

    -
    public void setVolume​(float audioVolume)
    +
    public void setVolume​(float volume)
    +
    Deprecated.
    -
    Sets the audio volume, with 0 being silence and 1 being unity gain (signal unchanged).
    +
    Sets the audio volume, valid values are between 0 (silence) and 1 (unity gain, signal + unchanged), inclusive.
    Specified by:
    setVolume in interface ExoPlayer.AudioComponent
    Specified by:
    setVolume in interface Player
    Parameters:
    -
    audioVolume - Linear output gain to apply to all audio channels.
    +
    volume - Linear output gain to apply to all audio channels.
  • @@ -2038,6 +2131,7 @@ public void removeAudioListener​(

    getVolume

    public float getVolume()
    +
    Deprecated.
    Returns the audio volume, with 0 being silence and 1 being unity gain (signal unchanged).
    @@ -2057,10 +2151,13 @@ public void removeAudioListener​(

    getSkipSilenceEnabled

    public boolean getSkipSilenceEnabled()
    -
    +
    Deprecated.
    +
    Description copied from interface: ExoPlayer
    Returns whether skipping silences in the audio stream is enabled.
    Specified by:
    +
    getSkipSilenceEnabled in interface ExoPlayer
    +
    Specified by:
    getSkipSilenceEnabled in interface ExoPlayer.AudioComponent
    @@ -2072,10 +2169,13 @@ public void removeAudioListener​(

    setSkipSilenceEnabled

    public void setSkipSilenceEnabled​(boolean skipSilenceEnabled)
    -
    +
    Deprecated.
    +
    Description copied from interface: ExoPlayer
    Sets whether skipping silences in the audio stream is enabled.
    Specified by:
    +
    setSkipSilenceEnabled in interface ExoPlayer
    +
    Specified by:
    setSkipSilenceEnabled in interface ExoPlayer.AudioComponent
    Parameters:
    skipSilenceEnabled - Whether skipping silences in the audio stream is enabled.
    @@ -2089,7 +2189,13 @@ public void removeAudioListener​(

    getAnalyticsCollector

    public AnalyticsCollector getAnalyticsCollector()
    +
    Deprecated.
    +
    Description copied from interface: ExoPlayer
    Returns the AnalyticsCollector used for collecting analytics events.
    +
    +
    Specified by:
    +
    getAnalyticsCollector in interface ExoPlayer
    +
    @@ -2099,8 +2205,12 @@ public void removeAudioListener​(

    addAnalyticsListener

    public void addAnalyticsListener​(AnalyticsListener listener)
    +
    Deprecated.
    +
    Description copied from interface: ExoPlayer
    Adds an AnalyticsListener to receive analytics events.
    +
    Specified by:
    +
    addAnalyticsListener in interface ExoPlayer
    Parameters:
    listener - The listener to be added.
    @@ -2113,8 +2223,12 @@ public void removeAudioListener​(

    removeAnalyticsListener

    public void removeAnalyticsListener​(AnalyticsListener listener)
    +
    Deprecated.
    +
    Description copied from interface: ExoPlayer
    Removes an AnalyticsListener.
    +
    Specified by:
    +
    removeAnalyticsListener in interface ExoPlayer
    Parameters:
    listener - The listener to be removed.
    @@ -2127,10 +2241,14 @@ public void removeAudioListener​(

    setHandleAudioBecomingNoisy

    public void setHandleAudioBecomingNoisy​(boolean handleAudioBecomingNoisy)
    +
    Deprecated.
    +
    Sets whether the player should pause automatically when audio is rerouted from a headset to device speakers. See the audio becoming noisy documentation for more information.
    +
    Specified by:
    +
    setHandleAudioBecomingNoisy in interface ExoPlayer
    Parameters:
    handleAudioBecomingNoisy - Whether the player should pause automatically when audio is rerouted from a headset to device speakers.
    @@ -2145,10 +2263,14 @@ public void removeAudioListener​(public void setPriorityTaskManager​(@Nullable PriorityTaskManager priorityTaskManager) +
    Deprecated.
    +
    Description copied from interface: ExoPlayer
    Sets a PriorityTaskManager, or null to clear a previously set priority task manager.

    The priority C.PRIORITY_PLAYBACK will be set while the player is loading.

    +
    Specified by:
    +
    setPriorityTaskManager in interface ExoPlayer
    Parameters:
    priorityTaskManager - The PriorityTaskManager, or null to clear a previously set priority task manager.
    @@ -2163,7 +2285,13 @@ public void removeAudioListener​(@Nullable public Format getVideoFormat() +
    Deprecated.
    +
    Description copied from interface: ExoPlayer
    Returns the video format currently being played, or null if no video is being played.
    +
    +
    Specified by:
    +
    getVideoFormat in interface ExoPlayer
    +
    @@ -2174,7 +2302,13 @@ public getAudioFormat
    @Nullable
     public Format getAudioFormat()
    +
    Deprecated.
    +
    Description copied from interface: ExoPlayer
    Returns the audio format currently being played, or null if no audio is being played.
    +
    +
    Specified by:
    +
    getAudioFormat in interface ExoPlayer
    +
    @@ -2185,7 +2319,13 @@ public getVideoDecoderCounters
    @Nullable
     public DecoderCounters getVideoDecoderCounters()
    +
    Deprecated.
    +
    Description copied from interface: ExoPlayer
    Returns DecoderCounters for video, or null if no video is being played.
    +
    +
    Specified by:
    +
    getVideoDecoderCounters in interface ExoPlayer
    +
    @@ -2196,44 +2336,12 @@ public @Nullable public DecoderCounters getAudioDecoderCounters() +
    Deprecated.
    +
    Description copied from interface: ExoPlayer
    Returns DecoderCounters for audio, or null if no audio is being played.
    - - - - - - - - - - @@ -2244,7 +2352,8 @@ public void removeVideoListener​(

    setVideoFrameMetadataListener

    public void setVideoFrameMetadataListener​(VideoFrameMetadataListener listener)
    -
    Description copied from interface: ExoPlayer.VideoComponent
    +
    Deprecated.
    +
    Description copied from interface: ExoPlayer
    Sets a listener to receive video frame metadata events.

    This method is intended to be called by the same component that sets the Surface @@ -2252,6 +2361,8 @@ public void removeVideoListener​(Specified by: +

    setVideoFrameMetadataListener in interface ExoPlayer
    +
    Specified by:
    setVideoFrameMetadataListener in interface ExoPlayer.VideoComponent
    Parameters:
    listener - The listener.
    @@ -2265,11 +2376,14 @@ public void removeVideoListener​(

    clearVideoFrameMetadataListener

    public void clearVideoFrameMetadataListener​(VideoFrameMetadataListener listener)
    -
    Description copied from interface: ExoPlayer.VideoComponent
    +
    Deprecated.
    +
    Description copied from interface: ExoPlayer
    Clears the listener which receives video frame metadata events if it matches the one passed. Else does nothing.
    Specified by:
    +
    clearVideoFrameMetadataListener in interface ExoPlayer
    +
    Specified by:
    clearVideoFrameMetadataListener in interface ExoPlayer.VideoComponent
    Parameters:
    listener - The listener to clear.
    @@ -2283,10 +2397,13 @@ public void removeVideoListener​(

    setCameraMotionListener

    public void setCameraMotionListener​(CameraMotionListener listener)
    -
    Description copied from interface: ExoPlayer.VideoComponent
    +
    Deprecated.
    +
    Description copied from interface: ExoPlayer
    Sets a listener of camera motion events.
    Specified by:
    +
    setCameraMotionListener in interface ExoPlayer
    +
    Specified by:
    setCameraMotionListener in interface ExoPlayer.VideoComponent
    Parameters:
    listener - The listener.
    @@ -2300,55 +2417,20 @@ public void removeVideoListener​(

    clearCameraMotionListener

    public void clearCameraMotionListener​(CameraMotionListener listener)
    -
    Description copied from interface: ExoPlayer.VideoComponent
    -
    Clears the listener which receives camera motion events if it matches the one passed. Else - does nothing.
    +
    Deprecated.
    +
    Description copied from interface: ExoPlayer
    +
    Clears the listener which receives camera motion events if it matches the one passed. Else does + nothing.
    Specified by:
    +
    clearCameraMotionListener in interface ExoPlayer
    +
    Specified by:
    clearCameraMotionListener in interface ExoPlayer.VideoComponent
    Parameters:
    listener - The listener to clear.
    - - - - - - - - @@ -2356,6 +2438,7 @@ public void removeTextOutput​(

    getCurrentCues

    public List<Cue> getCurrentCues()
    +
    Deprecated.
    Description copied from interface: Player
    Returns the current Cues. This list may be empty.
    @@ -2366,44 +2449,6 @@ public void removeTextOutput​( - - - - - - - - @@ -2411,6 +2456,7 @@ public void removeMetadataOutput​(

    getPlaybackLooper

    public Looper getPlaybackLooper()
    +
    Deprecated.
    Description copied from interface: ExoPlayer
    Returns the Looper associated with the playback thread.
    @@ -2426,6 +2472,7 @@ public void removeMetadataOutput​(

    getApplicationLooper

    public Looper getApplicationLooper()
    +
    Deprecated.
    Description copied from interface: Player
    Returns the Looper associated with the application thread that's used to access the player and on which player events are received.
    @@ -2442,6 +2489,7 @@ public void removeMetadataOutput​(

    getClock

    public Clock getClock()
    +
    Deprecated.
    Description copied from interface: ExoPlayer
    Returns the Clock used for playback.
    @@ -2457,12 +2505,11 @@ public void removeMetadataOutput​(

    addListener

    public void addListener​(Player.Listener listener)
    +
    Deprecated.
    Description copied from interface: Player
    Registers a listener to receive all events from the player. -

    The listener's methods will be called on the thread that was used to construct the player. - However, if the thread used to construct the player does not have a Looper, then the - listener will be called on the main thread.

    +

    The listener's methods will be called on the thread associated with Player.getApplicationLooper().

    Specified by:
    addListener in interface Player
    @@ -2480,15 +2527,13 @@ public void removeMetadataOutput​(@Deprecated public void addListener​(Player.EventListener listener)
    Deprecated.
    -
    Description copied from interface: Player
    +
    Description copied from interface: ExoPlayer
    Registers a listener to receive events from the player. -

    The listener's methods will be called on the thread that was used to construct the player. - However, if the thread used to construct the player does not have a Looper, then the - listener will be called on the main thread.

    +

    The listener's methods will be called on the thread associated with Player.getApplicationLooper().

    Specified by:
    -
    addListener in interface Player
    +
    addListener in interface ExoPlayer
    Parameters:
    listener - The listener to register.
    @@ -2501,6 +2546,7 @@ public void addListener​(

    removeListener

    public void removeListener​(Player.Listener listener)
    +
    Deprecated.
    Description copied from interface: Player
    Unregister a listener registered through Player.addListener(Listener). The listener will no longer receive events.
    @@ -2521,12 +2567,12 @@ public void addListener​(@Deprecated public void removeListener​(Player.EventListener listener)
    Deprecated.
    -
    Description copied from interface: Player
    -
    Unregister a listener registered through Player.addListener(EventListener). The listener will +
    Description copied from interface: ExoPlayer
    +
    Unregister a listener registered through ExoPlayer.addListener(EventListener). The listener will no longer receive events from the player.
    Specified by:
    -
    removeListener in interface Player
    +
    removeListener in interface ExoPlayer
    Parameters:
    listener - The listener to unregister.
    @@ -2539,7 +2585,8 @@ public void removeListener​(

    getPlaybackState

    @State
    -public int getPlaybackState()
    +public @com.google.android.exoplayer2.Player.State int getPlaybackState() +
    Deprecated.
    Description copied from interface: Player
    Returns the current playback state of the player.
    @@ -2548,7 +2595,7 @@ public int getPlaybackState()
    Returns:
    The current playback state.
    See Also:
    -
    Player.Listener.onPlaybackStateChanged(int)
    +
    Player.Listener.onPlaybackStateChanged(int)
    @@ -2559,7 +2606,8 @@ public int getPlaybackState()
  • getPlaybackSuppressionReason

    @PlaybackSuppressionReason
    -public int getPlaybackSuppressionReason()
    +public @com.google.android.exoplayer2.Player.PlaybackSuppressionReason int getPlaybackSuppressionReason() +
    Deprecated.
    Description copied from interface: Player
    Returns the reason why playback is suppressed even though Player.getPlayWhenReady() is true, or Player.PLAYBACK_SUPPRESSION_REASON_NONE if playback is not suppressed.
    @@ -2569,7 +2617,7 @@ public int getPlaybackSuppressionReason()
    Returns:
    The current playback suppression reason.
    See Also:
    -
    Player.Listener.onPlaybackSuppressionReasonChanged(int)
    +
    Player.Listener.onPlaybackSuppressionReasonChanged(int)
  • @@ -2581,6 +2629,7 @@ public int getPlaybackSuppressionReason()

    getPlayerError

    @Nullable
     public ExoPlaybackException getPlayerError()
    +
    Deprecated.
    Description copied from interface: ExoPlayer
    Equivalent to Player.getPlayerError(), except the exception is guaranteed to be an ExoPlaybackException.
    @@ -2620,18 +2669,18 @@ public void retry()
  • getAvailableCommands

    public Player.Commands getAvailableCommands()
    +
    Deprecated.
    Description copied from interface: Player
    Returns the player's currently available Player.Commands.

    The returned Player.Commands are not updated when available commands change. Use Player.Listener.onAvailableCommandsChanged(Commands) to get an update when the available commands change. -

    Executing a command that is not available (for example, calling Player.seekToNextWindow() - if Player.COMMAND_SEEK_TO_NEXT_WINDOW is unavailable) will neither throw an exception nor - generate a Player.getPlayerError() player error}. +

    Executing a command that is not available (for example, calling Player.seekToNextMediaItem() if Player.COMMAND_SEEK_TO_NEXT_MEDIA_ITEM is unavailable) will + neither throw an exception nor generate a Player.getPlayerError() player error}. -

    Player.COMMAND_SEEK_TO_PREVIOUS_WINDOW and Player.COMMAND_SEEK_TO_NEXT_WINDOW are - unavailable if there is no such MediaItem.

    +

    Player.COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM and Player.COMMAND_SEEK_TO_NEXT_MEDIA_ITEM + are unavailable if there is no such MediaItem.

    Specified by:
    getAvailableCommands in interface Player
    @@ -2649,6 +2698,7 @@ public void retry()
  • prepare

    public void prepare()
    +
    Deprecated.
    Description copied from interface: Player
    Prepares the player.
    @@ -2702,6 +2752,7 @@ public void prepare​(public void setMediaItems​(List<MediaItem> mediaItems, boolean resetPosition) +
    Deprecated.
    Description copied from interface: Player
    Clears the playlist and adds the specified MediaItems.
    @@ -2711,7 +2762,7 @@ public void prepare​(MediaItems.
    resetPosition - Whether the playback position should be reset to the default position in the first Timeline.Window. If false, playback will start from the position defined - by Player.getCurrentWindowIndex() and Player.getCurrentPosition().
    + by Player.getCurrentMediaItemIndex() and Player.getCurrentPosition().
  • @@ -2722,8 +2773,9 @@ public void prepare​(

    setMediaItems

    public void setMediaItems​(List<MediaItem> mediaItems,
    -                          int startWindowIndex,
    +                          int startIndex,
                               long startPositionMs)
    +
    Deprecated.
    Description copied from interface: Player
    Clears the playlist and adds the specified MediaItems.
    @@ -2731,11 +2783,11 @@ public void prepare​(setMediaItems in interface Player
    Parameters:
    mediaItems - The new MediaItems.
    -
    startWindowIndex - The window index to start playback from. If C.INDEX_UNSET is - passed, the current position is not reset.
    -
    startPositionMs - The position in milliseconds to start playback from. If C.TIME_UNSET is passed, the default position of the given window is used. In any case, if - startWindowIndex is set to C.INDEX_UNSET, this parameter is ignored and the - position is not reset at all.
    +
    startIndex - The MediaItem index to start playback from. If C.INDEX_UNSET + is passed, the current position is not reset.
    +
    startPositionMs - The position in milliseconds to start playback from. If C.TIME_UNSET is passed, the default position of the given MediaItem is used. In + any case, if startIndex is set to C.INDEX_UNSET, this parameter is ignored + and the position is not reset at all.
  • @@ -2746,6 +2798,7 @@ public void prepare​(

    setMediaSources

    public void setMediaSources​(List<MediaSource> mediaSources)
    +
    Deprecated.
    Description copied from interface: ExoPlayer
    Clears the playlist, adds the specified MediaSources and resets the position to the default position.
    @@ -2765,6 +2818,7 @@ public void prepare​(public void setMediaSources​(List<MediaSource> mediaSources, boolean resetPosition) +
    Deprecated.
    Description copied from interface: ExoPlayer
    Clears the playlist and adds the specified MediaSources.
    @@ -2774,7 +2828,7 @@ public void prepare​(MediaSources.
    resetPosition - Whether the playback position should be reset to the default position in the first Timeline.Window. If false, playback will start from the position defined - by Player.getCurrentWindowIndex() and Player.getCurrentPosition().
    + by Player.getCurrentMediaItemIndex() and Player.getCurrentPosition().
    @@ -2785,8 +2839,9 @@ public void prepare​(

    setMediaSources

    public void setMediaSources​(List<MediaSource> mediaSources,
    -                            int startWindowIndex,
    +                            int startMediaItemIndex,
                                 long startPositionMs)
    +
    Deprecated.
    Description copied from interface: ExoPlayer
    Clears the playlist and adds the specified MediaSources.
    @@ -2794,11 +2849,10 @@ public void prepare​(setMediaSources in interface ExoPlayer
    Parameters:
    mediaSources - The new MediaSources.
    -
    startWindowIndex - The window index to start playback from. If C.INDEX_UNSET is - passed, the current position is not reset.
    -
    startPositionMs - The position in milliseconds to start playback from. If C.TIME_UNSET is passed, the default position of the given window is used. In any case, if - startWindowIndex is set to C.INDEX_UNSET, this parameter is ignored and the - position is not reset at all.
    +
    startMediaItemIndex - The media item index to start playback from. If C.INDEX_UNSET is passed, the current position is not reset.
    +
    startPositionMs - The position in milliseconds to start playback from. If C.TIME_UNSET is passed, the default position of the given media item is used. In any case, + if startMediaItemIndex is set to C.INDEX_UNSET, this parameter is ignored + and the position is not reset at all.
    @@ -2809,6 +2863,7 @@ public void prepare​(

    setMediaSource

    public void setMediaSource​(MediaSource mediaSource)
    +
    Deprecated.
    Description copied from interface: ExoPlayer
    Clears the playlist, adds the specified MediaSource and resets the position to the default position.
    @@ -2828,6 +2883,7 @@ public void prepare​(public void setMediaSource​(MediaSource mediaSource, boolean resetPosition) +
    Deprecated.
    Description copied from interface: ExoPlayer
    Clears the playlist and adds the specified MediaSource.
    @@ -2836,7 +2892,7 @@ public void prepare​(Parameters:
    mediaSource - The new MediaSource.
    resetPosition - Whether the playback position should be reset to the default position. If - false, playback will start from the position defined by Player.getCurrentWindowIndex() + false, playback will start from the position defined by Player.getCurrentMediaItemIndex() and Player.getCurrentPosition().
    @@ -2849,6 +2905,7 @@ public void prepare​(public void setMediaSource​(MediaSource mediaSource, long startPositionMs) +
    Deprecated.
    Description copied from interface: ExoPlayer
    Clears the playlist and adds the specified MediaSource.
    @@ -2868,6 +2925,7 @@ public void prepare​(public void addMediaItems​(int index, List<MediaItem> mediaItems) +
    Deprecated.
    Description copied from interface: Player
    Adds a list of media items at the given index of the playlist.
    @@ -2887,6 +2945,7 @@ public void prepare​(

    addMediaSource

    public void addMediaSource​(MediaSource mediaSource)
    +
    Deprecated.
    Description copied from interface: ExoPlayer
    Adds a media source to the end of the playlist.
    @@ -2905,6 +2964,7 @@ public void prepare​(public void addMediaSource​(int index, MediaSource mediaSource) +
    Deprecated.
    Description copied from interface: ExoPlayer
    Adds a media source at the given index of the playlist.
    @@ -2923,6 +2983,7 @@ public void prepare​(

    addMediaSources

    public void addMediaSources​(List<MediaSource> mediaSources)
    +
    Deprecated.
    Description copied from interface: ExoPlayer
    Adds a list of media sources to the end of the playlist.
    @@ -2941,6 +3002,7 @@ public void prepare​(public void addMediaSources​(int index, List<MediaSource> mediaSources) +
    Deprecated.
    Description copied from interface: ExoPlayer
    Adds a list of media sources at the given index of the playlist.
    @@ -2961,6 +3023,7 @@ public void prepare​(public void moveMediaItems​(int fromIndex, int toIndex, int newIndex) +
    Deprecated.
    Moves the media item range to the new index.
    @@ -2983,6 +3046,7 @@ public void prepare​(public void removeMediaItems​(int fromIndex, int toIndex) +
    Deprecated.
    Removes a range of media items from the playlist.
    @@ -3002,6 +3066,7 @@ public void prepare​(

    setShuffleOrder

    public void setShuffleOrder​(ShuffleOrder shuffleOrder)
    +
    Deprecated.
    Description copied from interface: ExoPlayer
    Sets the shuffle order.
    @@ -3019,6 +3084,7 @@ public void prepare​(

    setPlayWhenReady

    public void setPlayWhenReady​(boolean playWhenReady)
    +
    Deprecated.
    Sets whether playback should proceed when Player.getPlaybackState() == Player.STATE_READY. @@ -3038,6 +3104,7 @@ public void prepare​(

    getPlayWhenReady

    public boolean getPlayWhenReady()
    +
    Deprecated.
    Whether playback will proceed when Player.getPlaybackState() == Player.STATE_READY.
    @@ -3046,7 +3113,7 @@ public void prepare​(Returns:
    Whether playback will proceed when ready.
    See Also:
    -
    Player.Listener.onPlayWhenReadyChanged(boolean, int)
    +
    Player.Listener.onPlayWhenReadyChanged(boolean, int)
    @@ -3057,10 +3124,11 @@ public void prepare​(

    setPauseAtEndOfMediaItems

    public void setPauseAtEndOfMediaItems​(boolean pauseAtEndOfMediaItems)
    +
    Deprecated.
    Sets whether to pause playback at the end of each media item. -

    This means the player will pause at the end of each window in the current timeline. Listeners will be informed by a call to Player.Listener.onPlayWhenReadyChanged(boolean, int) with the reason Player.PLAY_WHEN_READY_CHANGE_REASON_END_OF_MEDIA_ITEM when this happens.

    +

    This means the player will pause at the end of each window in the current timeline. Listeners will be informed by a call to Player.Listener.onPlayWhenReadyChanged(boolean, int) with the reason Player.PLAY_WHEN_READY_CHANGE_REASON_END_OF_MEDIA_ITEM when this happens.

    Specified by:
    setPauseAtEndOfMediaItems in interface ExoPlayer
    @@ -3076,6 +3144,7 @@ public void prepare​(

    getPauseAtEndOfMediaItems

    public boolean getPauseAtEndOfMediaItems()
    +
    Deprecated.
    Returns whether the player pauses playback at the end of each media item.
    @@ -3093,7 +3162,8 @@ public void prepare​(

    getRepeatMode

    @RepeatMode
    -public int getRepeatMode()
    +public @com.google.android.exoplayer2.Player.RepeatMode int getRepeatMode() +
    Deprecated.
    Description copied from interface: Player
    Returns the current Player.RepeatMode used for playback.
    @@ -3102,23 +3172,24 @@ public int getRepeatMode()
    Returns:
    The current repeat mode.
    See Also:
    -
    Player.Listener.onRepeatModeChanged(int)
    +
    Player.Listener.onRepeatModeChanged(int)
    - +
    • setRepeatMode

      public void setRepeatMode​(@RepeatMode
      -                          int repeatMode)
      -
      Description copied from interface: Player
      + @com.google.android.exoplayer2.Player.RepeatMode int repeatMode) +
      Deprecated.
      +
      Description copied from interface: Player
      Sets the Player.RepeatMode to be used for playback.
      Specified by:
      -
      setRepeatMode in interface Player
      +
      setRepeatMode in interface Player
      Parameters:
      repeatMode - The repeat mode.
      @@ -3131,8 +3202,9 @@ public int getRepeatMode()
    • setShuffleModeEnabled

      public void setShuffleModeEnabled​(boolean shuffleModeEnabled)
      +
      Deprecated.
      Description copied from interface: Player
      -
      Sets whether shuffling of windows is enabled.
      +
      Sets whether shuffling of media items is enabled.
      Specified by:
      setShuffleModeEnabled in interface Player
      @@ -3148,8 +3220,9 @@ public int getRepeatMode()
    • getShuffleModeEnabled

      public boolean getShuffleModeEnabled()
      +
      Deprecated.
      Description copied from interface: Player
      -
      Returns whether shuffling of windows is enabled.
      +
      Returns whether shuffling of media items is enabled.
      Specified by:
      getShuffleModeEnabled in interface Player
      @@ -3165,6 +3238,7 @@ public int getRepeatMode()
    • isLoading

      public boolean isLoading()
      +
      Deprecated.
      Description copied from interface: Player
      Whether the player is currently loading the source.
      @@ -3183,17 +3257,18 @@ public int getRepeatMode()
      • seekTo

        -
        public void seekTo​(int windowIndex,
        +
        public void seekTo​(int mediaItemIndex,
                            long positionMs)
        +
        Deprecated.
        Description copied from interface: Player
        -
        Seeks to a position specified in milliseconds in the specified window.
        +
        Seeks to a position specified in milliseconds in the specified MediaItem.
        Specified by:
        seekTo in interface Player
        Parameters:
        -
        windowIndex - The index of the window.
        -
        positionMs - The seek position in the specified window, or C.TIME_UNSET to seek to - the window's default position.
        +
        mediaItemIndex - The index of the MediaItem.
        +
        positionMs - The seek position in the specified MediaItem, or C.TIME_UNSET + to seek to the media item's default position.
      @@ -3204,6 +3279,7 @@ public int getRepeatMode()
    • getSeekBackIncrement

      public long getSeekBackIncrement()
      +
      Deprecated.
      Description copied from interface: Player
      Returns the Player.seekBack() increment.
      @@ -3223,6 +3299,7 @@ public int getRepeatMode()
    • getSeekForwardIncrement

      public long getSeekForwardIncrement()
      +
      Deprecated.
      Description copied from interface: Player
      Returns the Player.seekForward() increment.
      @@ -3241,17 +3318,17 @@ public int getRepeatMode() @@ -3262,6 +3339,7 @@ public int getRepeatMode()
    • setPlaybackParameters

      public void setPlaybackParameters​(PlaybackParameters playbackParameters)
      +
      Deprecated.
      Description copied from interface: Player
      Attempts to set the playback parameters. Passing PlaybackParameters.DEFAULT resets the player to the default, which means there is no speed or pitch adjustment. @@ -3283,6 +3361,7 @@ public int getRepeatMode()
    • getPlaybackParameters

      public PlaybackParameters getPlaybackParameters()
      +
      Deprecated.
      Description copied from interface: Player
      Returns the currently active playback parameters.
      @@ -3301,6 +3380,7 @@ public int getRepeatMode()

      setSeekParameters

      public void setSeekParameters​(@Nullable
                                     SeekParameters seekParameters)
      +
      Deprecated.
      Description copied from interface: ExoPlayer
      Sets the parameters that control how seek operations are performed.
      @@ -3318,6 +3398,7 @@ public int getRepeatMode()
    • getSeekParameters

      public SeekParameters getSeekParameters()
      +
      Deprecated.
      Description copied from interface: ExoPlayer
      Returns the currently active SeekParameters of the player.
      @@ -3333,6 +3414,7 @@ public int getRepeatMode()
    • setForegroundMode

      public void setForegroundMode​(boolean foregroundMode)
      +
      Deprecated.
      Description copied from interface: ExoPlayer
      Sets whether the player is allowed to keep holding limited resources such as video decoders, even when in the idle state. By doing so, the player may be able to reduce latency when @@ -3366,6 +3448,30 @@ public int getRepeatMode()
    + + + +
      +
    • +

      stop

      +
      public void stop()
      +
      Deprecated.
      +
      Description copied from interface: Player
      +
      Stops playback without resetting the player. Use Player.pause() rather than this method if + the intention is to pause playback. + +

      Calling this method will cause the playback state to transition to Player.STATE_IDLE. The + player instance can still be used, and Player.release() must still be called on the player if + it's no longer required. + +

      Calling this method does not clear the playlist, reset the playback position or the playback + error.

      +
      +
      Specified by:
      +
      stop in interface Player
      +
      +
    • +
    @@ -3388,6 +3494,7 @@ public void stop​(boolean reset)
  • release

    public void release()
    +
    Deprecated.
    Description copied from interface: Player
    Releases the player. This method must be called when the player is no longer required. The player must not be used after calling this method.
    @@ -3404,12 +3511,13 @@ public void stop​(boolean reset)
  • createMessage

    public PlayerMessage createMessage​(PlayerMessage.Target target)
    +
    Deprecated.
    Description copied from interface: ExoPlayer
    Creates a message that can be sent to a PlayerMessage.Target. By default, the message will be delivered immediately without blocking on the playback thread. The default PlayerMessage.getType() is 0 and the default PlayerMessage.getPayload() is null. If a position is specified with PlayerMessage.setPosition(long), the message will be - delivered at this position in the current window defined by Player.getCurrentWindowIndex(). - Alternatively, the message can be sent at a specific window using PlayerMessage.setPosition(int, long).
    + delivered at this position in the current media item defined by Player.getCurrentMediaItemIndex(). Alternatively, the message can be sent at a specific mediaItem + using PlayerMessage.setPosition(int, long).
    Specified by:
    createMessage in interface ExoPlayer
    @@ -3423,6 +3531,7 @@ public void stop​(boolean reset)
  • getRendererCount

    public int getRendererCount()
    +
    Deprecated.
    Description copied from interface: ExoPlayer
    Returns the number of renderers.
    @@ -3437,7 +3546,8 @@ public void stop​(boolean reset)
    • getRendererType

      -
      public int getRendererType​(int index)
      +
      public @com.google.android.exoplayer2.C.TrackType int getRendererType​(int index)
      +
      Deprecated.
      Description copied from interface: ExoPlayer
      Returns the track type that the renderer at a given index handles. @@ -3449,7 +3559,7 @@ public void stop​(boolean reset)
      Parameters:
      index - The index of the renderer.
      Returns:
      -
      One of the TRACK_TYPE_* constants defined in C.
      +
      The track type that the renderer handles.
  • @@ -3461,6 +3571,7 @@ public void stop​(boolean reset)

    getTrackSelector

    @Nullable
     public TrackSelector getTrackSelector()
    +
    Deprecated.
    Description copied from interface: ExoPlayer
    Returns the track selector that this player uses, or null if track selection is not supported.
    @@ -3476,13 +3587,14 @@ public 

    getCurrentTrackGroups

    public TrackGroupArray getCurrentTrackGroups()
    +
    Deprecated.
    Description copied from interface: Player
    Returns the available track groups.
    Specified by:
    getCurrentTrackGroups in interface Player
    See Also:
    -
    Player.Listener.onTracksChanged(TrackGroupArray, TrackSelectionArray)
    +
    Player.EventListener.onTracksChanged(TrackGroupArray, TrackSelectionArray)
  • @@ -3493,6 +3605,7 @@ public 

    getCurrentTrackSelections

    public TrackSelectionArray getCurrentTrackSelections()
    +
    Deprecated.
    Description copied from interface: Player
    - + + + + + + + + +
      +
    • +

      setTrackSelectionParameters

      +
      public void setTrackSelectionParameters​(TrackSelectionParameters parameters)
      +
      Deprecated.
      +
      Description copied from interface: Player
      +
      Sets the parameters constraining the track selection. + +

      Unsupported parameters will be silently ignored. + +

      Use Player.getTrackSelectionParameters() to retrieve the current parameters. For example, + the following snippet restricts video to SD whilst keep other track selection parameters + unchanged: + +

      
      + player.setTrackSelectionParameters(
      +   player.getTrackSelectionParameters()
      +         .buildUpon()
      +         .setMaxVideoSizeSd()
      +         .build())
      + 
      +
      +
      Specified by:
      +
      setTrackSelectionParameters in interface Player
    @@ -3529,13 +3693,15 @@ public 

    getMediaMetadata

    public MediaMetadata getMediaMetadata()
    +
    Deprecated.
    Description copied from interface: Player
    Returns the current combined MediaMetadata, or MediaMetadata.EMPTY if not supported.

    This MediaMetadata is a combination of the MediaItem.mediaMetadata and the static and dynamic metadata from the track selections' - formats and MetadataOutput.onMetadata(Metadata).

    + formats and Player.Listener.onMetadata(Metadata). If a field is populated in the MediaItem.mediaMetadata, it will be prioritised above the same field coming from static or + dynamic metadata.
    Specified by:
    getMediaMetadata in interface Player
    @@ -3549,6 +3715,7 @@ public 

    getPlaylistMetadata

    public MediaMetadata getPlaylistMetadata()
    +
    Deprecated.
    Description copied from interface: Player
    Returns the playlist MediaMetadata, as set by Player.setPlaylistMetadata(MediaMetadata), or MediaMetadata.EMPTY if not supported.
    @@ -3564,6 +3731,7 @@ public 

    setPlaylistMetadata

    public void setPlaylistMetadata​(MediaMetadata mediaMetadata)
    +
    Deprecated.
    Description copied from interface: Player
    Sets the playlist MediaMetadata.
    @@ -3579,13 +3747,14 @@ public 

    getCurrentTimeline

    public Timeline getCurrentTimeline()
    +
    Deprecated.
    Description copied from interface: Player
    Returns the current Timeline. Never null, but may be empty.
    Specified by:
    getCurrentTimeline in interface Player
    See Also:
    -
    Player.Listener.onTimelineChanged(Timeline, int)
    +
    Player.Listener.onTimelineChanged(Timeline, int)
    @@ -3596,6 +3765,7 @@ public 

    getCurrentPeriodIndex

    public int getCurrentPeriodIndex()
    +
    Deprecated.
    Returns the index of the period currently being played.
    @@ -3604,18 +3774,20 @@ public  + @@ -3626,8 +3798,10 @@ public 

    getDuration

    public long getDuration()
    +
    Deprecated.
    -
    Returns the duration of the current content window or ad in milliseconds, or C.TIME_UNSET if the duration is not known.
    +
    Returns the duration of the current content or ad in milliseconds, or C.TIME_UNSET if + the duration is not known.
    Specified by:
    getDuration in interface Player
    @@ -3641,10 +3815,10 @@ public 

    getCurrentPosition

    public long getCurrentPosition()
    +
    Deprecated.
    -
    Returns the playback position in the current content window or ad, in milliseconds, or the - prospective position in milliseconds if the current timeline is - empty.
    +
    Returns the playback position in the current content or ad, in milliseconds, or the prospective + position in milliseconds if the current timeline is empty.
    Specified by:
    getCurrentPosition in interface Player
    @@ -3658,9 +3832,10 @@ public 

    getBufferedPosition

    public long getBufferedPosition()
    +
    Deprecated.
    -
    Returns an estimate of the position in the current content window or ad up to which data is - buffered, in milliseconds.
    +
    Returns an estimate of the position in the current content or ad up to which data is buffered, + in milliseconds.
    Specified by:
    getBufferedPosition in interface Player
    @@ -3674,9 +3849,10 @@ public 

    getTotalBufferedDuration

    public long getTotalBufferedDuration()
    +
    Deprecated.
    Returns an estimate of the total buffered duration from the current position, in milliseconds. - This includes pre-buffered data for subsequent ads and windows.
    + This includes pre-buffered data for subsequent ads and media items.
    Specified by:
    getTotalBufferedDuration in interface Player
    @@ -3690,6 +3866,7 @@ public 

    isPlayingAd

    public boolean isPlayingAd()
    +
    Deprecated.
    Returns whether the player is currently playing an ad.
    @@ -3705,6 +3882,7 @@ public 

    getCurrentAdGroupIndex

    public int getCurrentAdGroupIndex()
    +
    Deprecated.
    If Player.isPlayingAd() returns true, returns the index of the ad group in the period currently being played. Returns C.INDEX_UNSET otherwise.
    @@ -3721,6 +3899,7 @@ public 

    getCurrentAdIndexInAdGroup

    public int getCurrentAdIndexInAdGroup()
    +
    Deprecated.
    If Player.isPlayingAd() returns true, returns the index of the ad in its ad group. Returns C.INDEX_UNSET otherwise.
    @@ -3737,6 +3916,7 @@ public 

    getContentPosition

    public long getContentPosition()
    +
    Deprecated.
    If Player.isPlayingAd() returns true, returns the content position that will be played once all ads in the ad group have finished playing, in milliseconds. If there is no ad @@ -3754,10 +3934,11 @@ public 

    getContentBufferedPosition

    public long getContentBufferedPosition()
    +
    Deprecated.
    If Player.isPlayingAd() returns true, returns an estimate of the content position in - the current content window up to which data is buffered, in milliseconds. If there is no ad - playing, the returned position is the same as that returned by Player.getBufferedPosition().
    + the current content up to which data is buffered, in milliseconds. If there is no ad playing, + the returned position is the same as that returned by Player.getBufferedPosition().
    Specified by:
    getContentBufferedPosition in interface Player
    @@ -3772,31 +3953,23 @@ public @Deprecated public void setHandleWakeLock​(boolean handleWakeLock) -
    Deprecated. -
    Use setWakeMode(int) instead.
    -
    -
    Sets whether the player should use a PowerManager.WakeLock to ensure the - device stays awake for playback, even when the screen is off. - -

    Enabling this feature requires the Manifest.permission.WAKE_LOCK permission. - It should be used together with a foreground Service for use cases where - playback can occur when the screen is off (e.g. background audio playback). It is not useful if - the screen will always be on during playback (e.g. foreground video playback).

    +
    Deprecated.
    -
    Parameters:
    -
    handleWakeLock - Whether the player should use a PowerManager.WakeLock - to ensure the device stays awake for playback, even when the screen is off.
    +
    Specified by:
    +
    setHandleWakeLock in interface ExoPlayer
    - + - - - - - - - -
    - + - + @@ -627,7 +654,7 @@ implements Returns the number of windows in the timeline. - +
    @@ -1939,7 +1927,7 @@ public final void onStaticMetadataChanged​( + - - - - @@ -1495,7 +1467,7 @@ static final int EVENT_STATIC_METADATA_CHANGED
  • EVENT_POSITION_DISCONTINUITY

    static final int EVENT_POSITION_DISCONTINUITY
    - +
    See Also:
    Constant Field Values
    @@ -2157,7 +2129,7 @@ static final int EVENT_STATIC_METADATA_CHANGED

    Method Detail

    - + - + @@ -340,7 +340,7 @@ public final int usage
  • allowedCapturePolicy

    @AudioAllowedCapturePolicy
    -public final int allowedCapturePolicy
    +public final @com.google.android.exoplayer2.C.AudioAllowedCapturePolicy int allowedCapturePolicy
  • diff --git a/docs/doc/reference/com/google/android/exoplayer2/audio/AudioListener.html b/docs/doc/reference/com/google/android/exoplayer2/audio/AudioListener.html deleted file mode 100644 index 718a4fc3d8..0000000000 --- a/docs/doc/reference/com/google/android/exoplayer2/audio/AudioListener.html +++ /dev/null @@ -1,337 +0,0 @@ - - - - -AudioListener (ExoPlayer library) - - - - - - - - - - - - - -
    - -
    - -
    -
    - -

    Interface AudioListener

    -
    -
    -
    - -
    -
    - -
    -
    -
      -
    • - -
      -
        -
      • - - -

        Method Detail

        - - - -
          -
        • -

          onAudioSessionIdChanged

          -
          default void onAudioSessionIdChanged​(int audioSessionId)
          -
          Deprecated.
          -
          Called when the audio session ID changes.
          -
          -
          Parameters:
          -
          audioSessionId - The audio session ID.
          -
          -
        • -
        - - - -
          -
        • -

          onAudioAttributesChanged

          -
          default void onAudioAttributesChanged​(AudioAttributes audioAttributes)
          -
          Deprecated.
          -
          Called when the audio attributes change.
          -
          -
          Parameters:
          -
          audioAttributes - The audio attributes.
          -
          -
        • -
        - - - -
          -
        • -

          onVolumeChanged

          -
          default void onVolumeChanged​(float volume)
          -
          Deprecated.
          -
          Called when the volume changes.
          -
          -
          Parameters:
          -
          volume - The new volume, with 0 being silence and 1 being unity gain.
          -
          -
        • -
        - - - -
          -
        • -

          onSkipSilenceEnabledChanged

          -
          default void onSkipSilenceEnabledChanged​(boolean skipSilenceEnabled)
          -
          Deprecated.
          -
          Called when skipping silences is enabled or disabled in the audio stream.
          -
          -
          Parameters:
          -
          skipSilenceEnabled - Whether skipping silences in the audio stream is enabled.
          -
          -
        • -
        -
      • -
      -
      -
    • -
    -
    -
    -
    - -
    - -
    - - diff --git a/docs/doc/reference/com/google/android/exoplayer2/audio/AudioProcessor.html b/docs/doc/reference/com/google/android/exoplayer2/audio/AudioProcessor.html index eecefafcb3..2297eca1dd 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/audio/AudioProcessor.html +++ b/docs/doc/reference/com/google/android/exoplayer2/audio/AudioProcessor.html @@ -122,7 +122,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  • All Known Implementing Classes:
    -
    BaseAudioProcessor, GvrAudioProcessor, SilenceSkippingAudioProcessor, SonicAudioProcessor, TeeAudioProcessor
    +
    BaseAudioProcessor, SilenceSkippingAudioProcessor, SonicAudioProcessor, TeeAudioProcessor

    public interface AudioProcessor
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/audio/DecoderAudioRenderer.html b/docs/doc/reference/com/google/android/exoplayer2/audio/DecoderAudioRenderer.html index 88fb36940c..1ada9e6afa 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/audio/DecoderAudioRenderer.html +++ b/docs/doc/reference/com/google/android/exoplayer2/audio/DecoderAudioRenderer.html @@ -114,7 +114,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    -

    Class DecoderAudioRenderer<T extends Decoder<DecoderInputBuffer,​? extends SimpleOutputBuffer,​? extends DecoderException>>

    +

    Class DecoderAudioRenderer<T extends Decoder<DecoderInputBuffer,​? extends SimpleDecoderOutputBuffer,​? extends DecoderException>>


  • -
    public abstract class DecoderAudioRenderer<T extends Decoder<DecoderInputBuffer,​? extends SimpleOutputBuffer,​? extends DecoderException>>
    +
    public abstract class DecoderAudioRenderer<T extends Decoder<DecoderInputBuffer,​? extends SimpleDecoderOutputBuffer,​? extends DecoderException>>
     extends BaseRenderer
     implements MediaClock
    Decodes and renders audio using a Decoder. @@ -154,8 +154,8 @@ implements Renderer.MSG_SET_VOLUME to set the volume. The message payload should be a Float with 0 being silence and 1 being unity gain.
  • Message with type Renderer.MSG_SET_AUDIO_ATTRIBUTES to set the audio attributes. The - message payload should be an AudioAttributes - instance that will configure the underlying audio track. + message payload should be an AudioAttributes instance that will configure the + underlying audio track.
  • Message with type Renderer.MSG_SET_AUX_EFFECT_INFO to set the auxiliary effect. The message payload should be an AuxEffectInfo instance that will configure the underlying audio track. @@ -183,7 +183,7 @@ implements Renderer -Renderer.State, Renderer.VideoScalingMode, Renderer.WakeupListener
  • +Renderer.MessageType, Renderer.State, Renderer.WakeupListener
  • - +

    -
    public final class ExoDatabaseProvider
    -extends SQLiteOpenHelper
    -implements DatabaseProvider
    -
    An SQLiteOpenHelper that provides instances of a standalone ExoPlayer database. - -

    Suitable for use by applications that do not already have their own database, or that would - prefer to keep ExoPlayer tables isolated in their own database. Other applications should prefer - to use DefaultDatabaseProvider with their own SQLiteOpenHelper.

    +
    @Deprecated
    +public final class ExoDatabaseProvider
    +extends StandaloneDatabaseProvider
    +
    Deprecated. + +
    @@ -159,21 +156,13 @@ implements -Fields  - -Modifier and Type -Field -Description - - -static String -DATABASE_NAME - -
    The file name used for the standalone ExoPlayer database.
    - - - +
    • @@ -200,8 +189,8 @@ implements ExoDatabaseProvider​(Context context) -
      Provides instances of the database located by passing DATABASE_NAME to Context.getDatabasePath(String).
      - +
      Deprecated.
    • @@ -214,33 +203,13 @@ implements -All Methods Instance Methods Concrete Methods  - -Modifier and Type -Method -Description - - -void -onCreate​(SQLiteDatabase db) -  - - -void -onDowngrade​(SQLiteDatabase db, - int oldVersion, - int newVersion) -  - - -void -onUpgrade​(SQLiteDatabase db, - int oldVersion, - int newVersion) -  - - + diff --git a/docs/doc/reference/com/google/android/exoplayer2/database/package-summary.html b/docs/doc/reference/com/google/android/exoplayer2/database/package-summary.html index b97fa9d159..a21d902eeb 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/database/package-summary.html +++ b/docs/doc/reference/com/google/android/exoplayer2/database/package-summary.html @@ -106,7 +106,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); DatabaseProvider -
      Provides SQLiteDatabase instances to ExoPlayer components, which may read and write +
      Provides SQLiteDatabase instances to media library components, which may read and write tables prefixed with DatabaseProvider.TABLE_PREFIX.
      @@ -129,14 +129,20 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); ExoDatabaseProvider - -
      An SQLiteOpenHelper that provides instances of a standalone ExoPlayer database.
      +Deprecated. + +StandaloneDatabaseProvider + +
      An SQLiteOpenHelper that provides instances of a standalone database.
      + + + VersionTable -
      Utility methods for accessing versions of ExoPlayer database components.
      +
      Utility methods for accessing versions of media library database components.
      diff --git a/docs/doc/reference/com/google/android/exoplayer2/database/package-tree.html b/docs/doc/reference/com/google/android/exoplayer2/database/package-tree.html index f1e892e04c..4e0149de18 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/database/package-tree.html +++ b/docs/doc/reference/com/google/android/exoplayer2/database/package-tree.html @@ -106,7 +106,11 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    • com.google.android.exoplayer2.database.DefaultDatabaseProvider (implements com.google.android.exoplayer2.database.DatabaseProvider)
    • android.database.sqlite.SQLiteOpenHelper (implements java.lang.AutoCloseable)
    • java.lang.Throwable (implements java.io.Serializable) diff --git a/docs/doc/reference/com/google/android/exoplayer2/decoder/Buffer.html b/docs/doc/reference/com/google/android/exoplayer2/decoder/Buffer.html index 0c467e7bf2..9c9d6fa5c1 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/decoder/Buffer.html +++ b/docs/doc/reference/com/google/android/exoplayer2/decoder/Buffer.html @@ -130,7 +130,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    • Direct Known Subclasses:
      -
      DecoderInputBuffer, OutputBuffer
      +
      DecoderInputBuffer, DecoderOutputBuffer

      public abstract class Buffer
      diff --git a/docs/doc/reference/com/google/android/exoplayer2/drm/ExoMediaCrypto.html b/docs/doc/reference/com/google/android/exoplayer2/decoder/CryptoConfig.html
      similarity index 88%
      rename from docs/doc/reference/com/google/android/exoplayer2/drm/ExoMediaCrypto.html
      rename to docs/doc/reference/com/google/android/exoplayer2/decoder/CryptoConfig.html
      index 9e822c4669..618770cff3 100644
      --- a/docs/doc/reference/com/google/android/exoplayer2/drm/ExoMediaCrypto.html
      +++ b/docs/doc/reference/com/google/android/exoplayer2/decoder/CryptoConfig.html
      @@ -2,7 +2,7 @@
       
       
       
      -ExoMediaCrypto (ExoPlayer library)
      +CryptoConfig (ExoPlayer library)
       
       
       
      @@ -19,7 +19,7 @@
       
      -
      -
      -
      -
      -
      -
      -
      -
      -
      -
      - -
      - -
      -
      - -

      Class GvrAudioProcessor

      -
      -
      -
        -
      • java.lang.Object
      • -
      • -
          -
        • com.google.android.exoplayer2.ext.gvr.GvrAudioProcessor
        • -
        -
      • -
      -
      -
        -
      • -
        -
        All Implemented Interfaces:
        -
        AudioProcessor
        -
        -
        -
        @Deprecated
        -public class GvrAudioProcessor
        -extends Object
        -implements AudioProcessor
        -
        Deprecated. -
        If you still need this component, please contact us by filing an issue on our issue tracker.
        -
        -
        An AudioProcessor that uses GvrAudioSurround to provide binaural rendering of - surround sound and ambisonic soundfields.
        -
      • -
      -
      -
      - -
      -
      -
        -
      • - -
        -
          -
        • - - -

          Constructor Detail

          - - - -
            -
          • -

            GvrAudioProcessor

            -
            public GvrAudioProcessor()
            -
            Deprecated.
            -
            Creates a new GVR audio processor.
            -
          • -
          -
        • -
        -
        - -
        -
          -
        • - - -

          Method Detail

          - - - -
            -
          • -

            updateOrientation

            -
            public void updateOrientation​(float w,
            -                              float x,
            -                              float y,
            -                              float z)
            -
            Deprecated.
            -
            Updates the listener head orientation. May be called on any thread. See - GvrAudioSurround.updateNativeOrientation.
            -
            -
            Parameters:
            -
            w - The w component of the quaternion.
            -
            x - The x component of the quaternion.
            -
            y - The y component of the quaternion.
            -
            z - The z component of the quaternion.
            -
            -
          • -
          - - - - - - - -
            -
          • -

            isActive

            -
            public boolean isActive()
            -
            Deprecated.
            -
            Description copied from interface: AudioProcessor
            -
            Returns whether the processor is configured and will process input buffers.
            -
            -
            Specified by:
            -
            isActive in interface AudioProcessor
            -
            -
          • -
          - - - -
            -
          • -

            queueInput

            -
            public void queueInput​(ByteBuffer inputBuffer)
            -
            Deprecated.
            -
            Description copied from interface: AudioProcessor
            -
            Queues audio data between the position and limit of the input buffer for processing. - buffer must be a direct byte buffer with native byte order. Its contents are treated as - read-only. Its position will be advanced by the number of bytes consumed (which may be zero). - The caller retains ownership of the provided buffer. Calling this method invalidates any - previous buffer returned by AudioProcessor.getOutput().
            -
            -
            Specified by:
            -
            queueInput in interface AudioProcessor
            -
            Parameters:
            -
            inputBuffer - The input buffer to process.
            -
            -
          • -
          - - - - - - - -
            -
          • -

            getOutput

            -
            public ByteBuffer getOutput()
            -
            Deprecated.
            -
            Description copied from interface: AudioProcessor
            -
            Returns a buffer containing processed output data between its position and limit. The buffer - will always be a direct byte buffer with native byte order. Calling this method invalidates any - previously returned buffer. The buffer will be empty if no output is available.
            -
            -
            Specified by:
            -
            getOutput in interface AudioProcessor
            -
            Returns:
            -
            A buffer containing processed output data between its position and limit.
            -
            -
          • -
          - - - - - - - -
            -
          • -

            flush

            -
            public void flush()
            -
            Deprecated.
            -
            Description copied from interface: AudioProcessor
            -
            Clears any buffered data and pending output. If the audio processor is active, also prepares - the audio processor to receive a new stream of input in the last configured (pending) format.
            -
            -
            Specified by:
            -
            flush in interface AudioProcessor
            -
            -
          • -
          - - - -
            -
          • -

            reset

            -
            public void reset()
            -
            Deprecated.
            -
            Description copied from interface: AudioProcessor
            -
            Resets the processor to its unconfigured state, releasing any resources.
            -
            -
            Specified by:
            -
            reset in interface AudioProcessor
            -
            -
          • -
          -
        • -
        -
        -
      • -
      -
      -
      -
      - - - - diff --git a/docs/doc/reference/com/google/android/exoplayer2/ext/gvr/package-tree.html b/docs/doc/reference/com/google/android/exoplayer2/ext/gvr/package-tree.html deleted file mode 100644 index 3f23cccf8c..0000000000 --- a/docs/doc/reference/com/google/android/exoplayer2/ext/gvr/package-tree.html +++ /dev/null @@ -1,159 +0,0 @@ - - - - -com.google.android.exoplayer2.ext.gvr Class Hierarchy (ExoPlayer library) - - - - - - - - - - - - - -
      - -
      -
      -
      -

      Hierarchy For Package com.google.android.exoplayer2.ext.gvr

      -Package Hierarchies: - -
      -
      -
      -

      Class Hierarchy

      - -
      -
      -
      - - - diff --git a/docs/doc/reference/com/google/android/exoplayer2/ext/ima/ImaAdsLoader.Builder.html b/docs/doc/reference/com/google/android/exoplayer2/ext/ima/ImaAdsLoader.Builder.html index 4991086e65..6350170170 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/ext/ima/ImaAdsLoader.Builder.html +++ b/docs/doc/reference/com/google/android/exoplayer2/ext/ima/ImaAdsLoader.Builder.html @@ -570,7 +570,8 @@ extends
    • setVastLoadTimeoutMs

      -
      public ImaAdsLoader.Builder setVastLoadTimeoutMs​(int vastLoadTimeoutMs)
      +
      public ImaAdsLoader.Builder setVastLoadTimeoutMs​(@IntRange(from=1L)
      +                                                 int vastLoadTimeoutMs)
      Sets the VAST load timeout, in milliseconds.
      Parameters:
      @@ -588,7 +589,8 @@ extends
    • setMediaLoadTimeoutMs

      -
      public ImaAdsLoader.Builder setMediaLoadTimeoutMs​(int mediaLoadTimeoutMs)
      +
      public ImaAdsLoader.Builder setMediaLoadTimeoutMs​(@IntRange(from=1L)
      +                                                  int mediaLoadTimeoutMs)
      Sets the ad media load timeout, in milliseconds.
      Parameters:
      @@ -606,7 +608,8 @@ extends
    • setMaxMediaBitrate

      -
      public ImaAdsLoader.Builder setMaxMediaBitrate​(int bitrate)
      +
      public ImaAdsLoader.Builder setMaxMediaBitrate​(@IntRange(from=1L)
      +                                               int bitrate)
      Sets the media maximum recommended bitrate for ads, in bps.
      Parameters:
      diff --git a/docs/doc/reference/com/google/android/exoplayer2/ext/ima/ImaAdsLoader.html b/docs/doc/reference/com/google/android/exoplayer2/ext/ima/ImaAdsLoader.html index 3e436a4b9e..96e20ce38e 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/ext/ima/ImaAdsLoader.html +++ b/docs/doc/reference/com/google/android/exoplayer2/ext/ima/ImaAdsLoader.html @@ -130,7 +130,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    • All Implemented Interfaces:
      -
      AudioListener, DeviceListener, MetadataOutput, Player.EventListener, Player.Listener, AdsLoader, TextOutput, VideoListener
      +
      Player.EventListener, Player.Listener, AdsLoader

      public final class ImaAdsLoader
      @@ -248,16 +248,16 @@ implements 
       void
      -onPositionDiscontinuity​(Player.PositionInfo oldPosition,
      +onPositionDiscontinuity​(Player.PositionInfo oldPosition,
                              Player.PositionInfo newPosition,
      -                       int reason)
      +                       @com.google.android.exoplayer2.Player.DiscontinuityReason int reason)
       
       
      Called when a position discontinuity occurs.
      void -onRepeatModeChanged​(int repeatMode) +onRepeatModeChanged​(@com.google.android.exoplayer2.Player.RepeatMode int repeatMode)
      Called when the value of Player.getRepeatMode() changes.
      @@ -271,8 +271,8 @@ implements void -onTimelineChanged​(Timeline timeline, - int reason) +onTimelineChanged​(Timeline timeline, + @com.google.android.exoplayer2.Player.TimelineChangeReason int reason)
      Called when the timeline has been refreshed.
      @@ -346,21 +346,14 @@ implements Player.EventListener -onLoadingChanged, onMaxSeekToPreviousPositionChanged, onPlayerStateChanged, onPositionDiscontinuity, onSeekProcessed, onStaticMetadataChanged
    • +onLoadingChanged, onMaxSeekToPreviousPositionChanged, onPlayerStateChanged, onPositionDiscontinuity, onSeekProcessed, onTracksChanged, onTrackSelectionParametersChanged
    - @@ -611,7 +604,7 @@ public com.google.ads.interactivemedia.v3.api.AdDisplayContainer getAd
    - + - + - +
    @@ -341,22 +332,6 @@ implements - - -
      -
    • -

      setControlDispatcher

      -
      @Deprecated
      -public void setControlDispatcher​(@Nullable
      -                                 ControlDispatcher controlDispatcher)
      -
      Deprecated. -
      Use a ForwardingPlayer and pass it to the constructor instead. You can also - customize some operations when configuring the player (for example by using - SimpleExoPlayer.Builder#setSeekBackIncrementMs(long)).
      -
      -
    • -
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/ext/media2/SessionPlayerConnector.html b/docs/doc/reference/com/google/android/exoplayer2/ext/media2/SessionPlayerConnector.html index fa266e8b50..a5cdbfe305 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/ext/media2/SessionPlayerConnector.html +++ b/docs/doc/reference/com/google/android/exoplayer2/ext/media2/SessionPlayerConnector.html @@ -25,8 +25,8 @@ catch(err) { } //--> -var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":42,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10}; -var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]}; +var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10}; +var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; var tableTab = "tableTab"; @@ -226,7 +226,7 @@ extends androidx.media2.common.SessionPlayer

    Method Summary

    - + @@ -359,54 +359,45 @@ extends androidx.media2.common.SessionPlayer - - - - - - + - + - + - + - + - + - + - + @@ -483,21 +474,6 @@ extends androidx.media2.common.SessionPlayer

    Method Detail

    - - - -
      -
    • -

      setControlDispatcher

      -
      @Deprecated
      -public void setControlDispatcher​(ControlDispatcher controlDispatcher)
      -
      Deprecated. -
      Use a ForwardingPlayer and pass it to the constructor instead. You can also - customize some operations when configuring the player (for example by using - SimpleExoPlayer.Builder#setSeekBackIncrementMs(long)).
      -
      -
    • -
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.CaptionCallback.html b/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.CaptionCallback.html index 0ff56a6951..51355279c2 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.CaptionCallback.html +++ b/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.CaptionCallback.html @@ -173,7 +173,7 @@ extends MediaSessionConnector.CommandReceiver -onCommand +onCommand diff --git a/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.CommandReceiver.html b/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.CommandReceiver.html index b23a996932..1a33f40bc2 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.CommandReceiver.html +++ b/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.CommandReceiver.html @@ -157,8 +157,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); - @@ -183,15 +182,13 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));

    Method Detail

    - +
    • onCommand

      boolean onCommand​(Player player,
      -                  @Deprecated
      -                  ControlDispatcher controlDispatcher,
                         String command,
                         @Nullable
                         Bundle extras,
      @@ -202,10 +199,6 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
       
      Parameters:
      player - The player connected to the media session.
      -
      controlDispatcher - This parameter is deprecated. Use player instead. Operations - can be customized by passing a ForwardingPlayer to MediaSessionConnector.setPlayer(Player), or - when configuring the player (for example by using - SimpleExoPlayer.Builder#setSeekBackIncrementMs(long)).
      command - The command name.
      extras - Optional parameters for the command, may be null.
      cb - A result receiver to which a result may be sent by the command, may be null.
      diff --git a/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.CustomActionProvider.html b/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.CustomActionProvider.html index 548598963a..73b017ab5f 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.CustomActionProvider.html +++ b/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.CustomActionProvider.html @@ -163,8 +163,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    - - + @@ -195,32 +195,29 @@ extends - - + + - + - + - - + @@ -291,7 +291,7 @@ extends - - - + - + - - + - - - - - - - + + + + + @@ -226,21 +225,22 @@ extends

    Method Detail

    - +
    • setLibraries

      -
      public static void setLibraries​(Class<? extends ExoMediaCrypto> exoMediaCryptoType,
      +
      public static void setLibraries​(@com.google.android.exoplayer2.C.CryptoType int cryptoType,
                                       String... libraries)
      Override the names of the Vpx native libraries. If an application wishes to call this method, it must do so before calling any other method defined by this class, and before instantiating a LibvpxVideoRenderer instance.
      Parameters:
      -
      exoMediaCryptoType - The ExoMediaCrypto type required for decoding protected - content.
      +
      cryptoType - The C.CryptoType for which the decoder library supports decrypting + protected content, or C.CRYPTO_TYPE_UNSUPPORTED if the library does not support + decryption.
      libraries - The names of the Vpx native libraries.
    • @@ -288,15 +288,14 @@ public static Returns true if the underlying libvpx library supports high bit depth.
    - +
    • -

      matchesExpectedExoMediaCryptoType

      -
      public static boolean matchesExpectedExoMediaCryptoType​(Class<? extends ExoMediaCrypto> exoMediaCryptoType)
      -
      Returns whether the given ExoMediaCrypto type matches the one required for decoding - protected content.
      +

      supportsCryptoType

      +
      public static boolean supportsCryptoType​(@com.google.android.exoplayer2.C.CryptoType int cryptoType)
      +
      Returns whether the library supports the given C.CryptoType.
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/ext/workmanager/WorkManagerScheduler.SchedulerWorker.html b/docs/doc/reference/com/google/android/exoplayer2/ext/workmanager/WorkManagerScheduler.SchedulerWorker.html index 19fe7b10c4..a8562a193b 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/ext/workmanager/WorkManagerScheduler.SchedulerWorker.html +++ b/docs/doc/reference/com/google/android/exoplayer2/ext/workmanager/WorkManagerScheduler.SchedulerWorker.html @@ -223,7 +223,7 @@ extends androidx.work.Worker

    Methods inherited from class androidx.work.ListenableWorker

    -getApplicationContext, getBackgroundExecutor, getId, getInputData, getNetwork, getRunAttemptCount, getTags, getTaskExecutor, getTriggeredContentAuthorities, getTriggeredContentUris, getWorkerFactory, isRunInForeground, isStopped, isUsed, onStopped, setForegroundAsync, setProgressAsync, setUsed, stop +getApplicationContext, getBackgroundExecutor, getForegroundInfoAsync, getId, getInputData, getNetwork, getRunAttemptCount, getTags, getTaskExecutor, getTriggeredContentAuthorities, getTriggeredContentUris, getWorkerFactory, isRunInForeground, isStopped, isUsed, onStopped, setForegroundAsync, setProgressAsync, setRunInForeground, setUsed, stop + + +
    All Methods Instance Methods Concrete Methods Deprecated Methods All Methods Instance Methods Concrete Methods 
    Modifier and Type Method  
    voidsetControlDispatcher​(ControlDispatcher controlDispatcher) -
    Deprecated. -
    Use a ForwardingPlayer and pass it to the constructor instead.
    -
    -
    ListenableFuture<androidx.media2.common.SessionPlayer.PlayerResult> setMediaItem​(androidx.media2.common.MediaItem item)
    ListenableFuture<androidx.media2.common.SessionPlayer.PlayerResult> setPlaybackSpeed​(float playbackSpeed)  
    ListenableFuture<androidx.media2.common.SessionPlayer.PlayerResult> setPlaylist​(List<androidx.media2.common.MediaItem> playlist, androidx.media2.common.MediaMetadata metadata)
    ListenableFuture<androidx.media2.common.SessionPlayer.PlayerResult> setRepeatMode​(int repeatMode)  
    ListenableFuture<androidx.media2.common.SessionPlayer.PlayerResult> setShuffleMode​(int shuffleMode)  
    ListenableFuture<androidx.media2.common.SessionPlayer.PlayerResult> skipToNextPlaylistItem()  
    ListenableFuture<androidx.media2.common.SessionPlayer.PlayerResult> skipToPlaylistItem​(int index)  
    ListenableFuture<androidx.media2.common.SessionPlayer.PlayerResult> skipToPreviousPlaylistItem()  
    ListenableFuture<androidx.media2.common.SessionPlayer.PlayerResult> updatePlaylistMetadata​(androidx.media2.common.MediaMetadata metadata)  
    booleanonCommand​(Player player, - ControlDispatcher controlDispatcher, +onCommand​(Player player, String command, Bundle extras, ResultReceiver cb)
    voidonCustomAction​(Player player, - ControlDispatcher controlDispatcher, +onCustomAction​(Player player, String action, Bundle extras) @@ -188,15 +187,13 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));

    Method Detail

    - +
    • onCustomAction

      void onCustomAction​(Player player,
      -                    @Deprecated
      -                    ControlDispatcher controlDispatcher,
                           String action,
                           @Nullable
                           Bundle extras)
      @@ -204,10 +201,6 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
      Parameters:
      player - The player connected to the media session.
      -
      controlDispatcher - This parameter is deprecated. Use player instead. Operations - can be customized by passing a ForwardingPlayer to MediaSessionConnector.setPlayer(Player), or - when configuring the player (for example by using - SimpleExoPlayer.Builder#setSeekBackIncrementMs(long)).
      action - The name of the action which was sent by a media controller.
      extras - Optional extras sent by a media controller, may be null.
      diff --git a/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.MediaButtonEventHandler.html b/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.MediaButtonEventHandler.html index 55d05bbd05..83fb0e44cd 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.MediaButtonEventHandler.html +++ b/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.MediaButtonEventHandler.html @@ -149,8 +149,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    booleanonMediaButtonEvent​(Player player, - ControlDispatcher controlDispatcher, +onMediaButtonEvent​(Player player, Intent mediaButtonEvent)
    See MediaSessionCompat.Callback.onMediaButtonEvent(Intent).
    @@ -173,24 +172,18 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));

    Method Detail

    - +
    • onMediaButtonEvent

      boolean onMediaButtonEvent​(Player player,
      -                           @Deprecated
      -                           ControlDispatcher controlDispatcher,
                                  Intent mediaButtonEvent)
      See MediaSessionCompat.Callback.onMediaButtonEvent(Intent).
      Parameters:
      player - The Player.
      -
      controlDispatcher - This parameter is deprecated. Use player instead. Operations - can be customized by passing a ForwardingPlayer to MediaSessionConnector.setPlayer(Player), or - when configuring the player (for example by using - SimpleExoPlayer.Builder#setSeekBackIncrementMs(long)).
      mediaButtonEvent - The Intent.
      Returns:
      True if the event was handled, false otherwise.
      diff --git a/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.PlaybackPreparer.html b/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.PlaybackPreparer.html index d05eda7543..7c5a3db83c 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.PlaybackPreparer.html +++ b/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.PlaybackPreparer.html @@ -222,7 +222,7 @@ extends MediaSessionConnector.CommandReceiver -onCommand
    • +onCommand
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.QueueEditor.html b/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.QueueEditor.html index 3f1f0f90c5..b0f80a763b 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.QueueEditor.html +++ b/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.QueueEditor.html @@ -189,7 +189,7 @@ extends MediaSessionConnector.CommandReceiver -onCommand +onCommand diff --git a/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.QueueNavigator.html b/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.QueueNavigator.html index 907cfdb50d..dcb49e58f5 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.QueueNavigator.html +++ b/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.QueueNavigator.html @@ -25,8 +25,8 @@ catch(err) { } //--> -var data = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6}; -var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"]}; +var data = {"i0":6,"i1":6,"i2":18,"i3":6,"i4":6,"i5":6,"i6":6}; +var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],16:["t5","Default Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; var tableTab = "tableTab"; @@ -174,7 +174,7 @@ extends -
    All Methods Instance Methods Abstract Methods All Methods Instance Methods Abstract Methods Default Methods 
    Modifier and Type MethodvoidonCurrentWindowIndexChanged​(Player player)default voidonCurrentMediaItemIndexChanged​(Player player) -
    Called when the current window index changed.
    +
    Called when the current media item index changed.
    voidonSkipToNext​(Player player, - ControlDispatcher controlDispatcher)onSkipToNext​(Player player)
    See MediaSessionCompat.Callback.onSkipToNext().
    voidonSkipToPrevious​(Player player, - ControlDispatcher controlDispatcher)onSkipToPrevious​(Player player)
    See MediaSessionCompat.Callback.onSkipToPrevious().
    voidonSkipToQueueItem​(Player player, - ControlDispatcher controlDispatcher, +onSkipToQueueItem​(Player player, long id)
    See MediaSessionCompat.Callback.onSkipToQueueItem(long).
    @@ -239,7 +236,7 @@ extends MediaSessionConnector.CommandReceiver -onCommand +onCommand @@ -311,14 +308,14 @@ extends +
    • -

      onCurrentWindowIndexChanged

      -
      void onCurrentWindowIndexChanged​(Player player)
      -
      Called when the current window index changed.
      +

      onCurrentMediaItemIndexChanged

      +
      default void onCurrentMediaItemIndexChanged​(Player player)
      +
      Called when the current media item index changed.
      Parameters:
      player - The player connected to the media session.
      @@ -345,64 +342,46 @@ extends +
      • onSkipToPrevious

        -
        void onSkipToPrevious​(Player player,
        -                      @Deprecated
        -                      ControlDispatcher controlDispatcher)
        +
        void onSkipToPrevious​(Player player)
        See MediaSessionCompat.Callback.onSkipToPrevious().
        Parameters:
        player - The player connected to the media session.
        -
        controlDispatcher - This parameter is deprecated. Use player instead. Operations - can be customized by passing a ForwardingPlayer to MediaSessionConnector.setPlayer(Player), or - when configuring the player (for example by using - SimpleExoPlayer.Builder#setSeekBackIncrementMs(long)).
      - +
      • onSkipToQueueItem

        void onSkipToQueueItem​(Player player,
        -                       @Deprecated
        -                       ControlDispatcher controlDispatcher,
                                long id)
        See MediaSessionCompat.Callback.onSkipToQueueItem(long).
        Parameters:
        player - The player connected to the media session.
        -
        controlDispatcher - This parameter is deprecated. Use player instead. Operations - can be customized by passing a ForwardingPlayer to MediaSessionConnector.setPlayer(Player), or - when configuring the player (for example by using - SimpleExoPlayer.Builder#setSeekBackIncrementMs(long)).
      - +
      • onSkipToNext

        -
        void onSkipToNext​(Player player,
        -                  @Deprecated
        -                  ControlDispatcher controlDispatcher)
        +
        void onSkipToNext​(Player player)
        See MediaSessionCompat.Callback.onSkipToNext().
        Parameters:
        player - The player connected to the media session.
        -
        controlDispatcher - This parameter is deprecated. Use player instead. Operations - can be customized by passing a ForwardingPlayer to MediaSessionConnector.setPlayer(Player), or - when configuring the player (for example by using - SimpleExoPlayer.Builder#setSeekBackIncrementMs(long)).
      diff --git a/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.RatingCallback.html b/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.RatingCallback.html index c565055f2e..190613ff38 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.RatingCallback.html +++ b/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.RatingCallback.html @@ -175,7 +175,7 @@ extends MediaSessionConnector.CommandReceiver -onCommand
    • +onCommand
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.html b/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.html index 2fbe4eb63f..295eed1c1b 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.html +++ b/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.html @@ -25,8 +25,8 @@ catch(err) { } //--> -var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":42,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10}; -var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]}; +var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10}; +var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; var tableTab = "tableTab"; @@ -338,7 +338,7 @@ extends

    Method Summary

    - + @@ -381,28 +381,19 @@ extends - - - - - - + - + @@ -410,7 +401,7 @@ extends Sets a custom error on the session. - + - + - + - + - + - + - + - + - + - + - + - + - + - - @@ -480,32 +479,26 @@ implements +
    • onCommand

      public boolean onCommand​(Player player,
      -                         @Deprecated
      -                         ControlDispatcher controlDispatcher,
                                String command,
                                @Nullable
                                Bundle extras,
                                @Nullable
                                ResultReceiver cb)
      -
      Description copied from interface: MediaSessionConnector.CommandReceiver
      +
      Description copied from interface: MediaSessionConnector.CommandReceiver
      See MediaSessionCompat.Callback.onCommand(String, Bundle, ResultReceiver). The receiver may handle the command, but is not required to do so.
      Specified by:
      -
      onCommand in interface MediaSessionConnector.CommandReceiver
      +
      onCommand in interface MediaSessionConnector.CommandReceiver
      Parameters:
      player - The player connected to the media session.
      -
      controlDispatcher - This parameter is deprecated. Use player instead. Operations - can be customized by passing a ForwardingPlayer to MediaSessionConnector.setPlayer(Player), or - when configuring the player (for example by using - SimpleExoPlayer.Builder#setSeekBackIncrementMs(long)).
      command - The command name.
      extras - Optional parameters for the command, may be null.
      cb - A result receiver to which a result may be sent by the command, may be null.
      diff --git a/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/TimelineQueueNavigator.html b/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/TimelineQueueNavigator.html index 35b6029880..a4c81304b2 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/TimelineQueueNavigator.html +++ b/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/TimelineQueueNavigator.html @@ -242,8 +242,7 @@ implements
    - @@ -253,31 +252,28 @@ implements - + - + - + - + @@ -192,43 +192,34 @@ implements - - - - - - + - + - + - + - + @@ -293,7 +293,7 @@ extends BaseRenderer -createRendererException, createRendererException, disable, enable, getCapabilities, getConfiguration, getFormatHolder, getIndex, getLastResetPositionUs, getReadingPositionUs, getState, getStream, getStreamFormats, getTrackType, hasReadStreamToEnd, isCurrentStreamFinal, isSourceReady, maybeThrowStreamError, onReset, onStreamChanged, readSource, replaceStream, reset, resetPosition, setCurrentStreamFinal, setIndex, skipSource, start, stop, supportsMixedMimeTypeAdaptation +createRendererException, createRendererException, disable, enable, getCapabilities, getConfiguration, getFormatHolder, getIndex, getLastResetPositionUs, getReadingPositionUs, getState, getStream, getStreamFormats, getTrackType, hasReadStreamToEnd, isCurrentStreamFinal, isSourceReady, maybeThrowStreamError, onReset, onStreamChanged, readSource, replaceStream, reset, resetPosition, setCurrentStreamFinal, setIndex, skipSource, start, stop, supportsMixedMimeTypeAdaptation - + - - - - - - - + - + - + + + + +
    All Methods Instance Methods Concrete Methods Deprecated Methods All Methods Instance Methods Concrete Methods 
    Modifier and Type Method
    voidsetControlDispatcher​(ControlDispatcher controlDispatcher) -
    Deprecated. -
    Use a ForwardingPlayer and pass it to setPlayer(Player) instead.
    -
    -
    void setCustomActionProviders​(MediaSessionConnector.CustomActionProvider... customActionProviders)
    Sets custom action providers.
    void setCustomErrorMessage​(CharSequence message)
    Sets a custom error on the session.
    void setCustomErrorMessage​(CharSequence message, int code)
    void setCustomErrorMessage​(CharSequence message, int code, @@ -419,7 +410,7 @@ extends Sets a custom error on the session.
    void setDispatchUnsupportedActionsEnabled​(boolean dispatchUnsupportedActionsEnabled) @@ -427,35 +418,35 @@ extends
    void setEnabledPlaybackActions​(long enabledPlaybackActions)
    Sets the enabled playback actions.
    void setErrorMessageProvider​(ErrorMessageProvider<? super PlaybackException> errorMessageProvider)
    Sets the optional ErrorMessageProvider.
    void setMediaButtonEventHandler​(MediaSessionConnector.MediaButtonEventHandler mediaButtonEventHandler)
    void setMediaMetadataProvider​(MediaSessionConnector.MediaMetadataProvider mediaMetadataProvider)
    Sets a provider of metadata to be published to the media session.
    void setMetadataDeduplicationEnabled​(boolean metadataDeduplicationEnabled) @@ -463,28 +454,28 @@ extends MediaSessionCompat.setMetadata(MediaMetadataCompat).
    void setPlaybackPreparer​(MediaSessionConnector.PlaybackPreparer playbackPreparer)
    void setPlayer​(Player player)
    Sets the player to be connected to the media session.
    void setQueueEditor​(MediaSessionConnector.QueueEditor queueEditor)
    Sets the MediaSessionConnector.QueueEditor to handle queue edits sent by the media controller.
    void setQueueNavigator​(MediaSessionConnector.QueueNavigator queueNavigator) @@ -492,14 +483,14 @@ extends ACTION_SKIP_TO_PREVIOUS and ACTION_SKIP_TO_QUEUE_ITEM.
    void setRatingCallback​(MediaSessionConnector.RatingCallback ratingCallback)
    Sets the MediaSessionConnector.RatingCallback to handle user ratings.
    void unregisterCustomCommandReceiver​(MediaSessionConnector.CommandReceiver commandReceiver) @@ -648,21 +639,6 @@ extends - - - -
      -
    • -

      setControlDispatcher

      -
      @Deprecated
      -public void setControlDispatcher​(ControlDispatcher controlDispatcher)
      -
      Deprecated. -
      Use a ForwardingPlayer and pass it to setPlayer(Player) instead. - You can also customize some operations when configuring the player (for example by using - SimpleExoPlayer.Builder#setSeekBackIncrementMs(long)).
      -
      -
    • -
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/RepeatModeActionProvider.html b/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/RepeatModeActionProvider.html index 32ee306748..4f7834235b 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/RepeatModeActionProvider.html +++ b/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/RepeatModeActionProvider.html @@ -223,8 +223,7 @@ implements
    voidonCustomAction​(Player player, - ControlDispatcher controlDispatcher, +onCustomAction​(Player player, String action, Bundle extras) @@ -323,29 +322,23 @@ public static final int DEFAULT_REPEAT_TOGGLE_MODES

    Method Detail

    - +
    • onCustomAction

      public void onCustomAction​(Player player,
      -                           @Deprecated
      -                           ControlDispatcher controlDispatcher,
                                  String action,
                                  @Nullable
                                  Bundle extras)
      -
      Description copied from interface: MediaSessionConnector.CustomActionProvider
      +
      Description copied from interface: MediaSessionConnector.CustomActionProvider
      Called when a custom action provided by this provider is sent to the media session.
      Specified by:
      -
      onCustomAction in interface MediaSessionConnector.CustomActionProvider
      +
      onCustomAction in interface MediaSessionConnector.CustomActionProvider
      Parameters:
      player - The player connected to the media session.
      -
      controlDispatcher - This parameter is deprecated. Use player instead. Operations - can be customized by passing a ForwardingPlayer to MediaSessionConnector.setPlayer(Player), or - when configuring the player (for example by using - SimpleExoPlayer.Builder#setSeekBackIncrementMs(long)).
      action - The name of the action which was sent by a media controller.
      extras - Optional extras sent by a media controller, may be null.
      diff --git a/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/TimelineQueueEditor.html b/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/TimelineQueueEditor.html index d7e91f838e..09fa3b99a6 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/TimelineQueueEditor.html +++ b/docs/doc/reference/com/google/android/exoplayer2/ext/mediasession/TimelineQueueEditor.html @@ -288,8 +288,7 @@ implements
    booleanonCommand​(Player player, - ControlDispatcher controlDispatcher, +onCommand​(Player player, String command, Bundle extras, ResultReceiver cb) booleanonCommand​(Player player, - ControlDispatcher controlDispatcher, +onCommand​(Player player, String command, Bundle extras, ResultReceiver cb)voidonCurrentWindowIndexChanged​(Player player)onCurrentMediaItemIndexChanged​(Player player) -
    Called when the current window index changed.
    +
    Called when the current media item index changed.
    voidonSkipToNext​(Player player, - ControlDispatcher controlDispatcher)onSkipToNext​(Player player)
    See MediaSessionCompat.Callback.onSkipToNext().
    voidonSkipToPrevious​(Player player, - ControlDispatcher controlDispatcher)onSkipToPrevious​(Player player)
    See MediaSessionCompat.Callback.onSkipToPrevious().
    voidonSkipToQueueItem​(Player player, - ControlDispatcher controlDispatcher, +onSkipToQueueItem​(Player player, long id)
    See MediaSessionCompat.Callback.onSkipToQueueItem(long).
    @@ -442,18 +438,18 @@ implements +
    All Methods Instance Methods Concrete Methods Deprecated Methods All Methods Instance Methods Concrete Methods 
    Modifier and Type MethodHttpDataSource.RequestPropertiesgetDefaultRequestProperties() -
    Deprecated. - -
    -
    OkHttpDataSource.Factory setCacheControl​(okhttp3.CacheControl cacheControl)
    Sets the CacheControl that will be used.
    OkHttpDataSource.Factory setContentTypePredicate​(Predicate<String> contentTypePredicate)
    Sets a content type Predicate.
    OkHttpDataSource.Factory setDefaultRequestProperties​(Map<String,​String> defaultRequestProperties)
    Sets the default request headers for HttpDataSource instances created by the factory.
    OkHttpDataSource.Factory setTransferListener​(TransferListener transferListener)
    Sets the TransferListener that will be used.
    OkHttpDataSource.Factory setUserAgent​(String userAgent) @@ -284,23 +275,6 @@ implements - - - diff --git a/docs/doc/reference/com/google/android/exoplayer2/ext/okhttp/OkHttpDataSourceFactory.html b/docs/doc/reference/com/google/android/exoplayer2/ext/okhttp/OkHttpDataSourceFactory.html index ce15a16cd4..829907dceb 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/ext/okhttp/OkHttpDataSourceFactory.html +++ b/docs/doc/reference/com/google/android/exoplayer2/ext/okhttp/OkHttpDataSourceFactory.html @@ -238,7 +238,7 @@ extends HttpDataSource.BaseFactory -createDataSource, getDefaultRequestProperties, setDefaultRequestProperties +createDataSource, setDefaultRequestProperties protected OpusDecodercreateDecoder​(Format format, - ExoMediaCrypto mediaCrypto)createDecoder​(Format format, + CryptoConfig cryptoConfig)
    Creates a decoder for the given format.
    OpusDecoder​(int numInputBuffers, +OpusDecoder​(int numInputBuffers, int numOutputBuffers, int initialInputBufferSize, List<byte[]> initializationData, - ExoMediaCrypto exoMediaCrypto, + CryptoConfig cryptoConfig, boolean outputFloat)
    Creates an Opus decoder.
    @@ -225,7 +225,7 @@ extends -
    protected SimpleOutputBufferprotected SimpleDecoderOutputBuffer createOutputBuffer()
    Creates a new output buffer.
    @@ -240,8 +240,8 @@ extends
    protected OpusDecoderExceptiondecode​(DecoderInputBuffer inputBuffer, - SimpleOutputBuffer outputBuffer, +decode​(DecoderInputBuffer inputBuffer, + SimpleDecoderOutputBuffer outputBuffer, boolean reset)
    Decodes the inputBuffer and stores any decoded output in outputBuffer.
    @@ -320,7 +320,7 @@ extends + @@ -397,12 +397,12 @@ extends
  • createOutputBuffer

    -
    protected SimpleOutputBuffer createOutputBuffer()
    +
    protected SimpleDecoderOutputBuffer createOutputBuffer()
    Description copied from class: SimpleDecoder
    Creates a new output buffer.
    Specified by:
    -
    createOutputBuffer in class SimpleDecoder<DecoderInputBuffer,​SimpleOutputBuffer,​OpusDecoderException>
    +
    createOutputBuffer in class SimpleDecoder<DecoderInputBuffer,​SimpleDecoderOutputBuffer,​OpusDecoderException>
  • @@ -417,7 +417,7 @@ extends Creates an exception to propagate for an unexpected decode error.
    Specified by:
    -
    createUnexpectedDecodeException in class SimpleDecoder<DecoderInputBuffer,​SimpleOutputBuffer,​OpusDecoderException>
    +
    createUnexpectedDecodeException in class SimpleDecoder<DecoderInputBuffer,​SimpleDecoderOutputBuffer,​OpusDecoderException>
    Parameters:
    error - The unexpected decode error.
    Returns:
    @@ -425,7 +425,7 @@ extends + diff --git a/docs/doc/reference/com/google/android/exoplayer2/ext/opus/OpusLibrary.html b/docs/doc/reference/com/google/android/exoplayer2/ext/opus/OpusLibrary.html index df28b57af1..1444d4d081 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/ext/opus/OpusLibrary.html +++ b/docs/doc/reference/com/google/android/exoplayer2/ext/opus/OpusLibrary.html @@ -167,31 +167,30 @@ extends
    static booleanmatchesExpectedExoMediaCryptoType​(Class<? extends ExoMediaCrypto> exoMediaCryptoType) -
    Returns whether the given ExoMediaCrypto type matches the one required for decoding - protected content.
    -
    static String opusGetVersion()  
    static boolean opusIsSecureDecodeSupported()  
    static voidsetLibraries​(Class<? extends ExoMediaCrypto> exoMediaCryptoType, +setLibraries​(@com.google.android.exoplayer2.C.CryptoType int cryptoType, String... libraries)
    Override the names of the Opus native libraries.
    static booleansupportsCryptoType​(@com.google.android.exoplayer2.C.CryptoType int cryptoType) +
    Returns whether the library supports the given C.CryptoType.
    +
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/ext/vp9/LibvpxVideoRenderer.html b/docs/doc/reference/com/google/android/exoplayer2/ext/vp9/LibvpxVideoRenderer.html index 0ed5d79010..3acae48ed6 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/ext/vp9/LibvpxVideoRenderer.html +++ b/docs/doc/reference/com/google/android/exoplayer2/ext/vp9/LibvpxVideoRenderer.html @@ -164,7 +164,7 @@ extends Renderer -Renderer.State, Renderer.VideoScalingMode, Renderer.WakeupListener +Renderer.MessageType, Renderer.State, Renderer.WakeupListener
    protected VpxDecodercreateDecoder​(Format format, - ExoMediaCrypto mediaCrypto)createDecoder​(Format format, + CryptoConfig cryptoConfig)
    Creates a decoder for the given format.
    protected voidrenderOutputBufferToSurface​(VideoDecoderOutputBuffer outputBuffer, +renderOutputBufferToSurface​(VideoDecoderOutputBuffer outputBuffer, Surface surface)
    Renders the specified output buffer to the passed surface.
    @@ -317,14 +317,14 @@ extends DecoderVideoRenderer -dropOutputBuffer, flushDecoder, handleMessage, isEnded, isReady, maybeDropBuffersToKeyframe, onDisabled, onEnabled, onInputFormatChanged, onPositionReset, onProcessedOutputBuffer, onQueueInputBuffer, onStarted, onStopped, onStreamChanged, releaseDecoder, render, renderOutputBuffer, setOutput, shouldDropBuffersToKeyframe, shouldDropOutputBuffer, shouldForceRenderOutputBuffer, skipOutputBuffer, updateDroppedBufferCounters +dropOutputBuffer, flushDecoder, handleMessage, isEnded, isReady, maybeDropBuffersToKeyframe, onDisabled, onEnabled, onInputFormatChanged, onPositionReset, onProcessedOutputBuffer, onQueueInputBuffer, onStarted, onStopped, onStreamChanged, releaseDecoder, render, renderOutputBuffer, setOutput, shouldDropBuffersToKeyframe, shouldDropOutputBuffer, shouldForceRenderOutputBuffer, skipOutputBuffer, updateDroppedBufferCounters - + - + @@ -161,10 +161,10 @@ extends Description
    VpxDecoder​(int numInputBuffers, +VpxDecoder​(int numInputBuffers, int numOutputBuffers, int initialInputBufferSize, - ExoMediaCrypto exoMediaCrypto, + CryptoConfig cryptoConfig, int threads)
    Creates a VP9 decoder.
    @@ -189,14 +189,14 @@ extends Description
    protected VideoDecoderInputBufferprotected DecoderInputBuffer createInputBuffer()
    Creates a new input buffer.
    protected VideoDecoderOutputBufferprotected VideoDecoderOutputBuffer createOutputBuffer()
    Creates a new output buffer.
    @@ -211,8 +211,8 @@ extends
    protected VpxDecoderExceptiondecode​(VideoDecoderInputBuffer inputBuffer, - VideoDecoderOutputBuffer outputBuffer, +decode​(DecoderInputBuffer inputBuffer, + VideoDecoderOutputBuffer outputBuffer, boolean reset)
    Decodes the inputBuffer and stores any decoded output in outputBuffer.
    @@ -234,14 +234,14 @@ extends
    protected voidreleaseOutputBuffer​(VideoDecoderOutputBuffer buffer)releaseOutputBuffer​(VideoDecoderOutputBuffer buffer)
    Releases an output buffer back to the decoder.
    voidrenderToSurface​(VideoDecoderOutputBuffer outputBuffer, +renderToSurface​(VideoDecoderOutputBuffer outputBuffer, Surface surface)
    Renders the outputBuffer to the surface.
    @@ -285,7 +285,7 @@ extends + @@ -358,27 +358,27 @@ extends
  • createOutputBuffer

    -
    protected VideoDecoderOutputBuffer createOutputBuffer()
    +
    protected VideoDecoderOutputBuffer createOutputBuffer()
    Description copied from class: SimpleDecoder
    Creates a new output buffer.
    Specified by:
    -
    createOutputBuffer in class SimpleDecoder<VideoDecoderInputBuffer,​VideoDecoderOutputBuffer,​VpxDecoderException>
    +
    createOutputBuffer in class SimpleDecoder<DecoderInputBuffer,​VideoDecoderOutputBuffer,​VpxDecoderException>
  • - +
    static booleanmatchesExpectedExoMediaCryptoType​(Class<? extends ExoMediaCrypto> exoMediaCryptoType) -
    Returns whether the given ExoMediaCrypto type matches the one required for decoding - protected content.
    -
    static voidsetLibraries​(Class<? extends ExoMediaCrypto> exoMediaCryptoType, +setLibraries​(@com.google.android.exoplayer2.C.CryptoType int cryptoType, String... libraries)
    Override the names of the Vpx native libraries.
    static booleansupportsCryptoType​(@com.google.android.exoplayer2.C.CryptoType int cryptoType) +
    Returns whether the library supports the given C.CryptoType.
    +
    static boolean vpxIsSecureDecodeSupported()
    ConstantBitrateSeekMap​(long inputLength, + long firstFrameBytePosition, + int bitrate, + int frameSize, + boolean allowSeeksIfLengthUnknown) +
    Creates an instance.
    @@ -257,14 +267,14 @@ implements - diff --git a/docs/doc/reference/com/google/android/exoplayer2/extractor/amr/AmrExtractor.html b/docs/doc/reference/com/google/android/exoplayer2/extractor/amr/AmrExtractor.html index f288a7c4e8..9788c27ead 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/extractor/amr/AmrExtractor.html +++ b/docs/doc/reference/com/google/android/exoplayer2/extractor/amr/AmrExtractor.html @@ -207,6 +207,14 @@ implements +static int +FLAG_ENABLE_CONSTANT_BITRATE_SEEKING_ALWAYS + +
    Like FLAG_ENABLE_CONSTANT_BITRATE_SEEKING, except that seeking is also enabled in + cases where the content length (and hence the duration of the media) is unknown.
    + + @@ -281,7 +281,7 @@ extends Size of the FLAC stream info block (header included) in bytes.
    See Also:
    -
    Constant Field Values
    +
    Constant Field Values
    @@ -295,7 +295,7 @@ extends Minimum size of a FLAC frame header in bytes.
    See Also:
    -
    Constant Field Values
    +
    Constant Field Values
    @@ -309,7 +309,7 @@ extends Maximum size of a FLAC frame header in bytes.
    See Also:
    -
    Constant Field Values
    +
    Constant Field Values
    @@ -323,7 +323,7 @@ extends Stream info metadata block type.
    See Also:
    -
    Constant Field Values
    +
    Constant Field Values
    @@ -337,7 +337,7 @@ extends Seek table metadata block type.
    See Also:
    -
    Constant Field Values
    +
    Constant Field Values
    @@ -351,7 +351,7 @@ extends Vorbis comment metadata block type.
    See Also:
    -
    Constant Field Values
    +
    Constant Field Values
    @@ -365,7 +365,7 @@ extends Picture metadata block type.
    See Also:
    -
    Constant Field Values
    +
    Constant Field Values
    @@ -389,18 +389,18 @@ extends diff --git a/docs/doc/reference/com/google/android/exoplayer2/mediacodec/MediaCodecAdapter.Factory.html b/docs/doc/reference/com/google/android/exoplayer2/mediacodec/MediaCodecAdapter.Factory.html index f335fe5099..0efbdc1d72 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/mediacodec/MediaCodecAdapter.Factory.html +++ b/docs/doc/reference/com/google/android/exoplayer2/mediacodec/MediaCodecAdapter.Factory.html @@ -122,7 +122,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  • All Known Implementing Classes:
    -
    SynchronousMediaCodecAdapter.Factory
    +
    DefaultMediaCodecAdapterFactory, SynchronousMediaCodecAdapter.Factory
    Enclosing interface:
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/mediacodec/MediaCodecAdapter.html b/docs/doc/reference/com/google/android/exoplayer2/mediacodec/MediaCodecAdapter.html index 0487ffd65e..70e564c229 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/mediacodec/MediaCodecAdapter.html +++ b/docs/doc/reference/com/google/android/exoplayer2/mediacodec/MediaCodecAdapter.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6,"i8":6,"i9":6,"i10":6,"i11":6,"i12":6,"i13":6,"i14":6,"i15":6}; +var data = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6,"i8":6,"i9":6,"i10":6,"i11":6,"i12":6,"i13":6,"i14":6,"i15":6,"i16":6,"i17":6}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -218,27 +218,34 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); +Surface +getInputSurface() + +
    Returns the input Surface, or null if the input is not a surface.
    + + + ByteBuffer getOutputBuffer​(int index)
    Returns a read-only ByteBuffer for a dequeued output buffer index.
    - + MediaFormat getOutputFormat()
    Gets the MediaFormat that was output from the MediaCodec.
    - + boolean needsReconfiguration()
    Whether the adapter needs to be reconfigured before it is used.
    - + void queueInputBuffer​(int index, int offset, @@ -249,7 +256,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    Submit an input buffer for decoding.
    - + void queueSecureInputBuffer​(int index, int offset, @@ -260,14 +267,14 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    Submit an input buffer that is potentially encrypted for decoding.
    - + void release()
    Releases the adapter and the underlying MediaCodec.
    - + void releaseOutputBuffer​(int index, boolean render) @@ -275,7 +282,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    Returns the buffer to the MediaCodec.
    - + void releaseOutputBuffer​(int index, long renderTimeStampNs) @@ -284,7 +291,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); it on the output surface. - + void setOnFrameRenderedListener​(MediaCodecAdapter.OnFrameRenderedListener listener, Handler handler) @@ -292,27 +299,34 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    Registers a callback to be invoked when an output frame is rendered on the output surface.
    - + void setOutputSurface​(Surface surface)
    Dynamically sets the output surface of a MediaCodec.
    - + void setParameters​(Bundle params)
    Communicate additional parameter changes to the MediaCodec instance.
    - + void setVideoScalingMode​(int scalingMode)
    Specifies the scaling mode to use, if a surface was specified when the codec was created.
    + +void +signalEndOfInputStream() + +
    Signals the encoder of end-of-stream on input.
    + +
  • @@ -387,6 +401,21 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    + + + + @@ -567,13 +596,29 @@ void setParameters​( -
      +
      • needsReconfiguration

        boolean needsReconfiguration()
        Whether the adapter needs to be reconfigured before it is used.
      + + + +
        +
      • +

        signalEndOfInputStream

        +
        @RequiresApi(18)
        +void signalEndOfInputStream()
        +
        Signals the encoder of end-of-stream on input. The call can only be used when the encoder + receives its input from a surface.
        +
        +
        See Also:
        +
        MediaCodec.signalEndOfInputStream()
        +
        +
      • +
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/mediacodec/MediaCodecRenderer.html b/docs/doc/reference/com/google/android/exoplayer2/mediacodec/MediaCodecRenderer.html index 1d886e6561..6c6aa82f26 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/mediacodec/MediaCodecRenderer.html +++ b/docs/doc/reference/com/google/android/exoplayer2/mediacodec/MediaCodecRenderer.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":6,"i14":6,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":6,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10,"i47":10,"i48":10,"i49":6,"i50":9,"i51":10,"i52":10,"i53":10}; +var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":6,"i11":6,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":6,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":6,"i47":9,"i48":10,"i49":10,"i50":10}; var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -178,7 +178,7 @@ extends Renderer -Renderer.State, Renderer.VideoScalingMode, Renderer.WakeupListener +Renderer.MessageType, Renderer.State, Renderer.WakeupListener +
  • com.google.android.exoplayer2.mediacodec.DefaultMediaCodecAdapterFactory (implements com.google.android.exoplayer2.mediacodec.MediaCodecAdapter.Factory)
  • com.google.android.exoplayer2.mediacodec.MediaCodecAdapter.Configuration
  • com.google.android.exoplayer2.mediacodec.MediaCodecInfo
  • com.google.android.exoplayer2.mediacodec.MediaCodecUtil
  • diff --git a/docs/doc/reference/com/google/android/exoplayer2/metadata/Metadata.Entry.html b/docs/doc/reference/com/google/android/exoplayer2/metadata/Metadata.Entry.html index 1ca5ab2ed7..c4938c36c7 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/metadata/Metadata.Entry.html +++ b/docs/doc/reference/com/google/android/exoplayer2/metadata/Metadata.Entry.html @@ -126,7 +126,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    All Known Implementing Classes:
    -
    ApicFrame, AppInfoTable, BinaryFrame, ChapterFrame, ChapterTocFrame, CommentFrame, EventMessage, GeobFrame, HlsTrackMetadataEntry, IcyHeaders, IcyInfo, Id3Frame, InternalFrame, MdtaMetadataEntry, MlltFrame, MotionPhotoMetadata, PictureFrame, PrivateCommand, PrivFrame, SlowMotionData, SmtaMetadataEntry, SpliceCommand, SpliceInsertCommand, SpliceNullCommand, SpliceScheduleCommand, TextInformationFrame, TimeSignalCommand, UrlLinkFrame, VorbisComment
    +
    ApicFrame, AppInfoTable, BinaryFrame, ChapterFrame, ChapterTocFrame, CommentFrame, EventMessage, FakeMetadataEntry, GeobFrame, HlsTrackMetadataEntry, IcyHeaders, IcyInfo, Id3Frame, InternalFrame, MdtaMetadataEntry, MlltFrame, MotionPhotoMetadata, PictureFrame, PrivateCommand, PrivFrame, SlowMotionData, SmtaMetadataEntry, SpliceCommand, SpliceInsertCommand, SpliceNullCommand, SpliceScheduleCommand, TextInformationFrame, TimeSignalCommand, UrlLinkFrame, VorbisComment
    Enclosing class:
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/metadata/MetadataInputBuffer.html b/docs/doc/reference/com/google/android/exoplayer2/metadata/MetadataInputBuffer.html index af7bb84d43..aae1d0ef8d 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/metadata/MetadataInputBuffer.html +++ b/docs/doc/reference/com/google/android/exoplayer2/metadata/MetadataInputBuffer.html @@ -186,7 +186,7 @@ extends DecoderInputBuffer -BUFFER_REPLACEMENT_MODE_DIRECT, BUFFER_REPLACEMENT_MODE_DISABLED, BUFFER_REPLACEMENT_MODE_NORMAL, cryptoInfo, data, supplementalData, timeUs, waitingForKeys +BUFFER_REPLACEMENT_MODE_DIRECT, BUFFER_REPLACEMENT_MODE_DISABLED, BUFFER_REPLACEMENT_MODE_NORMAL, cryptoInfo, data, format, supplementalData, timeUs, waitingForKeys diff --git a/docs/doc/reference/com/google/android/exoplayer2/metadata/MetadataOutput.html b/docs/doc/reference/com/google/android/exoplayer2/metadata/MetadataOutput.html index 91cd1db0ad..6e70217434 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/metadata/MetadataOutput.html +++ b/docs/doc/reference/com/google/android/exoplayer2/metadata/MetadataOutput.html @@ -120,14 +120,6 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    - + static void sendAddDownload​(Context context, Class<? extends DownloadService> clazz, @@ -549,7 +532,7 @@ extends Starts the service if not started already and adds a new download. - + static void sendPauseDownloads​(Context context, Class<? extends DownloadService> clazz, @@ -558,7 +541,7 @@ extends Starts the service if not started already and pauses all downloads. - + static void sendRemoveAllDownloads​(Context context, Class<? extends DownloadService> clazz, @@ -567,7 +550,7 @@ extends Starts the service if not started already and removes all downloads. - + static void sendRemoveDownload​(Context context, Class<? extends DownloadService> clazz, @@ -577,7 +560,7 @@ extends Starts the service if not started already and removes a download. - + static void sendResumeDownloads​(Context context, Class<? extends DownloadService> clazz, @@ -586,7 +569,7 @@ extends Starts the service if not started already and resumes all downloads. - + static void sendSetRequirements​(Context context, Class<? extends DownloadService> clazz, @@ -597,7 +580,7 @@ extends + static void sendSetStopReason​(Context context, Class<? extends DownloadService> clazz, @@ -608,7 +591,7 @@ extends Starts the service if not started already and sets the stop reason for one or all downloads. - + static void start​(Context context, Class<? extends DownloadService> clazz) @@ -616,7 +599,7 @@ extends Starts a download service to resume any ongoing downloads. - + static void startForeground​(Context context, Class<? extends DownloadService> clazz) @@ -637,7 +620,7 @@ extends ContextWrapper -bindIsolatedService, bindService, bindService, bindServiceAsUser, checkCallingOrSelfPermission, checkCallingOrSelfUriPermission, checkCallingPermission, checkCallingUriPermission, checkPermission, checkSelfPermission, checkUriPermission, checkUriPermission, clearWallpaper, createAttributionContext, createConfigurationContext, createContextForSplit, createDeviceProtectedStorageContext, createDisplayContext, createPackageContext, createWindowContext, databaseList, deleteDatabase, deleteFile, deleteSharedPreferences, enforceCallingOrSelfPermission, enforceCallingOrSelfUriPermission, enforceCallingPermission, enforceCallingUriPermission, enforcePermission, enforceUriPermission, enforceUriPermission, fileList, getApplicationContext, getApplicationInfo, getAssets, getAttributionTag, getBaseContext, getCacheDir, getClassLoader, getCodeCacheDir, getContentResolver, getDatabasePath, getDataDir, getDir, getDisplay, getExternalCacheDir, getExternalCacheDirs, getExternalFilesDir, getExternalFilesDirs, getExternalMediaDirs, getFilesDir, getFileStreamPath, getMainExecutor, getMainLooper, getNoBackupFilesDir, getObbDir, getObbDirs, getOpPackageName, getPackageCodePath, getPackageManager, getPackageName, getPackageResourcePath, getResources, getSharedPreferences, getSystemService, getSystemServiceName, getTheme, getWallpaper, getWallpaperDesiredMinimumHeight, getWallpaperDesiredMinimumWidth, grantUriPermission, isDeviceProtectedStorage, isRestricted, moveDatabaseFrom, moveSharedPreferencesFrom, openFileInput, openFileOutput, openOrCreateDatabase, openOrCreateDatabase, peekWallpaper, registerReceiver, registerReceiver, registerReceiver, registerReceiver, removeStickyBroadcast, removeStickyBroadcastAsUser, revokeUriPermission, revokeUriPermission, sendBroadcast, sendBroadcast, sendBroadcastAsUser, sendBroadcastAsUser, sendOrderedBroadcast, sendOrderedBroadcast, sendOrderedBroadcast, sendOrderedBroadcast, sendOrderedBroadcastAsUser, sendStickyBroadcast, sendStickyBroadcastAsUser, sendStickyOrderedBroadcast, sendStickyOrderedBroadcastAsUser, setTheme, setWallpaper, setWallpaper, startActivities, startActivities, startActivity, startActivity, startForegroundService, startInstrumentation, startIntentSender, startIntentSender, startService, stopService, unbindService, unregisterReceiver, updateServiceGroup +bindIsolatedService, bindService, bindService, bindServiceAsUser, checkCallingOrSelfPermission, checkCallingOrSelfUriPermission, checkCallingOrSelfUriPermissions, checkCallingPermission, checkCallingUriPermission, checkCallingUriPermissions, checkPermission, checkSelfPermission, checkUriPermission, checkUriPermission, checkUriPermissions, clearWallpaper, createAttributionContext, createConfigurationContext, createContext, createContextForSplit, createDeviceProtectedStorageContext, createDisplayContext, createPackageContext, createWindowContext, createWindowContext, databaseList, deleteDatabase, deleteFile, deleteSharedPreferences, enforceCallingOrSelfPermission, enforceCallingOrSelfUriPermission, enforceCallingPermission, enforceCallingUriPermission, enforcePermission, enforceUriPermission, enforceUriPermission, fileList, getApplicationContext, getApplicationInfo, getAssets, getAttributionSource, getAttributionTag, getBaseContext, getCacheDir, getClassLoader, getCodeCacheDir, getContentResolver, getDatabasePath, getDataDir, getDir, getDisplay, getExternalCacheDir, getExternalCacheDirs, getExternalFilesDir, getExternalFilesDirs, getExternalMediaDirs, getFilesDir, getFileStreamPath, getMainExecutor, getMainLooper, getNoBackupFilesDir, getObbDir, getObbDirs, getOpPackageName, getPackageCodePath, getPackageManager, getPackageName, getPackageResourcePath, getParams, getResources, getSharedPreferences, getSystemService, getSystemServiceName, getTheme, getWallpaper, getWallpaperDesiredMinimumHeight, getWallpaperDesiredMinimumWidth, grantUriPermission, isDeviceProtectedStorage, isRestricted, isUiContext, moveDatabaseFrom, moveSharedPreferencesFrom, openFileInput, openFileOutput, openOrCreateDatabase, openOrCreateDatabase, peekWallpaper, registerReceiver, registerReceiver, registerReceiver, registerReceiver, removeStickyBroadcast, removeStickyBroadcastAsUser, revokeUriPermission, revokeUriPermission, sendBroadcast, sendBroadcast, sendBroadcastAsUser, sendBroadcastAsUser, sendOrderedBroadcast, sendOrderedBroadcast, sendOrderedBroadcast, sendOrderedBroadcast, sendOrderedBroadcastAsUser, sendStickyBroadcast, sendStickyBroadcast, sendStickyBroadcastAsUser, sendStickyOrderedBroadcast, sendStickyOrderedBroadcastAsUser, setTheme, setWallpaper, setWallpaper, startActivities, startActivities, startActivity, startActivity, startForegroundService, startInstrumentation, startIntentSender, startIntentSender, startService, stopService, unbindService, unregisterReceiver, updateServiceGroup
    • @@ -941,8 +924,7 @@ extends Creates a DownloadService.

      If foregroundNotificationId is FOREGROUND_NOTIFICATION_ID_NONE then the - service will only ever run in the background. No foreground notification will be displayed and - getScheduler() will not be called. + service will only ever run in the background, and no foreground notification will be displayed.

      If foregroundNotificationId is not FOREGROUND_NOTIFICATION_ID_NONE then the service will run in the foreground. The foreground notification will be updated at least as @@ -1502,23 +1484,43 @@ public final @Nullable protected abstract Scheduler getScheduler() -

      Returns a Scheduler to restart the service when requirements allowing downloads to take - place are met. If null, the service will only be restarted if the process is still in - memory when the requirements are met. +
      Returns a Scheduler to restart the service when requirements for downloads to continue + are met. -

      This method is not called for services whose foregroundNotificationId is set to - FOREGROUND_NOTIFICATION_ID_NONE. Such services will only be restarted if the process - is still in memory and considered non-idle, meaning that it's either in the foreground or was - backgrounded within the last few minutes.

      +

      This method is not called on all devices or for all service configurations. When it is + called, it's called only once in the life cycle of the process. If a service has unfinished + downloads that cannot make progress due to unmet requirements, it will behave according to the + first matching case below: + +

        +
      • If the service has foregroundNotificationId set to FOREGROUND_NOTIFICATION_ID_NONE, then this method will not be called. The service will + remain in the background until the downloads are able to continue to completion or the + service is killed by the platform. +
      • If the device API level is less than 31, a Scheduler is returned from this + method, and the returned Scheduler supports all of the requirements that have been specified for downloads to continue, + then the service will stop itself and the Scheduler will be used to restart it in + the foreground when the requirements are met. +
      • If the device API level is less than 31 and either null or a Scheduler + that does not support all of the requirements + is returned from this method, then the service will remain in the foreground until the + downloads are able to continue to completion. +
      • If the device API level is 31 or above, then this method will not be called and the + service will remain in the foreground until the downloads are able to continue to + completion. A Scheduler cannot be used for this case due to Android 12 + foreground service launch restrictions. +
      • +
    - +
    @@ -1535,40 +1538,11 @@ protected abstract  - @@ -199,32 +218,15 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));

    Interface Hierarchy

    @@ -263,6 +255,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  • com.google.android.exoplayer2.C.AudioContentType (implements java.lang.annotation.Annotation)
  • com.google.android.exoplayer2.C.AudioFlags (implements java.lang.annotation.Annotation)
  • com.google.android.exoplayer2.C.AudioFocusGain (implements java.lang.annotation.Annotation)
  • +
  • com.google.android.exoplayer2.C.AudioManagerOffloadMode (implements java.lang.annotation.Annotation)
  • com.google.android.exoplayer2.C.AudioUsage (implements java.lang.annotation.Annotation)
  • com.google.android.exoplayer2.C.BufferFlags (implements java.lang.annotation.Annotation)
  • com.google.android.exoplayer2.C.ColorRange (implements java.lang.annotation.Annotation)
  • @@ -270,6 +263,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  • com.google.android.exoplayer2.C.ColorTransfer (implements java.lang.annotation.Annotation)
  • com.google.android.exoplayer2.C.ContentType (implements java.lang.annotation.Annotation)
  • com.google.android.exoplayer2.C.CryptoMode (implements java.lang.annotation.Annotation)
  • +
  • com.google.android.exoplayer2.C.CryptoType (implements java.lang.annotation.Annotation)
  • com.google.android.exoplayer2.C.DataType (implements java.lang.annotation.Annotation)
  • com.google.android.exoplayer2.C.Encoding (implements java.lang.annotation.Annotation)
  • com.google.android.exoplayer2.C.FormatSupport (implements java.lang.annotation.Annotation)
  • @@ -278,12 +272,16 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  • com.google.android.exoplayer2.C.Projection (implements java.lang.annotation.Annotation)
  • com.google.android.exoplayer2.C.RoleFlags (implements java.lang.annotation.Annotation)
  • com.google.android.exoplayer2.C.SelectionFlags (implements java.lang.annotation.Annotation)
  • +
  • com.google.android.exoplayer2.C.SelectionReason (implements java.lang.annotation.Annotation)
  • com.google.android.exoplayer2.C.StereoMode (implements java.lang.annotation.Annotation)
  • com.google.android.exoplayer2.C.StreamType (implements java.lang.annotation.Annotation)
  • +
  • com.google.android.exoplayer2.C.TrackType (implements java.lang.annotation.Annotation)
  • +
  • com.google.android.exoplayer2.C.VideoChangeFrameRateStrategy (implements java.lang.annotation.Annotation)
  • com.google.android.exoplayer2.C.VideoOutputMode (implements java.lang.annotation.Annotation)
  • com.google.android.exoplayer2.C.VideoScalingMode (implements java.lang.annotation.Annotation)
  • com.google.android.exoplayer2.C.WakeMode (implements java.lang.annotation.Annotation)
  • com.google.android.exoplayer2.DefaultRenderersFactory.ExtensionRendererMode (implements java.lang.annotation.Annotation)
  • +
  • com.google.android.exoplayer2.DeviceInfo.PlaybackType (implements java.lang.annotation.Annotation)
  • com.google.android.exoplayer2.ExoPlaybackException.Type (implements java.lang.annotation.Annotation)
  • com.google.android.exoplayer2.ExoTimeoutException.TimeoutOperation (implements java.lang.annotation.Annotation)
  • com.google.android.exoplayer2.MediaMetadata.FolderType (implements java.lang.annotation.Annotation)
  • @@ -299,8 +297,8 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  • com.google.android.exoplayer2.Player.RepeatMode (implements java.lang.annotation.Annotation)
  • com.google.android.exoplayer2.Player.State (implements java.lang.annotation.Annotation)
  • com.google.android.exoplayer2.Player.TimelineChangeReason (implements java.lang.annotation.Annotation)
  • +
  • com.google.android.exoplayer2.Renderer.MessageType (implements java.lang.annotation.Annotation)
  • com.google.android.exoplayer2.Renderer.State (implements java.lang.annotation.Annotation)
  • -
  • com.google.android.exoplayer2.Renderer.VideoScalingMode (implements java.lang.annotation.Annotation)
  • com.google.android.exoplayer2.RendererCapabilities.AdaptiveSupport (implements java.lang.annotation.Annotation)
  • com.google.android.exoplayer2.RendererCapabilities.Capabilities (implements java.lang.annotation.Annotation)
  • com.google.android.exoplayer2.RendererCapabilities.FormatSupport (implements java.lang.annotation.Annotation)
  • diff --git a/docs/doc/reference/com/google/android/exoplayer2/robolectric/PlaybackOutput.html b/docs/doc/reference/com/google/android/exoplayer2/robolectric/PlaybackOutput.html index eddeb7b254..9e50aee779 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/robolectric/PlaybackOutput.html +++ b/docs/doc/reference/com/google/android/exoplayer2/robolectric/PlaybackOutput.html @@ -169,7 +169,7 @@ implements static PlaybackOutput -register​(SimpleExoPlayer player, +register​(ExoPlayer player, CapturingRenderersFactory capturingRenderersFactory)
    Create an instance that captures the metadata and text output from player and the audio @@ -200,13 +200,13 @@ implements +
    • register

      -
      public static PlaybackOutput register​(SimpleExoPlayer player,
      +
      public static PlaybackOutput register​(ExoPlayer player,
                                             CapturingRenderersFactory capturingRenderersFactory)
      Create an instance that captures the metadata and text output from player and the audio and video output via capturingRenderersFactory. @@ -215,7 +215,7 @@ implements Parameters: -
      player - The SimpleExoPlayer to capture metadata and text output from.
      +
      player - The ExoPlayer to capture metadata and text output from.
      capturingRenderersFactory - The CapturingRenderersFactory to capture audio and video output from.
      Returns:
      diff --git a/docs/doc/reference/com/google/android/exoplayer2/robolectric/TestPlayerRunHelper.html b/docs/doc/reference/com/google/android/exoplayer2/robolectric/TestPlayerRunHelper.html index 6a48791aee..36b4271a78 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/robolectric/TestPlayerRunHelper.html +++ b/docs/doc/reference/com/google/android/exoplayer2/robolectric/TestPlayerRunHelper.html @@ -131,8 +131,8 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
      public class TestPlayerRunHelper
       extends Object
      -
      Helper methods to block the calling thread until the provided SimpleExoPlayer instance - reaches a particular state.
      +
      Helper methods to block the calling thread until the provided ExoPlayer instance reaches + a particular state.
    @@ -156,7 +156,7 @@ extends static void playUntilPosition​(ExoPlayer player, - int windowIndex, + int mediaItemIndex, long positionMs)
    Calls Player.play(), runs tasks of the main Looper until the player @@ -165,11 +165,12 @@ extends static void -playUntilStartOfWindow​(ExoPlayer player, - int windowIndex) +playUntilStartOfMediaItem​(ExoPlayer player, + int mediaItemIndex)
    Calls Player.play(), runs tasks of the main Looper until the player - reaches the specified window or a playback error occurs, and then pauses the player.
    + reaches the specified media item or a playback error occurs, and then pauses the + player.
    @@ -189,8 +190,8 @@ extends static void -runUntilPlaybackState​(Player player, - int expectedState) +runUntilPlaybackState​(Player player, + @com.google.android.exoplayer2.Player.State int expectedState)
    Runs tasks of the main Looper until Player.getPlaybackState() matches the expected state or a playback error occurs.
    @@ -207,10 +208,10 @@ extends static void -runUntilPositionDiscontinuity​(Player player, - int expectedReason) +runUntilPositionDiscontinuity​(Player player, + @com.google.android.exoplayer2.Player.DiscontinuityReason int expectedReason) -
    Runs tasks of the main Looper until Player.Listener.onPositionDiscontinuity(Player.PositionInfo, Player.PositionInfo, int) is +
    Runs tasks of the main Looper until Player.Listener.onPositionDiscontinuity(Player.PositionInfo, Player.PositionInfo, int) is called with the specified Player.DiscontinuityReason or a playback error occurs.
    @@ -224,9 +225,9 @@ extends static void -runUntilRenderedFirstFrame​(SimpleExoPlayer player) +runUntilRenderedFirstFrame​(ExoPlayer player) -
    Runs tasks of the main Looper until the VideoListener.onRenderedFirstFrame() +
    Runs tasks of the main Looper until the Player.Listener.onRenderedFirstFrame() callback is called or a playback error occurs.
    @@ -279,7 +280,7 @@ extends

    Method Detail

    - + - + - +
    - +

    public static interface DefaultMediaSourceFactory.AdsLoaderProvider
    -
    Provides AdsLoader instances for media items that have ad tag URIs.
    +
    Provides AdsLoader instances for media items that have ad tag URIs.
    @@ -151,7 +151,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); AdsLoader getAdsLoader​(MediaItem.AdsConfiguration adsConfiguration) -
    Returns an AdsLoader for the given ads configuration, or null if no ads +
    Returns an AdsLoader for the given ads configuration, or null if no ads loader is available for the given ads configuration.
    @@ -180,11 +180,11 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));

    getAdsLoader

    @Nullable
     AdsLoader getAdsLoader​(MediaItem.AdsConfiguration adsConfiguration)
    -
    Returns an AdsLoader for the given ads configuration, or null if no ads +
    Returns an AdsLoader for the given ads configuration, or null if no ads loader is available for the given ads configuration.

    This method is called each time a MediaSource is created from a MediaItem - that defines an ads configuration.

    + that defines an ads configuration.
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/DefaultMediaSourceFactory.html b/docs/doc/reference/com/google/android/exoplayer2/source/DefaultMediaSourceFactory.html index c88e4910f6..cd59556427 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/DefaultMediaSourceFactory.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/DefaultMediaSourceFactory.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":42}; +var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":42}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -87,7 +87,7 @@ loadScripts(document, 'script'); @@ -142,25 +142,25 @@ implements uri - ends in '.mpd' or if its mimeType field is +
  • DashMediaSource.Factory if the item's uri + ends in '.mpd' or if its mimeType field is explicitly set to MimeTypes.APPLICATION_MPD (Requires the exoplayer-dash module to be added to the app). -
  • HlsMediaSource.Factory if the item's uri - ends in '.m3u8' or if its mimeType field is +
  • HlsMediaSource.Factory if the item's uri + ends in '.m3u8' or if its mimeType field is explicitly set to MimeTypes.APPLICATION_M3U8 (Requires the exoplayer-hls module to be added to the app). -
  • SsMediaSource.Factory if the item's uri - ends in '.ism', '.ism/Manifest' or if its mimeType field is explicitly set to MimeTypes.APPLICATION_SS (Requires the +
  • SsMediaSource.Factory if the item's uri + ends in '.ism', '.ism/Manifest' or if its mimeType field is explicitly set to MimeTypes.APPLICATION_SS (Requires the exoplayer-smoothstreaming module to be added to the app). -
  • ProgressiveMediaSource.Factory serves as a fallback if the item's uri doesn't match one of the above. It tries to infer the +
  • ProgressiveMediaSource.Factory serves as a fallback if the item's uri doesn't match one of the above. It tries to infer the required extractor by using the DefaultExtractorsFactory or the ExtractorsFactory provided in the constructor. An UnrecognizedInputFormatException is thrown if none of the available extractors can read the stream.

    Ad support for media items with ad tag URIs

    -

    To support media items with ads +

    To support media items with ads configuration, setAdsLoaderProvider(com.google.android.exoplayer2.source.DefaultMediaSourceFactory.AdsLoaderProvider) and setAdViewProvider(com.google.android.exoplayer2.ui.AdViewProvider) need to be called to configure the factory with the required providers.

  • @@ -187,13 +187,30 @@ implements static interface  DefaultMediaSourceFactory.AdsLoaderProvider -
    Provides AdsLoader instances for media items that have ad tag URIs.
    +
    Provides AdsLoader instances for media items that have ad tag URIs.
    + +
    + +
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/ForwardingTimeline.html b/docs/doc/reference/com/google/android/exoplayer2/source/ForwardingTimeline.html index feb29f196e..c998caf5f3 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/ForwardingTimeline.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/ForwardingTimeline.html @@ -265,8 +265,8 @@ extends int -getNextWindowIndex​(int windowIndex, - int repeatMode, +getNextWindowIndex​(int windowIndex, + @com.google.android.exoplayer2.Player.RepeatMode int repeatMode, boolean shuffleModeEnabled)
    Returns the index of the window after the window at index windowIndex depending on the @@ -291,8 +291,8 @@ extends int -getPreviousWindowIndex​(int windowIndex, - int repeatMode, +getPreviousWindowIndex​(int windowIndex, + @com.google.android.exoplayer2.Player.RepeatMode int repeatMode, boolean shuffleModeEnabled)
    Returns the index of the window before the window at index windowIndex depending on the @@ -328,7 +328,7 @@ extends Timeline -equals, getNextPeriodIndex, getPeriod, getPeriodByUid, getPeriodPosition, getPeriodPosition, getWindow, hashCode, isEmpty, isLastPeriod, toBundle, toBundle +equals, getNextPeriodIndex, getPeriod, getPeriodByUid, getPeriodPosition, getPeriodPosition, getPeriodPositionUs, getPeriodPositionUs, getWindow, hashCode, isEmpty, isLastPeriod, toBundle, toBundle
    - +
      @@ -375,9 +374,10 @@ public final @DataType int dataType, - int trackType, + @com.google.android.exoplayer2.C.TrackType int trackType, @Nullable Format trackFormat, + @SelectionReason int trackSelectionReason, @Nullable Object trackSelectionData, diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/MediaSource.html b/docs/doc/reference/com/google/android/exoplayer2/source/MediaSource.html index ec0395ff23..34102fdef1 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/MediaSource.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/MediaSource.html @@ -126,8 +126,8 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));

    public interface MediaSource
    -
    Defines and provides media to be played by an ExoPlayer. A - MediaSource has two main responsibilities: +
    Defines and provides media to be played by an ExoPlayer. A MediaSource has two main + responsibilities:
    • To provide the player with a Timeline defining the structure of its media, and to @@ -140,8 +140,8 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); way for the player to load and read the media.
    - All methods are called on the player's internal playback thread, as described in the ExoPlayer Javadoc. They should not be called directly from - application code. Instances can be re-used, but only for one ExoPlayer instance simultaneously.
    + All methods are called on the player's internal playback thread, as described in the ExoPlayer Javadoc. They should not be called directly from application code. Instances can be + re-used, but only for one ExoPlayer instance simultaneously.
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/MediaSourceEventListener.EventDispatcher.html b/docs/doc/reference/com/google/android/exoplayer2/source/MediaSourceEventListener.EventDispatcher.html index 2ea776b688..b06cfc388a 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/MediaSourceEventListener.EventDispatcher.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/MediaSourceEventListener.EventDispatcher.html @@ -221,7 +221,7 @@ extends void -downstreamFormatChanged​(int trackType, +downstreamFormatChanged​(@com.google.android.exoplayer2.C.TrackType int trackType, Format trackFormat, int trackSelectionReason, Object trackSelectionData, @@ -247,9 +247,9 @@ extends void -loadCanceled​(LoadEventInfo loadEventInfo, +loadCanceled​(LoadEventInfo loadEventInfo, int dataType, - int trackType, + @com.google.android.exoplayer2.C.TrackType int trackType, Format trackFormat, int trackSelectionReason, Object trackSelectionData, @@ -277,9 +277,9 @@ extends void -loadCompleted​(LoadEventInfo loadEventInfo, +loadCompleted​(LoadEventInfo loadEventInfo, int dataType, - int trackType, + @com.google.android.exoplayer2.C.TrackType int trackType, Format trackFormat, int trackSelectionReason, Object trackSelectionData, @@ -299,9 +299,9 @@ extends void -loadError​(LoadEventInfo loadEventInfo, +loadError​(LoadEventInfo loadEventInfo, int dataType, - int trackType, + @com.google.android.exoplayer2.C.TrackType int trackType, Format trackFormat, int trackSelectionReason, Object trackSelectionData, @@ -346,9 +346,9 @@ extends void -loadStarted​(LoadEventInfo loadEventInfo, +loadStarted​(LoadEventInfo loadEventInfo, int dataType, - int trackType, + @com.google.android.exoplayer2.C.TrackType int trackType, Format trackFormat, int trackSelectionReason, Object trackSelectionData, @@ -539,7 +539,7 @@ public Dispatches MediaSourceEventListener.onLoadStarted(int, MediaPeriodId, LoadEventInfo, MediaLoadData). - + - + - + diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/ProgressiveMediaSource.Factory.html b/docs/doc/reference/com/google/android/exoplayer2/source/ProgressiveMediaSource.Factory.html index 299689a652..3278ee9cd5 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/ProgressiveMediaSource.Factory.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/ProgressiveMediaSource.Factory.html @@ -87,7 +87,7 @@ loadScripts(document, 'script'); @@ -147,6 +147,23 @@ implements
    @@ -598,7 +615,7 @@ public Returns:
    The new ProgressiveMediaSource.
    Throws:
    -
    NullPointerException - if MediaItem.playbackProperties is null.
    +
    NullPointerException - if MediaItem.localConfiguration is null.
    @@ -670,7 +687,7 @@ public 
  • Summary: 
  • Nested | 
  • -
  • Field | 
  • +
  • Field | 
  • Constr | 
  • Method
  • diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/SilenceMediaSource.Factory.html b/docs/doc/reference/com/google/android/exoplayer2/source/SilenceMediaSource.Factory.html index bd35fb95ea..9edf514063 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/SilenceMediaSource.Factory.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/SilenceMediaSource.Factory.html @@ -195,7 +195,8 @@ extends SilenceMediaSource.Factory setTag​(Object tag) -
    Sets a tag for the media source which will be published in the Timeline of the source as Window#mediaItem.playbackProperties.tag.
    +
    Sets a tag for the media source which will be published in the Timeline of the source + as Window#mediaItem.localConfiguration.tag.
    @@ -247,7 +248,8 @@ extends
  • setDurationUs

    -
    public SilenceMediaSource.Factory setDurationUs​(long durationUs)
    +
    public SilenceMediaSource.Factory setDurationUs​(@IntRange(from=1L)
    +                                                long durationUs)
    Sets the duration of the silent audio. The value needs to be a positive value.
    Parameters:
    @@ -265,7 +267,8 @@ extends setTag
    public SilenceMediaSource.Factory setTag​(@Nullable
                                              Object tag)
    -
    Sets a tag for the media source which will be published in the Timeline of the source as Window#mediaItem.playbackProperties.tag.
    +
    Sets a tag for the media source which will be published in the Timeline of the source + as Window#mediaItem.localConfiguration.tag.
    Parameters:
    tag - A tag for the media source.
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/SinglePeriodTimeline.html b/docs/doc/reference/com/google/android/exoplayer2/source/SinglePeriodTimeline.html index c657561f8c..9052d5822d 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/SinglePeriodTimeline.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/SinglePeriodTimeline.html @@ -387,7 +387,7 @@ extends Timeline -equals, getFirstWindowIndex, getLastWindowIndex, getNextPeriodIndex, getNextWindowIndex, getPeriod, getPeriodByUid, getPeriodPosition, getPeriodPosition, getPreviousWindowIndex, getWindow, hashCode, isEmpty, isLastPeriod, toBundle, toBundle
  • +equals, getFirstWindowIndex, getLastWindowIndex, getNextPeriodIndex, getNextWindowIndex, getPeriod, getPeriodByUid, getPeriodPosition, getPeriodPosition, getPeriodPositionUs, getPeriodPositionUs, getPreviousWindowIndex, getWindow, hashCode, isEmpty, isLastPeriod, toBundle, toBundle
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/SingleSampleMediaSource.Factory.html b/docs/doc/reference/com/google/android/exoplayer2/source/SingleSampleMediaSource.Factory.html index 90da393734..13f64d6167 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/SingleSampleMediaSource.Factory.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/SingleSampleMediaSource.Factory.html @@ -25,8 +25,8 @@ catch(err) { } //--> -var data = {"i0":42,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10}; -var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]}; +var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10}; +var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; var tableTab = "tableTab"; @@ -173,7 +173,7 @@ extends

    Method Summary

    - + @@ -181,46 +181,35 @@ extends - - - - - - - + - + - + - + - + - + @@ -187,13 +189,6 @@ implements -
  • - - -

    Fields inherited from interface android.os.Parcelable

    -CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
  • - @@ -212,7 +207,9 @@ implements - +
    All Methods Instance Methods Concrete Methods Deprecated Methods All Methods Instance Methods Concrete Methods 
    Modifier and Type Method
    SingleSampleMediaSourcecreateMediaSource​(Uri uri, - Format format, - long durationUs) - -
    SingleSampleMediaSourcecreateMediaSource​(MediaItem.Subtitle subtitle, +createMediaSource​(MediaItem.SubtitleConfiguration subtitleConfiguration, long durationUs)
    Returns a new SingleSampleMediaSource using the current parameters.
    SingleSampleMediaSource.Factory setLoadErrorHandlingPolicy​(LoadErrorHandlingPolicy loadErrorHandlingPolicy)
    SingleSampleMediaSource.Factory setTag​(Object tag)
    Sets a tag for the media source which will be published in the Timeline of the source - as Window#mediaItem.playbackProperties.tag.
    + as Window#mediaItem.localConfiguration.tag.
    SingleSampleMediaSource.Factory setTrackId​(String trackId)
    Sets an optional track id to be used.
    SingleSampleMediaSource.Factory setTreatLoadErrorsAsEndOfStream​(boolean treatLoadErrorsAsEndOfStream) @@ -286,7 +275,7 @@ extends public SingleSampleMediaSource.Factory setTag​(@Nullable Object tag)
    Sets a tag for the media source which will be published in the Timeline of the source - as Window#mediaItem.playbackProperties.tag.
    + as Window#mediaItem.localConfiguration.tag.
    Parameters:
    tag - A tag for the media source.
    @@ -348,37 +337,22 @@ extends - - - - - + diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/TrackGroup.html b/docs/doc/reference/com/google/android/exoplayer2/source/TrackGroup.html index dff3b570b3..12aa645ca4 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/TrackGroup.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/TrackGroup.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10}; +var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -130,12 +130,12 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  • All Implemented Interfaces:
    -
    Parcelable
    +
    Bundleable

    public final class TrackGroup
     extends Object
    -implements Parcelable
    +implements Bundleable
    Defines an immutable group of tracks identified by their format identity.
  • @@ -151,11 +151,11 @@ implements -
  • +
  • -

    Nested classes/interfaces inherited from interface android.os.Parcelable

    -Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
  • +

    Nested classes/interfaces inherited from interface com.google.android.exoplayer2.Bundleable

    +Bundleable.Creator<T extends Bundleable> @@ -175,9 +175,11 @@ implements Description
    static Parcelable.Creator<TrackGroup>static Bundleable.Creator<TrackGroup> CREATOR  +
    Object that can restore TrackGroup from a Bundle.
    +
    int TrackGroup​(Format... formats)  +
    Constructs an instance TrackGroup containing the provided formats.
    +
    @@ -233,39 +230,35 @@ implements Description -int -describeContents() -  - - boolean equals​(Object obj)   - + Format getFormat​(int index)
    Returns the format of the track at a given index.
    - + int hashCode()   - + int indexOf​(Format format)
    Returns the index of the track with the given format in the group.
    - -void -writeToParcel​(Parcel dest, - int flags) -  + +Bundle +toBundle() + +
    Returns a Bundle representing the information stored in this object.
    + @@ -327,9 +321,10 @@ implements

    TrackGroup

    public TrackGroup​(Format... formats)
    +
    Constructs an instance TrackGroup containing the provided formats.
    Parameters:
    -
    formats - The track formats. At least one Format must be provided.
    +
    formats - Non empty array of format.
    @@ -404,30 +399,18 @@ implements - - - - + diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/TrackGroupArray.html b/docs/doc/reference/com/google/android/exoplayer2/source/TrackGroupArray.html index 18fb9da3af..ddd782c0ff 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/TrackGroupArray.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/TrackGroupArray.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10}; +var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -130,12 +130,12 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  • All Implemented Interfaces:
    -
    Parcelable
    +
    Bundleable

    public final class TrackGroupArray
     extends Object
    -implements Parcelable
    +implements Bundleable
    An immutable array of TrackGroups.
  • @@ -151,11 +151,11 @@ implements -
  • +
  • -

    Nested classes/interfaces inherited from interface android.os.Parcelable

    -Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
  • +

    Nested classes/interfaces inherited from interface com.google.android.exoplayer2.Bundleable

    +Bundleable.Creator<T extends Bundleable> @@ -175,9 +175,11 @@ implements Description -static Parcelable.Creator<TrackGroupArray> +static Bundleable.Creator<TrackGroupArray> CREATOR -  + +
    Object that can restores a TrackGroupArray from a Bundle.
    + static TrackGroupArray @@ -194,13 +196,6 @@ implements -
  • - - -

    Fields inherited from interface android.os.Parcelable

    -CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
  • - @@ -219,7 +214,9 @@ implements TrackGroupArray​(TrackGroup... trackGroups) -  + +
    Construct a TrackGroupArray from an array of (possibly empty) trackGroups.
    + @@ -240,46 +237,42 @@ implements Description -int -describeContents() -  - - boolean equals​(Object obj)   - + TrackGroup get​(int index)
    Returns the group at a given index.
    - + int hashCode()   - + int indexOf​(TrackGroup group)
    Returns the index of a group within the array.
    - + boolean isEmpty()
    Returns whether this track group array is empty.
    - -void -writeToParcel​(Parcel dest, - int flags) -  + +Bundle +toBundle() + +
    Returns a Bundle representing the information stored in this object.
    + @@ -351,10 +345,7 @@ implements

    TrackGroupArray

    public TrackGroupArray​(TrackGroup... trackGroups)
    -
    -
    Parameters:
    -
    trackGroups - The groups. May be empty.
    -
    +
    Construct a TrackGroupArray from an array of (possibly empty) trackGroups.
    @@ -436,30 +427,18 @@ implements - - - - + diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/ads/AdPlaybackState.AdGroup.html b/docs/doc/reference/com/google/android/exoplayer2/source/ads/AdPlaybackState.AdGroup.html index 69e37b98aa..a31da04f95 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/ads/AdPlaybackState.AdGroup.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/ads/AdPlaybackState.AdGroup.html @@ -228,8 +228,7 @@ implements long timeUs -
    The time of the ad group in the Timeline.Period, in - microseconds, or C.TIME_END_OF_SOURCE to indicate a postroll ad.
    +
    The time of the ad group in the Timeline.Period, in microseconds, or C.TIME_END_OF_SOURCE to indicate a postroll ad.
    @@ -417,8 +416,7 @@ implements

    timeUs

    public final long timeUs
    -
    The time of the ad group in the Timeline.Period, in - microseconds, or C.TIME_END_OF_SOURCE to indicate a postroll ad.
    +
    The time of the ad group in the Timeline.Period, in microseconds, or C.TIME_END_OF_SOURCE to indicate a postroll ad.
    @@ -513,7 +511,8 @@ public final int[] states
    Creates a new ad group with an unspecified number of ads.
    Parameters:
    -
    timeUs - The time of the ad group in the Timeline.Period, in microseconds, or C.TIME_END_OF_SOURCE to indicate a postroll ad.
    +
    timeUs - The time of the ad group in the Timeline.Period, in microseconds, or + C.TIME_END_OF_SOURCE to indicate a postroll ad.
    @@ -544,9 +543,11 @@ public final int[] states
    • getNextAdIndexToPlay

      -
      public int getNextAdIndexToPlay​(int lastPlayedAdIndex)
      +
      public int getNextAdIndexToPlay​(@IntRange(from=-1L)
      +                                int lastPlayedAdIndex)
      Returns the index of the next ad in the ad group that should be played after playing - lastPlayedAdIndex, or count if no later ads should be played.
      + lastPlayedAdIndex
      , or count if no later ads should be played. If no ads have been + played, pass -1 to get the index of the first ad to play.
    @@ -626,6 +627,7 @@ public @CheckResult public AdPlaybackState.AdGroup withAdUri​(Uri uri, + @IntRange(from=0L) int index)
    Returns a new instance with the specified uri set for the specified ad, and the ad marked as AdPlaybackState.AD_STATE_AVAILABLE.
    @@ -640,6 +642,7 @@ public @CheckResult public AdPlaybackState.AdGroup withAdState​(@AdState int state, + @IntRange(from=0L) int index)
    Returns a new instance with the specified ad set to the specified state. The ad specified must currently either be in AdPlaybackState.AD_STATE_UNAVAILABLE or AdPlaybackState.AD_STATE_AVAILABLE. diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/ads/AdPlaybackState.html b/docs/doc/reference/com/google/android/exoplayer2/source/ads/AdPlaybackState.html index 56acc34b48..51526fcf7d 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/ads/AdPlaybackState.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/ads/AdPlaybackState.html @@ -693,8 +693,7 @@ public final Parameters:
    adsId - The opaque identifier for ads with which this instance is associated.
    adGroupTimesUs - The times of ad groups in microseconds, relative to the start of the - Timeline.Period they belong to. A final element with - the value C.TIME_END_OF_SOURCE indicates that there is a postroll ad.
    + Timeline.Period they belong to. A final element with the value C.TIME_END_OF_SOURCE indicates that there is a postroll ad.
    @@ -714,7 +713,8 @@ public final 
  • getAdGroup

    -
    public AdPlaybackState.AdGroup getAdGroup​(int adGroupIndex)
    +
    public AdPlaybackState.AdGroup getAdGroup​(@IntRange(from=0L)
    +                                          int adGroupIndex)
    Returns the specified AdPlaybackState.AdGroup.
  • @@ -769,7 +769,9 @@ public final 
  • isAdInErrorState

    -
    public boolean isAdInErrorState​(int adGroupIndex,
    +
    public boolean isAdInErrorState​(@IntRange(from=0L)
    +                                int adGroupIndex,
    +                                @IntRange(from=0L)
                                     int adIndexInAdGroup)
  • @@ -781,7 +783,8 @@ public final 

    withAdGroupTimeUs

    @CheckResult
    -public AdPlaybackState withAdGroupTimeUs​(int adGroupIndex,
    +public AdPlaybackState withAdGroupTimeUs​(@IntRange(from=0L)
    +                                         int adGroupIndex,
                                              long adGroupTimeUs)
    Returns an instance with the specified ad group time.
    @@ -801,7 +804,8 @@ public 

    withNewAdGroup

    @CheckResult
    -public AdPlaybackState withNewAdGroup​(int adGroupIndex,
    +public AdPlaybackState withNewAdGroup​(@IntRange(from=0L)
    +                                      int adGroupIndex,
                                           long adGroupTimeUs)
    Returns an instance with a new ad group.
    @@ -821,7 +825,9 @@ public 

    withAdCount

    @CheckResult
    -public AdPlaybackState withAdCount​(int adGroupIndex,
    +public AdPlaybackState withAdCount​(@IntRange(from=0L)
    +                                   int adGroupIndex,
    +                                   @IntRange(from=1L)
                                        int adCount)
    Returns an instance with the number of ads in adGroupIndex resolved to adCount. The ad count must be greater than zero.
    @@ -834,7 +840,9 @@ public 

    withAdUri

    @CheckResult
    -public AdPlaybackState withAdUri​(int adGroupIndex,
    +public AdPlaybackState withAdUri​(@IntRange(from=0L)
    +                                 int adGroupIndex,
    +                                 @IntRange(from=0L)
                                      int adIndexInAdGroup,
                                      Uri uri)
    Returns an instance with the specified ad URI.
    @@ -847,7 +855,9 @@ public 

    withPlayedAd

    @CheckResult
    -public AdPlaybackState withPlayedAd​(int adGroupIndex,
    +public AdPlaybackState withPlayedAd​(@IntRange(from=0L)
    +                                    int adGroupIndex,
    +                                    @IntRange(from=0L)
                                         int adIndexInAdGroup)
    Returns an instance with the specified ad marked as played.
    @@ -859,7 +869,9 @@ public 

    withSkippedAd

    @CheckResult
    -public AdPlaybackState withSkippedAd​(int adGroupIndex,
    +public AdPlaybackState withSkippedAd​(@IntRange(from=0L)
    +                                     int adGroupIndex,
    +                                     @IntRange(from=0L)
                                          int adIndexInAdGroup)
    Returns an instance with the specified ad marked as skipped.
    @@ -871,7 +883,9 @@ public 

    withAdLoadError

    @CheckResult
    -public AdPlaybackState withAdLoadError​(int adGroupIndex,
    +public AdPlaybackState withAdLoadError​(@IntRange(from=0L)
    +                                       int adGroupIndex,
    +                                       @IntRange(from=0L)
                                            int adIndexInAdGroup)
    Returns an instance with the specified ad marked as having a load error.
    @@ -883,7 +897,8 @@ public 

    withSkippedAdGroup

    @CheckResult
    -public AdPlaybackState withSkippedAdGroup​(int adGroupIndex)
    +public AdPlaybackState withSkippedAdGroup​(@IntRange(from=0L) + int adGroupIndex)
    Returns an instance with all ads in the specified ad group skipped (except for those already marked as played or in the error state).
    @@ -908,7 +923,8 @@ public 

    withAdDurationsUs

    @CheckResult
    -public AdPlaybackState withAdDurationsUs​(int adGroupIndex,
    +public AdPlaybackState withAdDurationsUs​(@IntRange(from=0L)
    +                                         int adGroupIndex,
                                              long... adDurationsUs)
    Returns an instance with the specified ad durations, in microseconds, in the specified ad group.
    @@ -944,7 +960,8 @@ public 

    withRemovedAdGroupCount

    @CheckResult
    -public AdPlaybackState withRemovedAdGroupCount​(int removedAdGroupCount)
    +public AdPlaybackState withRemovedAdGroupCount​(@IntRange(from=0L) + int removedAdGroupCount)
    Returns an instance with the specified number of removed ad groups. @@ -959,7 +976,8 @@ public 

    withContentResumeOffsetUs

    @CheckResult
    -public AdPlaybackState withContentResumeOffsetUs​(int adGroupIndex,
    +public AdPlaybackState withContentResumeOffsetUs​(@IntRange(from=0L)
    +                                                 int adGroupIndex,
                                                      long contentResumeOffsetUs)
    Returns an instance with the specified AdPlaybackState.AdGroup.contentResumeOffsetUs, in microseconds, for the specified ad group.
    @@ -972,7 +990,8 @@ public 

    withIsServerSideInserted

    @CheckResult
    -public AdPlaybackState withIsServerSideInserted​(int adGroupIndex,
    +public AdPlaybackState withIsServerSideInserted​(@IntRange(from=0L)
    +                                                int adGroupIndex,
                                                     boolean isServerSideInserted)
    Returns an instance with the specified value for AdPlaybackState.AdGroup.isServerSideInserted in the specified ad group.
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/ads/SinglePeriodAdTimeline.html b/docs/doc/reference/com/google/android/exoplayer2/source/ads/SinglePeriodAdTimeline.html index 7bc877dc8c..4a644c4bd8 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/ads/SinglePeriodAdTimeline.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/ads/SinglePeriodAdTimeline.html @@ -253,14 +253,14 @@ extends ForwardingTimeline -getFirstWindowIndex, getIndexOfPeriod, getLastWindowIndex, getNextWindowIndex, getPeriodCount, getPreviousWindowIndex, getUidOfPeriod, getWindow, getWindowCount +getFirstWindowIndex, getIndexOfPeriod, getLastWindowIndex, getNextWindowIndex, getPeriodCount, getPreviousWindowIndex, getUidOfPeriod, getWindow, getWindowCount
    @@ -336,20 +336,20 @@ implements +
    • BundledChunkExtractor

      public BundledChunkExtractor​(Extractor extractor,
      -                             int primaryTrackType,
      +                             @com.google.android.exoplayer2.C.TrackType int primaryTrackType,
                                    Format primaryTrackManifestFormat)
      Creates an instance.
      Parameters:
      extractor - The extractor to wrap.
      -
      primaryTrackType - The type of the primary track. Typically one of the C TRACK_TYPE_* constants.
      +
      primaryTrackType - The type of the primary track.
      primaryTrackManifestFormat - A manifest defined Format whose data should be merged into any sample Format output from the Extractor for the primary track.
      @@ -468,18 +468,17 @@ public public TrackOutput track​(int id, int type) -
      Description copied from interface: ExtractorOutput
      +
      Description copied from interface: ExtractorOutput
      Called by the Extractor to get the TrackOutput for a specific track.

      The same TrackOutput is returned if multiple calls are made with the same id.

      Specified by:
      -
      track in interface ExtractorOutput
      +
      track in interface ExtractorOutput
      Parameters:
      id - A track identifier.
      -
      type - The type of the track. Typically one of the C - TRACK_TYPE_* constants.
      +
      type - The track type.
      Returns:
      The TrackOutput for the given track identifier.
      @@ -494,7 +493,7 @@ public public void endTracks()
      Called when all tracks have been identified, meaning no new trackId values will be - passed to ExtractorOutput.track(int, int).
      + passed to ExtractorOutput.track(int, int).
      Specified by:
      endTracks in interface ExtractorOutput
      diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/chunk/Chunk.html b/docs/doc/reference/com/google/android/exoplayer2/source/chunk/Chunk.html index be9b9b9637..c03339a84d 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/chunk/Chunk.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/chunk/Chunk.html @@ -215,7 +215,7 @@ implements int trackSelectionReason -
      One of the C SELECTION_REASON_* constants if the chunk belongs to a track.
      +
      One of the selection reasons if the chunk belongs to a track.
      @@ -377,10 +377,10 @@ public final int type
      • trackSelectionReason

        -
        public final int trackSelectionReason
        -
        One of the C SELECTION_REASON_* constants if the chunk belongs to a track. - C.SELECTION_REASON_UNKNOWN if the chunk does not belong to a track, or if the selection - reason is unknown.
        +
        @SelectionReason
        +public final int trackSelectionReason
        +
        One of the selection reasons if the chunk belongs to a track. C.SELECTION_REASON_UNKNOWN if the chunk does not belong to a track, or if the selection reason + is unknown.
      @@ -447,6 +447,7 @@ public final @DataType int type, Format trackFormat, + @SelectionReason int trackSelectionReason, @Nullable Object trackSelectionData, diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/chunk/ChunkExtractor.Factory.html b/docs/doc/reference/com/google/android/exoplayer2/source/chunk/ChunkExtractor.Factory.html index 659df88c70..276103876c 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/chunk/ChunkExtractor.Factory.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/chunk/ChunkExtractor.Factory.html @@ -149,7 +149,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); ChunkExtractor -createProgressiveMediaExtractor​(int primaryTrackType, +createProgressiveMediaExtractor​(@com.google.android.exoplayer2.C.TrackType int primaryTrackType, Format representationFormat, boolean enableEventMessageTrack, List<Format> closedCaptionFormats, @@ -175,14 +175,14 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));

      Method Detail

      - +
      • createProgressiveMediaExtractor

        @Nullable
        -ChunkExtractor createProgressiveMediaExtractor​(int primaryTrackType,
        +ChunkExtractor createProgressiveMediaExtractor​(@com.google.android.exoplayer2.C.TrackType int primaryTrackType,
                                                        Format representationFormat,
                                                        boolean enableEventMessageTrack,
                                                        List<Format> closedCaptionFormats,
        @@ -191,7 +191,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
         
        Returns a new ChunkExtractor instance.
        Parameters:
        -
        primaryTrackType - The type of the primary track. One of C.TRACK_TYPE_*.
        +
        primaryTrackType - The type of the primary track.
        representationFormat - The format of the representation to extract from.
        enableEventMessageTrack - Whether to enable the event message track.
        closedCaptionFormats - The Formats of the Closed-Caption tracks.
        diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/chunk/ChunkExtractor.TrackOutputProvider.html b/docs/doc/reference/com/google/android/exoplayer2/source/chunk/ChunkExtractor.TrackOutputProvider.html index ba08fc5c52..ca99f386b0 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/chunk/ChunkExtractor.TrackOutputProvider.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/chunk/ChunkExtractor.TrackOutputProvider.html @@ -153,8 +153,8 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); TrackOutput -track​(int id, - int type) +track​(int id, + @com.google.android.exoplayer2.C.TrackType int type)
        Called to get the TrackOutput for a specific track.
        @@ -176,14 +176,14 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));

        Method Detail

        - +
        • track

          TrackOutput track​(int id,
          -                  int type)
          + @com.google.android.exoplayer2.C.TrackType int type)
        Called to get the TrackOutput for a specific track.

        The same TrackOutput is returned if multiple calls are made with the same @@ -191,8 +191,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));

        Parameters:
        id - A track identifier.
        -
        type - The type of the track. Typically one of the C TRACK_TYPE_* - constants.
        +
        type - The type of the track.
        Returns:
        The TrackOutput for the given track identifier.
        diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/chunk/ChunkSampleStream.html b/docs/doc/reference/com/google/android/exoplayer2/source/chunk/ChunkSampleStream.html index 70678ae3e4..0128a190f8 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/chunk/ChunkSampleStream.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/chunk/ChunkSampleStream.html @@ -205,7 +205,7 @@ implements Description -int +@com.google.android.exoplayer2.C.TrackType int primaryTrackType   @@ -234,7 +234,7 @@ implements Description -ChunkSampleStream​(int primaryTrackType, +ChunkSampleStream​(@com.google.android.exoplayer2.C.TrackType int primaryTrackType, int[] embeddedTrackTypes, Format[] embeddedTrackFormats, T chunkSource, @@ -453,7 +453,7 @@ implements
      • primaryTrackType

        -
        public final int primaryTrackType
        +
        public final @com.google.android.exoplayer2.C.TrackType int primaryTrackType
    • @@ -466,15 +466,15 @@ implements + - +
      • ChunkSampleStream

        -
        public ChunkSampleStream​(int primaryTrackType,
        +
        public ChunkSampleStream​(@com.google.android.exoplayer2.C.TrackType int primaryTrackType,
                                  @Nullable
                                  int[] embeddedTrackTypes,
                                  @Nullable
        @@ -490,8 +490,7 @@ implements Constructs an instance.
         
        Parameters:
        -
        primaryTrackType - The type of the primary track. One of the C - TRACK_TYPE_* constants.
        +
        primaryTrackType - The type of the primary track.
        embeddedTrackTypes - The types of any embedded tracks, or null.
        embeddedTrackFormats - The formats of the embedded tracks, or null.
        chunkSource - A ChunkSource from which chunks to load are obtained.
        diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/chunk/ContainerMediaChunk.html b/docs/doc/reference/com/google/android/exoplayer2/source/chunk/ContainerMediaChunk.html index b875d2f7d9..95ca36b4fc 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/chunk/ContainerMediaChunk.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/chunk/ContainerMediaChunk.html @@ -317,6 +317,7 @@ extends DataSource dataSource, DataSpec dataSpec, Format trackFormat, + @SelectionReason int trackSelectionReason, @Nullable Object trackSelectionData, diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/chunk/DataChunk.html b/docs/doc/reference/com/google/android/exoplayer2/source/chunk/DataChunk.html index 38aacb6ca6..f118ee4cc1 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/chunk/DataChunk.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/chunk/DataChunk.html @@ -277,6 +277,7 @@ extends @DataType int type, Format trackFormat, + @SelectionReason int trackSelectionReason, @Nullable Object trackSelectionData, diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/chunk/InitializationChunk.html b/docs/doc/reference/com/google/android/exoplayer2/source/chunk/InitializationChunk.html index c65a3e6025..1bec691171 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/chunk/InitializationChunk.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/chunk/InitializationChunk.html @@ -266,6 +266,7 @@ extends DataSource dataSource, DataSpec dataSpec, Format trackFormat, + @SelectionReason int trackSelectionReason, @Nullable Object trackSelectionData, diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/chunk/MediaChunk.html b/docs/doc/reference/com/google/android/exoplayer2/source/chunk/MediaChunk.html index 39362613fa..da46a0fc78 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/chunk/MediaChunk.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/chunk/MediaChunk.html @@ -306,6 +306,7 @@ extends DataSource dataSource, DataSpec dataSpec, Format trackFormat, + @SelectionReason int trackSelectionReason, @Nullable Object trackSelectionData, diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/chunk/MediaParserChunkExtractor.html b/docs/doc/reference/com/google/android/exoplayer2/source/chunk/MediaParserChunkExtractor.html index f16a756590..7312e4fa3d 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/chunk/MediaParserChunkExtractor.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/chunk/MediaParserChunkExtractor.html @@ -198,7 +198,7 @@ implements Description -MediaParserChunkExtractor​(int primaryTrackType, +MediaParserChunkExtractor​(@com.google.android.exoplayer2.C.TrackType int primaryTrackType, Format manifestFormat, List<Format> closedCaptionFormats) @@ -304,20 +304,19 @@ implements +
        • MediaParserChunkExtractor

          -
          public MediaParserChunkExtractor​(int primaryTrackType,
          +
          public MediaParserChunkExtractor​(@com.google.android.exoplayer2.C.TrackType int primaryTrackType,
                                            Format manifestFormat,
                                            List<Format> closedCaptionFormats)
          Creates a new instance.
          Parameters:
          -
          primaryTrackType - The type of the primary track, or C.TRACK_TYPE_NONE if there is - no primary track. Must be one of the C.TRACK_TYPE_* constants.
          +
          primaryTrackType - The type of the primary track. C.TRACK_TYPE_NONE if there is no primary track.
          manifestFormat - The chunks Format as obtained from the manifest.
          closedCaptionFormats - A list containing the Formats of the closed-caption tracks in the chunks.
          diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/chunk/SingleSampleMediaChunk.html b/docs/doc/reference/com/google/android/exoplayer2/source/chunk/SingleSampleMediaChunk.html index 7249fd35c0..806a241073 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/chunk/SingleSampleMediaChunk.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/chunk/SingleSampleMediaChunk.html @@ -202,7 +202,7 @@ extends Description -SingleSampleMediaChunk​(DataSource dataSource, +SingleSampleMediaChunk​(DataSource dataSource, DataSpec dataSpec, Format trackFormat, int trackSelectionReason, @@ -210,7 +210,7 @@ extends Format sampleFormat)   @@ -298,7 +298,7 @@ extends +
            @@ -307,13 +307,14 @@ extends DataSource dataSource, DataSpec dataSpec, Format trackFormat, + @SelectionReason int trackSelectionReason, @Nullable Object trackSelectionData, long startTimeUs, long endTimeUs, long chunkIndex, - int trackType, + @com.google.android.exoplayer2.C.TrackType int trackType, Format sampleFormat)
          Parameters:
          @@ -325,8 +326,7 @@ extends C.INDEX_UNSET if it is not known. -
          trackType - The type of the chunk. Typically one of the C TRACK_TYPE_* - constants.
          +
          trackType - The track type of the chunk.
          sampleFormat - The Format of the sample in the chunk.
        • diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/dash/DashChunkSource.Factory.html b/docs/doc/reference/com/google/android/exoplayer2/source/dash/DashChunkSource.Factory.html index 4fb04686e4..715a926983 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/dash/DashChunkSource.Factory.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/dash/DashChunkSource.Factory.html @@ -153,13 +153,13 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); DashChunkSource -createDashChunkSource​(LoaderErrorThrower manifestLoaderErrorThrower, +createDashChunkSource​(LoaderErrorThrower manifestLoaderErrorThrower, DashManifest manifest, BaseUrlExclusionList baseUrlExclusionList, int periodIndex, int[] adaptationSetIndices, ExoTrackSelection trackSelection, - int type, + @com.google.android.exoplayer2.C.TrackType int trackType, long elapsedRealtimeOffsetMs, boolean enableEventMessageTrack, List<Format> closedCaptionFormats, @@ -184,7 +184,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));

          Method Detail

          - +
            @@ -196,7 +196,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); int periodIndex, int[] adaptationSetIndices, ExoTrackSelection trackSelection, - int type, + @com.google.android.exoplayer2.C.TrackType int trackType, long elapsedRealtimeOffsetMs, boolean enableEventMessageTrack, List<Format> closedCaptionFormats, @@ -212,9 +212,11 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
            periodIndex - The index of the corresponding period in the manifest.
            adaptationSetIndices - The indices of the corresponding adaptation sets in the period.
            trackSelection - The track selection.
            +
            trackType - The track type.
            elapsedRealtimeOffsetMs - If known, an estimate of the instantaneous difference between server-side unix time and SystemClock.elapsedRealtime() in milliseconds, - specified as the server's unix time minus the local elapsed time. Or C.TIME_UNSET if unknown.
            + specified as the server's unix time minus the local elapsed time. Or C.TIME_UNSET + if unknown.
            enableEventMessageTrack - Whether to output an event message track.
            closedCaptionFormats - The Formats of closed caption tracks to be output.
            transferListener - The transfer listener which should be informed of any data transfers. diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/dash/DashMediaSource.Factory.html b/docs/doc/reference/com/google/android/exoplayer2/source/dash/DashMediaSource.Factory.html index 07374b8fc0..15130b4b64 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/dash/DashMediaSource.Factory.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/dash/DashMediaSource.Factory.html @@ -87,7 +87,7 @@ loadScripts(document, 'script'); @@ -147,6 +147,23 @@ implements
        @@ -553,7 +571,8 @@ public DashMediaSource.Factory setLivePresentationDelayMs​(long livePresentationDelayMs, boolean overridesManifest)
      • @@ -686,7 +705,7 @@ public Returns:
        The new DashMediaSource.
        Throws:
        -
        NullPointerException - if MediaItem.playbackProperties is null.
        +
        NullPointerException - if MediaItem.localConfiguration is null.
    @@ -758,7 +777,7 @@ public 
  • Summary: 
  • Nested | 
  • -
  • Field | 
  • +
  • Field | 
  • Constr | 
  • Method
  • diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/dash/DashUtil.html b/docs/doc/reference/com/google/android/exoplayer2/source/dash/DashUtil.html index 66e631b456..0426145cf0 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/dash/DashUtil.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/dash/DashUtil.html @@ -371,7 +371,7 @@ public static Parameters:
    dataSource - The source from which the data should be loaded.
    -
    trackType - The type of the representation. Typically one of the C TRACK_TYPE_* constants.
    +
    trackType - The type of the representation. Typically one of the com.google.android.exoplayer2.C TRACK_TYPE_* constants.
    representation - The representation which initialization chunk belongs to.
    baseUrlIndex - The index of the base URL to be picked from the list of base URLs.
    Returns:
    @@ -398,7 +398,7 @@ public static Parameters:
    dataSource - The source from which the data should be loaded.
    -
    trackType - The type of the representation. Typically one of the C TRACK_TYPE_* constants.
    +
    trackType - The type of the representation. Typically one of the com.google.android.exoplayer2.C TRACK_TYPE_* constants.
    representation - The representation which initialization chunk belongs to.
    Returns:
    the sample Format of the given representation.
    @@ -423,7 +423,7 @@ public static Parameters:
    dataSource - The source from which the data should be loaded.
    -
    trackType - The type of the representation. Typically one of the C TRACK_TYPE_* constants.
    +
    trackType - The type of the representation. Typically one of the com.google.android.exoplayer2.C TRACK_TYPE_* constants.
    representation - The representation which initialization chunk belongs to.
    baseUrlIndex - The index of the base URL with which to resolve the request URI.
    Returns:
    @@ -451,7 +451,7 @@ public static Parameters:
    dataSource - The source from which the data should be loaded.
    -
    trackType - The type of the representation. Typically one of the C TRACK_TYPE_* constants.
    +
    trackType - The type of the representation. Typically one of the com.google.android.exoplayer2.C TRACK_TYPE_* constants.
    representation - The representation which initialization chunk belongs to.
    Returns:
    The ChunkIndex of the given representation, or null if no initialization or diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/dash/DefaultDashChunkSource.Factory.html b/docs/doc/reference/com/google/android/exoplayer2/source/dash/DefaultDashChunkSource.Factory.html index 8cfbd412b4..5e3826aff3 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/dash/DefaultDashChunkSource.Factory.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/dash/DefaultDashChunkSource.Factory.html @@ -202,13 +202,13 @@ implements DashChunkSource -createDashChunkSource​(LoaderErrorThrower manifestLoaderErrorThrower, +createDashChunkSource​(LoaderErrorThrower manifestLoaderErrorThrower, DashManifest manifest, BaseUrlExclusionList baseUrlExclusionList, int periodIndex, int[] adaptationSetIndices, ExoTrackSelection trackSelection, - int trackType, + @com.google.android.exoplayer2.C.TrackType int trackType, long elapsedRealtimeOffsetMs, boolean enableEventMessageTrack, List<Format> closedCaptionFormats, @@ -278,7 +278,7 @@ implements ChunkExtractor instances to use for extracting chunks.
    dataSourceFactory - Creates the DataSource to use for downloading chunks.
    -
    maxSegmentsPerLoad - See DefaultDashChunkSource(com.google.android.exoplayer2.source.chunk.ChunkExtractor.Factory, com.google.android.exoplayer2.upstream.LoaderErrorThrower, com.google.android.exoplayer2.source.dash.manifest.DashManifest, com.google.android.exoplayer2.source.dash.BaseUrlExclusionList, int, int[], com.google.android.exoplayer2.trackselection.ExoTrackSelection, int, com.google.android.exoplayer2.upstream.DataSource, long, int, boolean, java.util.List<com.google.android.exoplayer2.Format>, com.google.android.exoplayer2.source.dash.PlayerEmsgHandler.PlayerTrackEmsgHandler).
    +
    maxSegmentsPerLoad - See DefaultDashChunkSource(com.google.android.exoplayer2.source.chunk.ChunkExtractor.Factory, com.google.android.exoplayer2.upstream.LoaderErrorThrower, com.google.android.exoplayer2.source.dash.manifest.DashManifest, com.google.android.exoplayer2.source.dash.BaseUrlExclusionList, int, int[], com.google.android.exoplayer2.trackselection.ExoTrackSelection, @com.google.android.exoplayer2.C.TrackType int, com.google.android.exoplayer2.upstream.DataSource, long, int, boolean, java.util.List<com.google.android.exoplayer2.Format>, com.google.android.exoplayer2.source.dash.PlayerEmsgHandler.PlayerTrackEmsgHandler).
    @@ -292,7 +292,7 @@ implements + - + @@ -342,14 +341,14 @@ extends

    Constructor Detail

    - + @@ -1470,8 +1470,8 @@ protected int parseSelectionFlagsFromRoleDescriptors​(

    parseSelectionFlagsFromDashRoleScheme

    @SelectionFlags
    -protected int parseSelectionFlagsFromDashRoleScheme​(@Nullable
    -                                                    String value)
    +protected @com.google.android.exoplayer2.C.SelectionFlags int parseSelectionFlagsFromDashRoleScheme​(@Nullable + String value) @@ -1481,7 +1481,7 @@ protected int parseSelectionFlagsFromDashRoleScheme​(@Nullable
  • parseRoleFlagsFromRoleDescriptors

    @RoleFlags
    -protected int parseRoleFlagsFromRoleDescriptors​(List<Descriptor> roleDescriptors)
    +protected @com.google.android.exoplayer2.C.RoleFlags int parseRoleFlagsFromRoleDescriptors​(List<Descriptor> roleDescriptors)
  • @@ -1491,7 +1491,7 @@ protected int parseRoleFlagsFromRoleDescriptors​(

    parseRoleFlagsFromAccessibilityDescriptors

    @RoleFlags
    -protected int parseRoleFlagsFromAccessibilityDescriptors​(List<Descriptor> accessibilityDescriptors)
    +protected @com.google.android.exoplayer2.C.RoleFlags int parseRoleFlagsFromAccessibilityDescriptors​(List<Descriptor> accessibilityDescriptors) @@ -1501,7 +1501,7 @@ protected int parseRoleFlagsFromAccessibilityDescriptors​(

    parseRoleFlagsFromProperties

    @RoleFlags
    -protected int parseRoleFlagsFromProperties​(List<Descriptor> accessibilityDescriptors)
    +protected @com.google.android.exoplayer2.C.RoleFlags int parseRoleFlagsFromProperties​(List<Descriptor> accessibilityDescriptors) @@ -1511,8 +1511,8 @@ protected int parseRoleFlagsFromProperties​(

    parseRoleFlagsFromDashRoleScheme

    @RoleFlags
    -protected int parseRoleFlagsFromDashRoleScheme​(@Nullable
    -                                               String value)
    +protected @com.google.android.exoplayer2.C.RoleFlags int parseRoleFlagsFromDashRoleScheme​(@Nullable + String value) @@ -1522,8 +1522,8 @@ protected int parseRoleFlagsFromDashRoleScheme​(@Nullable
  • parseTvaAudioPurposeCsValue

    @RoleFlags
    -protected int parseTvaAudioPurposeCsValue​(@Nullable
    -                                          String value)
    +protected @com.google.android.exoplayer2.C.RoleFlags int parseTvaAudioPurposeCsValue​(@Nullable + String value)
  • diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/dash/offline/DashDownloader.html b/docs/doc/reference/com/google/android/exoplayer2/source/dash/offline/DashDownloader.html index 38834cc617..da11d4a0cf 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/dash/offline/DashDownloader.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/dash/offline/DashDownloader.html @@ -149,7 +149,7 @@ extends Description -HlsMediaPeriod​(HlsExtractorFactory extractorFactory, +HlsMediaPeriod​(HlsExtractorFactory extractorFactory, HlsPlaylistTracker playlistTracker, HlsDataSourceFactory dataSourceFactory, TransferListener mediaTransferListener, @@ -185,7 +185,7 @@ implements Allocator allocator, CompositeSequenceableLoaderFactory compositeSequenceableLoaderFactory, boolean allowChunklessPreparation, - int metadataType, + @com.google.android.exoplayer2.source.hls.HlsMediaSource.MetadataType int metadataType, boolean useSessionKeys)
    Creates an HLS media period.
    @@ -384,7 +384,7 @@ implements +
    @@ -778,7 +794,7 @@ public 
  • Summary: 
  • Nested | 
  • -
  • Field | 
  • +
  • Field | 
  • Constr | 
  • Method
  • diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/hls/HlsMediaSource.MetadataType.html b/docs/doc/reference/com/google/android/exoplayer2/source/hls/HlsMediaSource.MetadataType.html index a7882ab665..e72c27836b 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/hls/HlsMediaSource.MetadataType.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/hls/HlsMediaSource.MetadataType.html @@ -115,6 +115,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    @Documented
     @Retention(SOURCE)
    +@Target(TYPE_USE)
     public static @interface HlsMediaSource.MetadataType
    The types of metadata that can be extracted from HLS streams. @@ -125,7 +126,7 @@ public static @interface HlsMediaSource.MetadataTy
  • HlsMediaSource.METADATA_TYPE_EMSG -

    See HlsMediaSource.Factory.setMetadataType(int).

  • +

    See HlsMediaSource.Factory.setMetadataType(int). diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/hls/offline/HlsDownloader.html b/docs/doc/reference/com/google/android/exoplayer2/source/hls/offline/HlsDownloader.html index 0eb9418bdd..172efd8dad 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/hls/offline/HlsDownloader.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/hls/offline/HlsDownloader.html @@ -149,7 +149,7 @@ extends OutputConsumerAdapterV30() -

    Equivalent to OutputConsumerAdapterV30(primaryTrackManifestFormat= null, primaryTrackType= C.TRACK_TYPE_NONE, + -OutputConsumerAdapterV30​(Format primaryTrackManifestFormat, - int primaryTrackType, +OutputConsumerAdapterV30​(Format primaryTrackManifestFormat, + @com.google.android.exoplayer2.C.TrackType int primaryTrackType, boolean expectDummySeekMap)
    Creates a new instance.
    @@ -324,11 +324,11 @@ implements

    OutputConsumerAdapterV30

    public OutputConsumerAdapterV30()
    -
    Equivalent to OutputConsumerAdapterV30(primaryTrackManifestFormat= null, primaryTrackType= C.TRACK_TYPE_NONE, + - +
      @@ -336,15 +336,14 @@ implements Format primaryTrackManifestFormat, - int primaryTrackType, + @com.google.android.exoplayer2.C.TrackType int primaryTrackType, boolean expectDummySeekMap)
      Creates a new instance.
      Parameters:
      primaryTrackManifestFormat - The manifest-obtained format of the primary track, or null if not applicable.
      -
      primaryTrackType - The type of the primary track, or C.TRACK_TYPE_NONE if there is - no primary track. Must be one of the C.TRACK_TYPE_* constants.
      +
      primaryTrackType - The type of the primary track. C.TRACK_TYPE_NONE if there is no primary track.
      expectDummySeekMap - Whether the output consumer should expect an initial dummy seek map which should be exposed through getDummySeekMap().
      diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/package-summary.html b/docs/doc/reference/com/google/android/exoplayer2/source/package-summary.html index fae543fbd6..b661f639c0 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/package-summary.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/package-summary.html @@ -112,7 +112,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); DefaultMediaSourceFactory.AdsLoaderProvider -
      Provides AdsLoader instances for media items that have ad tag URIs.
      +
      Provides AdsLoader instances for media items that have ad tag URIs.
      @@ -288,7 +288,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); LoopingMediaSource Deprecated. -
      To loop a MediaSource indefinitely, use Player.setRepeatMode(int) +
      To loop a MediaSource indefinitely, use Player.setRepeatMode(int) instead of this class.
      diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/package-tree.html b/docs/doc/reference/com/google/android/exoplayer2/source/package-tree.html index 1bc073bbd3..2f64e1f7de 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/package-tree.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/package-tree.html @@ -168,8 +168,8 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    • com.google.android.exoplayer2.source.SinglePeriodTimeline
    -
  • com.google.android.exoplayer2.source.TrackGroup (implements android.os.Parcelable)
  • -
  • com.google.android.exoplayer2.source.TrackGroupArray (implements android.os.Parcelable)
  • +
  • com.google.android.exoplayer2.source.TrackGroup (implements com.google.android.exoplayer2.Bundleable)
  • +
  • com.google.android.exoplayer2.source.TrackGroupArray (implements com.google.android.exoplayer2.Bundleable)
  • diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/rtsp/RtspMediaSource.Factory.html b/docs/doc/reference/com/google/android/exoplayer2/source/rtsp/RtspMediaSource.Factory.html index d792cd6754..eca7ec1dff 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/rtsp/RtspMediaSource.Factory.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/rtsp/RtspMediaSource.Factory.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":10,"i1":10,"i2":42,"i3":42,"i4":10,"i5":42,"i6":10,"i7":10,"i8":10,"i9":10}; +var data = {"i0":10,"i1":10,"i2":10,"i3":42,"i4":42,"i5":10,"i6":42,"i7":10,"i8":10,"i9":10,"i10":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -87,7 +87,7 @@ loadScripts(document, 'script'); @@ -157,6 +157,23 @@ implements
    @@ -515,7 +558,7 @@ public Returns:
    The new RtspMediaSource.
    Throws:
    -
    NullPointerException - if MediaItem.playbackProperties is null.
    +
    NullPointerException - if MediaItem.localConfiguration is null.
    @@ -571,7 +614,7 @@ public 
  • Summary: 
  • Nested | 
  • -
  • Field | 
  • +
  • Field | 
  • Constr | 
  • Method
  • diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/smoothstreaming/SsMediaSource.Factory.html b/docs/doc/reference/com/google/android/exoplayer2/source/smoothstreaming/SsMediaSource.Factory.html index 27e12c8905..d8c91e621b 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/smoothstreaming/SsMediaSource.Factory.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/smoothstreaming/SsMediaSource.Factory.html @@ -87,7 +87,7 @@ loadScripts(document, 'script'); @@ -147,6 +147,23 @@ implements
    @@ -659,7 +676,7 @@ public Returns:
    The new SsMediaSource.
    Throws:
    -
    NullPointerException - if MediaItem.playbackProperties is null.
    +
    NullPointerException - if MediaItem.localConfiguration is null.
    @@ -731,7 +748,7 @@ public 
  • Summary: 
  • Nested | 
  • -
  • Field | 
  • +
  • Field | 
  • Constr | 
  • Method
  • diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/smoothstreaming/manifest/SsManifest.StreamElement.html b/docs/doc/reference/com/google/android/exoplayer2/source/smoothstreaming/manifest/SsManifest.StreamElement.html index 140f5f1b33..d5fe292c2e 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/smoothstreaming/manifest/SsManifest.StreamElement.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/smoothstreaming/manifest/SsManifest.StreamElement.html @@ -207,7 +207,7 @@ extends   -int +@com.google.android.exoplayer2.C.TrackType int type   @@ -229,9 +229,9 @@ extends Description -StreamElement​(String baseUri, +StreamElement​(String baseUri, String chunkTemplate, - int type, + @com.google.android.exoplayer2.C.TrackType int type, String subType, long timescale, String name, @@ -329,7 +329,7 @@ extends
  • type

    -
    public final int type
    +
    public final @com.google.android.exoplayer2.C.TrackType int type
  • @@ -433,7 +433,7 @@ public final  +
      @@ -441,7 +441,7 @@ public final String baseUri, String chunkTemplate, - int type, + @com.google.android.exoplayer2.C.TrackType int type, String subType, long timescale, String name, diff --git a/docs/doc/reference/com/google/android/exoplayer2/source/smoothstreaming/offline/SsDownloader.html b/docs/doc/reference/com/google/android/exoplayer2/source/smoothstreaming/offline/SsDownloader.html index 73c741b16a..e4974a23d2 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/source/smoothstreaming/offline/SsDownloader.html +++ b/docs/doc/reference/com/google/android/exoplayer2/source/smoothstreaming/offline/SsDownloader.html @@ -149,7 +149,7 @@ extends
      public static final class Action.AddMediaItems
       extends Action
      - +
    @@ -202,11 +202,11 @@ extends protected void -doActionImpl​(SimpleExoPlayer player, +doActionImpl​(ExoPlayer player, DefaultTrackSelector trackSelector, Surface surface) -
    Called by Action.doActionAndScheduleNextImpl(SimpleExoPlayer, DefaultTrackSelector, Surface, + @@ -216,7 +216,7 @@ extends Action -doActionAndScheduleNext, doActionAndScheduleNextImpl +doActionAndScheduleNext, doActionAndScheduleNextImpl
    @@ -201,11 +201,11 @@ extends protected void -doActionImpl​(SimpleExoPlayer player, +doActionImpl​(ExoPlayer player, DefaultTrackSelector trackSelector, Surface surface) -
    Called by Action.doActionAndScheduleNextImpl(SimpleExoPlayer, DefaultTrackSelector, Surface, + @@ -215,7 +215,7 @@ extends Action -doActionAndScheduleNext, doActionAndScheduleNextImpl +doActionAndScheduleNext, doActionAndScheduleNextImpl
    @@ -201,11 +201,11 @@ extends protected void -doActionImpl​(SimpleExoPlayer player, +doActionImpl​(ExoPlayer player, DefaultTrackSelector trackSelector, Surface surface) -
    Called by Action.doActionAndScheduleNextImpl(SimpleExoPlayer, DefaultTrackSelector, Surface, + @@ -215,7 +215,7 @@ extends Action -doActionAndScheduleNext, doActionAndScheduleNextImpl +doActionAndScheduleNext, doActionAndScheduleNextImpl
    @@ -203,11 +203,11 @@ extends protected void -doActionImpl​(SimpleExoPlayer player, +doActionImpl​(ExoPlayer player, DefaultTrackSelector trackSelector, Surface surface) -
    Called by Action.doActionAndScheduleNextImpl(SimpleExoPlayer, DefaultTrackSelector, Surface, + @@ -217,7 +217,7 @@ extends Action -doActionAndScheduleNext, doActionAndScheduleNextImpl +doActionAndScheduleNext, doActionAndScheduleNextImpl
    @@ -203,11 +203,11 @@ extends protected void -doActionImpl​(SimpleExoPlayer player, +doActionImpl​(ExoPlayer player, DefaultTrackSelector trackSelector, Surface surface) -
    Called by Action.doActionAndScheduleNextImpl(SimpleExoPlayer, DefaultTrackSelector, Surface, + @@ -217,7 +217,7 @@ extends Action -doActionAndScheduleNext, doActionAndScheduleNextImpl +doActionAndScheduleNext, doActionAndScheduleNextImpl
    @@ -203,11 +203,11 @@ extends protected void -doActionImpl​(SimpleExoPlayer player, +doActionImpl​(ExoPlayer player, DefaultTrackSelector trackSelector, Surface surface) -
    Called by Action.doActionAndScheduleNextImpl(SimpleExoPlayer, DefaultTrackSelector, Surface, + @@ -217,7 +217,7 @@ extends Action -doActionAndScheduleNext, doActionAndScheduleNextImpl +doActionAndScheduleNext, doActionAndScheduleNextImpl
    @@ -179,7 +179,7 @@ extends SetMediaItems​(String tag, - int windowIndex, + int mediaItemIndex, long positionMs, MediaSource... mediaSources)   @@ -204,11 +204,11 @@ extends protected void -doActionImpl​(SimpleExoPlayer player, +doActionImpl​(ExoPlayer player, DefaultTrackSelector trackSelector, Surface surface) -
    Called by Action.doActionAndScheduleNextImpl(SimpleExoPlayer, DefaultTrackSelector, Surface, + @@ -218,7 +218,7 @@ extends Action -doActionAndScheduleNext, doActionAndScheduleNextImpl +doActionAndScheduleNext, doActionAndScheduleNextImpl
    @@ -203,11 +203,11 @@ extends protected void -doActionImpl​(SimpleExoPlayer player, +doActionImpl​(ExoPlayer player, DefaultTrackSelector trackSelector, Surface surface) -
    Called by Action.doActionAndScheduleNextImpl(SimpleExoPlayer, DefaultTrackSelector, Surface, + @@ -217,7 +217,7 @@ extends Action -doActionAndScheduleNext, doActionAndScheduleNextImpl +doActionAndScheduleNext, doActionAndScheduleNextImpl
    @@ -178,8 +178,8 @@ extends Description -SetRepeatMode​(String tag, - int repeatMode) +SetRepeatMode​(String tag, + @com.google.android.exoplayer2.Player.RepeatMode int repeatMode)   @@ -202,11 +202,11 @@ extends protected void -doActionImpl​(SimpleExoPlayer player, +doActionImpl​(ExoPlayer player, DefaultTrackSelector trackSelector, Surface surface) -
    Called by Action.doActionAndScheduleNextImpl(SimpleExoPlayer, DefaultTrackSelector, Surface, + @@ -216,7 +216,7 @@ extends Action -doActionAndScheduleNext, doActionAndScheduleNextImpl +doActionAndScheduleNext, doActionAndScheduleNextImpl
    @@ -201,11 +201,11 @@ extends protected void -doActionImpl​(SimpleExoPlayer player, +doActionImpl​(ExoPlayer player, DefaultTrackSelector trackSelector, Surface surface) -
    Called by Action.doActionAndScheduleNextImpl(SimpleExoPlayer, DefaultTrackSelector, Surface, + @@ -215,7 +215,7 @@ extends Action -doActionAndScheduleNext, doActionAndScheduleNextImpl +doActionAndScheduleNext, doActionAndScheduleNextImpl
    Specified by:
    @@ -678,9 +678,9 @@ implements
  • buildExoPlayer

    -
    protected SimpleExoPlayer buildExoPlayer​(HostActivity host,
    -                                         Surface surface,
    -                                         MappingTrackSelector trackSelector)
    +
    protected ExoPlayer buildExoPlayer​(HostActivity host,
    +                                   Surface surface,
    +                                   MappingTrackSelector trackSelector)
  • diff --git a/docs/doc/reference/com/google/android/exoplayer2/testutil/ExoPlayerTestRunner.Builder.html b/docs/doc/reference/com/google/android/exoplayer2/testutil/ExoPlayerTestRunner.Builder.html index c672ef49d6..f3208e376e 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/testutil/ExoPlayerTestRunner.Builder.html +++ b/docs/doc/reference/com/google/android/exoplayer2/testutil/ExoPlayerTestRunner.Builder.html @@ -135,7 +135,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    public static final class ExoPlayerTestRunner.Builder
     extends Object
    -
    Builder to set-up a ExoPlayerTestRunner. Default fake implementations will be used for +
    Builder to set-up an ExoPlayerTestRunner. Default fake implementations will be used for unset test properties.
    @@ -187,7 +187,7 @@ extends ExoPlayerTestRunner.Builder -initialSeek​(int windowIndex, +initialSeek​(int mediaItemIndex, long positionMs)
    Seeks before setting the media sources and preparing the player.
    @@ -304,8 +304,7 @@ extends ExoPlayerTestRunner.Builder skipSettingMediaSources() -
    Skips calling ExoPlayer.setMediaSources(List) before - preparing.
    +
    Skips calling ExoPlayer.setMediaSources(List) before preparing.
    @@ -393,12 +392,12 @@ extends
  • initialSeek

    -
    public ExoPlayerTestRunner.Builder initialSeek​(int windowIndex,
    +
    public ExoPlayerTestRunner.Builder initialSeek​(int mediaItemIndex,
                                                    long positionMs)
    Seeks before setting the media sources and preparing the player.
    Parameters:
    -
    windowIndex - The window index to seek to.
    +
    mediaItemIndex - The media item index to seek to.
    positionMs - The position in milliseconds to seek to.
    Returns:
    This builder.
    @@ -448,8 +447,8 @@ extends

    skipSettingMediaSources

    public ExoPlayerTestRunner.Builder skipSettingMediaSources()
    -
    Skips calling ExoPlayer.setMediaSources(List) before - preparing. Calling this method is not allowed after calls to setMediaSources(MediaSource...), setTimeline(Timeline) and/or setManifest(Object).
    +
    Skips calling ExoPlayer.setMediaSources(List) before preparing. Calling this method + is not allowed after calls to setMediaSources(MediaSource...), setTimeline(Timeline) and/or setManifest(Object).
    Returns:
    This builder.
    @@ -585,7 +584,7 @@ extends setActionSchedule
    public ExoPlayerTestRunner.Builder setActionSchedule​(ActionSchedule actionSchedule)
    Sets an ActionSchedule to be run by the test runner. The first action will be - executed immediately before SimpleExoPlayer.prepare().
    + executed immediately before Player.prepare().
  • Parameters:
    actionSchedule - An ActionSchedule to be used by the test runner.
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/testutil/ExoPlayerTestRunner.html b/docs/doc/reference/com/google/android/exoplayer2/testutil/ExoPlayerTestRunner.html index 998861c593..45d546ed4b 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/testutil/ExoPlayerTestRunner.html +++ b/docs/doc/reference/com/google/android/exoplayer2/testutil/ExoPlayerTestRunner.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10}; +var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -130,7 +130,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  • All Implemented Interfaces:
    -
    AudioListener, DeviceListener, MetadataOutput, Player.EventListener, Player.Listener, ActionSchedule.Callback, TextOutput, VideoListener
    +
    Player.EventListener, Player.Listener, ActionSchedule.Callback

    public final class ExoPlayerTestRunner
    @@ -161,7 +161,7 @@ implements static class 
     ExoPlayerTestRunner.Builder
     
    -
    Builder to set-up a ExoPlayerTestRunner.
    +
    Builder to set-up an ExoPlayerTestRunner.
    @@ -216,150 +216,119 @@ implements void -assertMediaItemsTransitionedSame​(MediaItem... mediaItems) +assertNoPositionDiscontinuities() -
    Asserts that the media items reported by Player.Listener.onMediaItemTransition(MediaItem, int) are the same as the provided media - items.
    + void -assertMediaItemsTransitionReasonsEqual​(Integer... reasons) +assertPlaybackStatesEqual​(Integer... states) -
    Asserts that the media item transition reasons reported by Player.Listener.onMediaItemTransition(MediaItem, int) are the same as the provided reasons.
    +
    Asserts that the playback states reported by Player.Listener.onPlaybackStateChanged(int) are equal to the provided playback states.
    void -assertNoPositionDiscontinuities() - - - - - -void -assertPlaybackStatesEqual​(Integer... states) - -
    Asserts that the playback states reported by Player.Listener.onPlaybackStateChanged(int) are equal to the provided playback states.
    - - - -void assertPlayedPeriodIndices​(Integer... periodIndices)
    Asserts that the indices of played periods is equal to the provided list of periods.
    - + void assertPositionDiscontinuityReasonsEqual​(Integer... discontinuityReasons) -
    Asserts that the discontinuity reasons reported by Player.Listener.onPositionDiscontinuity(Player.PositionInfo, Player.PositionInfo, int) are +
    Asserts that the discontinuity reasons reported by Player.Listener.onPositionDiscontinuity(Player.PositionInfo, Player.PositionInfo, int) are equal to the provided values.
    - + void assertTimelineChangeReasonsEqual​(Integer... reasons) -
    Asserts that the timeline change reasons reported by Player.Listener.onTimelineChanged(Timeline, int) are equal to the provided timeline change +
    Asserts that the timeline change reasons reported by Player.Listener.onTimelineChanged(Timeline, int) are equal to the provided timeline change reasons.
    - + void assertTimelinesSame​(Timeline... timelines) -
    Asserts that the timelines reported by Player.Listener.onTimelineChanged(Timeline, int) +
    Asserts that the timelines reported by Player.Listener.onTimelineChanged(Timeline, int) are the same to the provided timelines.
    - -void -assertTrackGroupsEqual​(TrackGroupArray trackGroupArray) - -
    Asserts that the last track group array reported by Player.Listener.onTracksChanged(TrackGroupArray, TrackSelectionArray) is equal to the provided - track group array.
    - - - + ExoPlayerTestRunner blockUntilActionScheduleFinished​(long timeoutMs)
    Blocks the current thread until the action schedule finished.
    - + ExoPlayerTestRunner blockUntilEnded​(long timeoutMs)
    Blocks the current thread until the test runner finishes.
    - + void onActionScheduleFinished()
    Called when action schedule finished executing all its actions.
    - + void -onMediaItemTransition​(MediaItem mediaItem, - int reason) +onMediaItemTransition​(MediaItem mediaItem, + @com.google.android.exoplayer2.Player.MediaItemTransitionReason int reason)
    Called when playback transitions to a media item or starts repeating a media item according to the current repeat mode.
    - + void -onPlaybackStateChanged​(int playbackState) +onPlaybackStateChanged​(@com.google.android.exoplayer2.Player.State int playbackState)
    Called when the value returned from Player.getPlaybackState() changes.
    - + void onPlayerError​(PlaybackException error)
    Called when an error occurs.
    - + void -onPositionDiscontinuity​(Player.PositionInfo oldPosition, +onPositionDiscontinuity​(Player.PositionInfo oldPosition, Player.PositionInfo newPosition, - int reason) + @com.google.android.exoplayer2.Player.DiscontinuityReason int reason)
    Called when a position discontinuity occurs.
    - + void -onTimelineChanged​(Timeline timeline, - int reason) +onTimelineChanged​(Timeline timeline, + @com.google.android.exoplayer2.Player.TimelineChangeReason int reason)
    Called when the timeline has been refreshed.
    - -void -onTracksChanged​(TrackGroupArray trackGroups, - TrackSelectionArray trackSelections) - -
    Called when the available or selected tracks change.
    - - - + ExoPlayerTestRunner start()
    Starts the test runner on its own thread.
    - + ExoPlayerTestRunner start​(boolean doPrepare) @@ -379,21 +348,14 @@ implements Player.EventListener -onLoadingChanged, onMaxSeekToPreviousPositionChanged, onPlayerStateChanged, onPositionDiscontinuity, onSeekProcessed, onStaticMetadataChanged
  • +onLoadingChanged, onMaxSeekToPreviousPositionChanged, onPlayerStateChanged, onPositionDiscontinuity, onSeekProcessed, onTracksChanged, onTrackSelectionParametersChanged - @@ -526,7 +488,7 @@ implements

    assertTimelinesSame

    public void assertTimelinesSame​(Timeline... timelines)
    -
    Asserts that the timelines reported by Player.Listener.onTimelineChanged(Timeline, int) +
    Asserts that the timelines reported by Player.Listener.onTimelineChanged(Timeline, int) are the same to the provided timelines. This assert differs from testing equality by not comparing period ids which may be different due to id mapping of child source period ids.
    @@ -542,39 +504,10 @@ implements

    assertTimelineChangeReasonsEqual

    public void assertTimelineChangeReasonsEqual​(Integer... reasons)
    -
    Asserts that the timeline change reasons reported by Player.Listener.onTimelineChanged(Timeline, int) are equal to the provided timeline change +
    Asserts that the timeline change reasons reported by Player.Listener.onTimelineChanged(Timeline, int) are equal to the provided timeline change reasons.
    - - - - - - - -
      -
    • -

      assertMediaItemsTransitionReasonsEqual

      -
      public void assertMediaItemsTransitionReasonsEqual​(Integer... reasons)
      -
      Asserts that the media item transition reasons reported by Player.Listener.onMediaItemTransition(MediaItem, int) are the same as the provided reasons.
      -
      -
      Parameters:
      -
      reasons - A list of expected transition reasons.
      -
      -
    • -
    @@ -582,22 +515,7 @@ implements

    assertPlaybackStatesEqual

    public void assertPlaybackStatesEqual​(Integer... states)
    -
    Asserts that the playback states reported by Player.Listener.onPlaybackStateChanged(int) are equal to the provided playback states.
    - - - - - - @@ -607,7 +525,7 @@ implements

    assertNoPositionDiscontinuities

    public void assertNoPositionDiscontinuities()
    -
    Asserts that Player.Listener.onPositionDiscontinuity(Player.PositionInfo, + @@ -618,7 +536,7 @@ implements

    assertPositionDiscontinuityReasonsEqual

    public void assertPositionDiscontinuityReasonsEqual​(Integer... discontinuityReasons)
    -
    Asserts that the discontinuity reasons reported by Player.Listener.onPositionDiscontinuity(Player.PositionInfo, Player.PositionInfo, int) are +
    Asserts that the discontinuity reasons reported by Player.Listener.onPositionDiscontinuity(Player.PositionInfo, Player.PositionInfo, int) are equal to the provided values.
    Parameters:
    @@ -643,7 +561,7 @@ implements + - + - - - -
      -
    • -

      onTracksChanged

      -
      public void onTracksChanged​(TrackGroupArray trackGroups,
      -                            TrackSelectionArray trackSelections)
      -
      Description copied from interface: Player.EventListener
      -
      Called when the available or selected tracks change. - -

      Player.EventListener.onEvents(Player, Events) will also be called to report this event along with - other events that happen in the same Looper message queue iteration.

      -
      -
      Specified by:
      -
      onTracksChanged in interface Player.EventListener
      -
      Specified by:
      -
      onTracksChanged in interface Player.Listener
      -
      Parameters:
      -
      trackGroups - The available tracks. Never null, but may be of length zero.
      -
      trackSelections - The selected tracks. Never null, but may contain null elements. A - concrete implementation may include null elements if it has a fixed number of renderer - components, wishes to report a TrackSelection for each of them, and has one or more - renderer components that is not assigned any selected tracks.
      -
      -
    • -
    - +
    + + + + diff --git a/docs/doc/reference/com/google/android/exoplayer2/testutil/FakeExoMediaDrm.LicenseServer.html b/docs/doc/reference/com/google/android/exoplayer2/testutil/FakeExoMediaDrm.LicenseServer.html index 66ed5c64c3..c7c54432bd 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/testutil/FakeExoMediaDrm.LicenseServer.html +++ b/docs/doc/reference/com/google/android/exoplayer2/testutil/FakeExoMediaDrm.LicenseServer.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":9,"i1":10,"i2":10,"i3":10}; +var data = {"i0":9,"i1":10,"i2":10,"i3":10,"i4":10,"i5":9}; var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -183,10 +183,20 @@ implements +ImmutableList<ImmutableList<Byte>> +getReceivedProvisionRequests() +  + + ImmutableList<ImmutableList<DrmInitData.SchemeData>> getReceivedSchemeDatas()   + +static FakeExoMediaDrm.LicenseServer +requiringProvisioningThenAllowingSchemeDatas​(List<DrmInitData.SchemeData>... schemeDatas) +  + + + + + + + + + diff --git a/docs/doc/reference/com/google/android/exoplayer2/testutil/FakeExoMediaDrm.html b/docs/doc/reference/com/google/android/exoplayer2/testutil/FakeExoMediaDrm.html index 795140981e..f04c4224c1 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/testutil/FakeExoMediaDrm.html +++ b/docs/doc/reference/com/google/android/exoplayer2/testutil/FakeExoMediaDrm.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10}; +var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -305,17 +305,18 @@ implements -ExoMediaCrypto -createMediaCrypto​(byte[] sessionId) +CryptoConfig +createCryptoConfig​(byte[] sessionId) -
    Creates an ExoMediaCrypto for a given session.
    +
    Creates a CryptoConfig that can be passed to a compatible decoder to allow decryption + of protected content using the specified session.
    -Class<com.google.android.exoplayer2.testutil.FakeExoMediaDrm.FakeExoMediaCrypto> -getExoMediaCryptoType() +@com.google.android.exoplayer2.C.CryptoType int +getCryptoType() - +
    Returns the type of CryptoConfig instances returned by ExoMediaDrm.createCryptoConfig(byte[]).
    @@ -398,6 +399,14 @@ implements +boolean +requiresSecureDecoder​(byte[] sessionId, + String mimeType) + +
    Returns whether the given session requires use of a secure decoder for the given MIME type.
    + + + void resetProvisioning() @@ -405,7 +414,7 @@ implements + void restoreKeys​(byte[] sessionId, byte[] keySetId) @@ -413,28 +422,28 @@ implements Restores persisted offline keys into a session.
    - + void setOnEventListener​(ExoMediaDrm.OnEventListener listener)
    Sets the listener for DRM events.
    - + void setOnExpirationUpdateListener​(ExoMediaDrm.OnExpirationUpdateListener listener)
    Sets the listener for session expiration events.
    - + void setOnKeyStatusChangeListener​(ExoMediaDrm.OnKeyStatusChangeListener listener)
    Sets the listener for key status change events.
    - + void setPropertyByteArray​(String propertyName, byte[] value) @@ -442,7 +451,7 @@ implements Sets the value of a byte array property.
    - + void setPropertyString​(String propertyName, String value) @@ -450,7 +459,7 @@ implements Sets the value of a string property.
    - + void triggerEvent​(Predicate<byte[]> sessionIdPredicate, int event, @@ -744,8 +753,7 @@ public FakeExoMediaDrm​(int maxConcurrentSessions)
    • provideKeyResponse

      -
      @Nullable
      -public byte[] provideKeyResponse​(byte[] scope,
      +
      public byte[] provideKeyResponse​(byte[] scope,
                                        byte[] response)
                                 throws NotProvisionedException,
                                        DeniedByServerException
      @@ -825,6 +833,26 @@ public byte[] provideKeyResponse​(byte[] scope,
    + + + +
      +
    • +

      requiresSecureDecoder

      +
      public boolean requiresSecureDecoder​(byte[] sessionId,
      +                                     String mimeType)
      +
      Description copied from interface: ExoMediaDrm
      +
      Returns whether the given session requires use of a secure decoder for the given MIME type. + Assumes a license policy that requires the highest level of security supported by the session.
      +
      +
      Specified by:
      +
      requiresSecureDecoder in interface ExoMediaDrm
      +
      Parameters:
      +
      sessionId - The ID of the session.
      +
      mimeType - The content MIME type to query.
      +
      +
    • +
    @@ -971,40 +999,41 @@ public  + - + diff --git a/docs/doc/reference/com/google/android/exoplayer2/testutil/FakeExtractorOutput.html b/docs/doc/reference/com/google/android/exoplayer2/testutil/FakeExtractorOutput.html index 5d69d2361b..aeaab83381 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/testutil/FakeExtractorOutput.html +++ b/docs/doc/reference/com/google/android/exoplayer2/testutil/FakeExtractorOutput.html @@ -244,7 +244,7 @@ implements endTracks()
    Called when all tracks have been identified, meaning no new trackId values will be - passed to ExtractorOutput.track(int, int).
    + passed to ExtractorOutput.track(int, int). @@ -368,18 +368,17 @@ implements public FakeTrackOutput track​(int id, int type) -
    Description copied from interface: ExtractorOutput
    +
    Description copied from interface: ExtractorOutput
    Called by the Extractor to get the TrackOutput for a specific track.

    The same TrackOutput is returned if multiple calls are made with the same id.

    Specified by:
    -
    track in interface ExtractorOutput
    +
    track in interface ExtractorOutput
    Parameters:
    id - A track identifier.
    -
    type - The type of the track. Typically one of the C - TRACK_TYPE_* constants.
    +
    type - The track type.
    Returns:
    The TrackOutput for the given track identifier.
    @@ -394,7 +393,7 @@ implements public void endTracks()
    Called when all tracks have been identified, meaning no new trackId values will be - passed to ExtractorOutput.track(int, int).
    + passed to ExtractorOutput.track(int, int).
    Specified by:
    endTracks in interface ExtractorOutput
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/testutil/FakeMediaChunk.html b/docs/doc/reference/com/google/android/exoplayer2/testutil/FakeMediaChunk.html index 0bbaea92f4..3432d8ac6a 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/testutil/FakeMediaChunk.html +++ b/docs/doc/reference/com/google/android/exoplayer2/testutil/FakeMediaChunk.html @@ -310,6 +310,7 @@ extends Format trackFormat, long startTimeUs, long endTimeUs, + @SelectionReason int selectionReason)
    Creates a fake media chunk.
    @@ -317,7 +318,7 @@ extends Format.
    startTimeUs - The start time of the media, in microseconds.
    endTimeUs - The end time of the media, in microseconds.
    -
    selectionReason - The reason for selecting this format.
    +
    selectionReason - One of the selection reasons.
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/testutil/FakeMediaClockRenderer.html b/docs/doc/reference/com/google/android/exoplayer2/testutil/FakeMediaClockRenderer.html index 5e9896d0f9..748ddb8f5b 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/testutil/FakeMediaClockRenderer.html +++ b/docs/doc/reference/com/google/android/exoplayer2/testutil/FakeMediaClockRenderer.html @@ -165,7 +165,7 @@ implements Renderer -Renderer.State, Renderer.VideoScalingMode, Renderer.WakeupListener +Renderer.MessageType, Renderer.State, Renderer.WakeupListener + +
    • @@ -139,7 +144,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));

    public class StubExoPlayer
    -extends BasePlayer
    +extends StubPlayer
     implements ExoPlayer
    An abstract ExoPlayer implementation that throws UnsupportedOperationException from every method.
    @@ -161,7 +166,7 @@ implements ExoPlayer -ExoPlayer.AudioComponent, ExoPlayer.AudioOffloadListener, ExoPlayer.Builder, ExoPlayer.DeviceComponent, ExoPlayer.MetadataComponent, ExoPlayer.TextComponent, ExoPlayer.VideoComponent +ExoPlayer.AudioComponent, ExoPlayer.AudioOffloadListener, ExoPlayer.Builder, ExoPlayer.DeviceComponent, ExoPlayer.TextComponent, ExoPlayer.VideoComponent @@ -241,49 +246,41 @@ implements void +addAnalyticsListener​(AnalyticsListener listener) + +
    Adds an AnalyticsListener to receive analytics events.
    + + + +void addAudioOffloadListener​(ExoPlayer.AudioOffloadListener listener)
    Adds a listener to receive audio offload events.
    - + void addListener​(Player.EventListener listener)
    Registers a listener to receive events from the player.
    - -void -addListener​(Player.Listener listener) - -
    Registers a listener to receive all events from the player.
    - - void -addMediaItems​(int index, - List<MediaItem> mediaItems) - -
    Adds a list of media items at the given index of the playlist.
    - - - -void addMediaSource​(int index, MediaSource mediaSource)
    Adds a media source at the given index of the playlist.
    - + void addMediaSource​(MediaSource mediaSource)
    Adds a media source to the end of the playlist.
    - + void addMediaSources​(int index, List<MediaSource> mediaSources) @@ -291,546 +288,276 @@ implements Adds a list of media sources at the given index of the playlist. - + void addMediaSources​(List<MediaSource> mediaSources)
    Adds a list of media sources to the end of the playlist.
    + +void +clearAuxEffectInfo() + +
    Detaches any previously attached auxiliary audio effect from the underlying audio track.
    + + void -clearVideoSurface() +clearCameraMotionListener​(CameraMotionListener listener) -
    Clears any Surface, SurfaceHolder, SurfaceView or TextureView - currently set on the player.
    +
    Clears the listener which receives camera motion events if it matches the one passed.
    void -clearVideoSurface​(Surface surface) +clearVideoFrameMetadataListener​(VideoFrameMetadataListener listener) -
    Clears the Surface onto which video is being rendered if it matches the one passed.
    +
    Clears the listener which receives video frame metadata events if it matches the one passed.
    -void -clearVideoSurfaceHolder​(SurfaceHolder surfaceHolder) - -
    Clears the SurfaceHolder that holds the Surface onto which video is being - rendered if it matches the one passed.
    - - - -void -clearVideoSurfaceView​(SurfaceView surfaceView) - -
    Clears the SurfaceView onto which video is being rendered if it matches the one passed.
    - - - -void -clearVideoTextureView​(TextureView textureView) - -
    Clears the TextureView onto which video is being rendered if it matches the one passed.
    - - - PlayerMessage createMessage​(PlayerMessage.Target target)
    Creates a message that can be sent to a PlayerMessage.Target.
    - -void -decreaseDeviceVolume() - -
    Decreases the volume of the device.
    - - - + boolean experimentalIsSleepingForOffload()
    Returns whether the player has paused its main loop to save power in offload scheduling mode.
    - + void experimentalSetOffloadSchedulingEnabled​(boolean offloadSchedulingEnabled)
    Sets whether audio offload scheduling is enabled.
    - -Looper -getApplicationLooper() + +AnalyticsCollector +getAnalyticsCollector() -
    Returns the Looper associated with the application thread that's used to access the - player and on which player events are received.
    +
    Returns the AnalyticsCollector used for collecting analytics events.
    - -AudioAttributes -getAudioAttributes() - -
    Returns the attributes for audio playback.
    - - - + ExoPlayer.AudioComponent getAudioComponent() -
    Returns the component of this player for audio output, or null if audio is not supported.
    +
    Deprecated.
    - -Player.Commands -getAvailableCommands() + +DecoderCounters +getAudioDecoderCounters() -
    Returns the player's currently available Player.Commands.
    +
    Returns DecoderCounters for audio, or null if no audio is being played.
    - -long -getBufferedPosition() + +Format +getAudioFormat() -
    Returns an estimate of the position in the current content window or ad up to which data is - buffered, in milliseconds.
    +
    Returns the audio format currently being played, or null if no audio is being played.
    - + +int +getAudioSessionId() + +
    Returns the audio session identifier, or C.AUDIO_SESSION_ID_UNSET if not set.
    + + + Clock getClock()
    Returns the Clock used for playback.
    - -long -getContentBufferedPosition() - -
    If Player.isPlayingAd() returns true, returns an estimate of the content position in - the current content window up to which data is buffered, in milliseconds.
    - - - -long -getContentPosition() - -
    If Player.isPlayingAd() returns true, returns the content position that will be - played once all ads in the ad group have finished playing, in milliseconds.
    - - - -int -getCurrentAdGroupIndex() - -
    If Player.isPlayingAd() returns true, returns the index of the ad group in the period - currently being played.
    - - - -int -getCurrentAdIndexInAdGroup() - -
    If Player.isPlayingAd() returns true, returns the index of the ad in its ad group.
    - - - -List<Cue> -getCurrentCues() - -
    Returns the current Cues.
    - - - -int -getCurrentPeriodIndex() - -
    Returns the index of the period currently being played.
    - - - -long -getCurrentPosition() - -
    Returns the playback position in the current content window or ad, in milliseconds, or the - prospective position in milliseconds if the current timeline is - empty.
    - - - -List<Metadata> -getCurrentStaticMetadata() + +ExoPlayer.DeviceComponent +getDeviceComponent()
    Deprecated.
    - -Timeline -getCurrentTimeline() - -
    Returns the current Timeline.
    - - - -TrackGroupArray -getCurrentTrackGroups() - -
    Returns the available track groups.
    - - - -TrackSelectionArray -getCurrentTrackSelections() - -
    Returns the current track selections.
    - - - -int -getCurrentWindowIndex() - -
    Returns the index of the current window in the timeline, or the prospective window index if the current timeline is empty.
    - - - -ExoPlayer.DeviceComponent -getDeviceComponent() - -
    Returns the component of this player for playback device, or null if it's not supported.
    - - - -DeviceInfo -getDeviceInfo() - -
    Gets the device information.
    - - - -int -getDeviceVolume() - -
    Gets the current volume of the device.
    - - - -long -getDuration() - -
    Returns the duration of the current content window or ad in milliseconds, or C.TIME_UNSET if the duration is not known.
    - - - -int -getMaxSeekToPreviousPosition() - -
    Returns the maximum position for which Player.seekToPrevious() seeks to the previous window, - in milliseconds.
    - - - -MediaMetadata -getMediaMetadata() - -
    Returns the current combined MediaMetadata, or MediaMetadata.EMPTY if not - supported.
    - - - -ExoPlayer.MetadataComponent -getMetadataComponent() - -
    Returns the component of this player for metadata output, or null if metadata is not supported.
    - - - + boolean getPauseAtEndOfMediaItems()
    Returns whether the player pauses playback at the end of each media item.
    - + Looper getPlaybackLooper()
    Returns the Looper associated with the playback thread.
    - -PlaybackParameters -getPlaybackParameters() - -
    Returns the currently active playback parameters.
    - - - -int -getPlaybackState() - -
    Returns the current playback state of the player.
    - - - -int -getPlaybackSuppressionReason() - -
    Returns the reason why playback is suppressed even though Player.getPlayWhenReady() is - true, or Player.PLAYBACK_SUPPRESSION_REASON_NONE if playback is not suppressed.
    - - - + ExoPlaybackException getPlayerError() -
    Equivalent to Player.getPlayerError(), except the exception is guaranteed to be an - ExoPlaybackException.
    +
    Returns the error that caused playback to fail.
    - -MediaMetadata -getPlaylistMetadata() - -
    Returns the playlist MediaMetadata, as set by Player.setPlaylistMetadata(MediaMetadata), or MediaMetadata.EMPTY if not supported.
    - - - -boolean -getPlayWhenReady() - -
    Whether playback will proceed when Player.getPlaybackState() == Player.STATE_READY.
    - - - + int getRendererCount()
    Returns the number of renderers.
    - + int getRendererType​(int index)
    Returns the track type that the renderer at a given index handles.
    - -int -getRepeatMode() - -
    Returns the current Player.RepeatMode used for playback.
    - - - -long -getSeekBackIncrement() - -
    Returns the Player.seekBack() increment.
    - - - -long -getSeekForwardIncrement() - -
    Returns the Player.seekForward() increment.
    - - - + SeekParameters getSeekParameters()
    Returns the currently active SeekParameters of the player.
    - + boolean -getShuffleModeEnabled() +getSkipSilenceEnabled() -
    Returns whether shuffling of windows is enabled.
    +
    Returns whether skipping silences in the audio stream is enabled.
    - + ExoPlayer.TextComponent getTextComponent() -
    Returns the component of this player for text output, or null if text is not supported.
    +
    Deprecated.
    - -long -getTotalBufferedDuration() - -
    Returns an estimate of the total buffered duration from the current position, in milliseconds.
    - - - + TrackSelector getTrackSelector()
    Returns the track selector that this player uses, or null if track selection is not supported.
    - + +int +getVideoChangeFrameRateStrategy() + + + + + ExoPlayer.VideoComponent getVideoComponent() -
    Returns the component of this player for video output, or null if video is not supported.
    +
    Deprecated.
    - -VideoSize -getVideoSize() + +DecoderCounters +getVideoDecoderCounters() -
    Gets the size of the video.
    +
    Returns DecoderCounters for video, or null if no video is being played.
    - -float -getVolume() + +Format +getVideoFormat() -
    Returns the audio volume, with 0 being silence and 1 being unity gain (signal unchanged).
    +
    Returns the video format currently being played, or null if no video is being played.
    - -void -increaseDeviceVolume() + +int +getVideoScalingMode() -
    Increases the volume of the device.
    +
    Returns the C.VideoScalingMode.
    - -boolean -isDeviceMuted() - -
    Gets whether the device is muted or not.
    - - - -boolean -isLoading() - -
    Whether the player is currently loading the source.
    - - - -boolean -isPlayingAd() - -
    Returns whether the player is currently playing an ad.
    - - - -void -moveMediaItems​(int fromIndex, - int toIndex, - int newIndex) - -
    Moves the media item range to the new index.
    - - - -void -prepare() - -
    Deprecated. - -
    - - - + void prepare​(MediaSource mediaSource) -
    Deprecated. - -
    +
    Deprecated.
    - + void prepare​(MediaSource mediaSource, boolean resetPosition, boolean resetState) -
    Deprecated. - -
    +
    Deprecated.
    - + void -release() +removeAnalyticsListener​(AnalyticsListener listener) -
    Releases the player.
    +
    Removes an AnalyticsListener.
    - + void removeAudioOffloadListener​(ExoPlayer.AudioOffloadListener listener)
    Removes a listener of audio offload events.
    - + void removeListener​(Player.EventListener listener) -
    Unregister a listener registered through Player.addListener(EventListener).
    +
    Unregister a listener registered through ExoPlayer.addListener(EventListener).
    - -void -removeListener​(Player.Listener listener) - -
    Unregister a listener registered through Player.addListener(Listener).
    - - - -void -removeMediaItems​(int fromIndex, - int toIndex) - -
    Removes a range of media items from the playlist.
    - - - + void retry() -
    Deprecated. -
    Use prepare() instead.
    -
    +
    Deprecated.
    - + void -seekTo​(int windowIndex, - long positionMs) +setAudioAttributes​(AudioAttributes audioAttributes, + boolean handleAudioFocus) -
    Seeks to a position specified in milliseconds in the specified window.
    +
    Sets the attributes for audio playback, used by the underlying audio track.
    - + void -setDeviceMuted​(boolean muted) +setAudioSessionId​(int audioSessionId) -
    Sets the mute state of the device.
    +
    Sets the ID of the audio session to attach to the underlying AudioTrack.
    - + void -setDeviceVolume​(int volume) +setAuxEffectInfo​(AuxEffectInfo auxEffectInfo) -
    Sets the volume of the device.
    +
    Sets information on an auxiliary audio effect to attach to the underlying audio track.
    - + +void +setCameraMotionListener​(CameraMotionListener listener) + +
    Sets a listener of camera motion events.
    + + + void setForegroundMode​(boolean foregroundMode) @@ -838,24 +565,22 @@ implements + void -setMediaItems​(List<MediaItem> mediaItems, - boolean resetPosition) +setHandleAudioBecomingNoisy​(boolean handleAudioBecomingNoisy) -
    Clears the playlist and adds the specified MediaItems.
    +
    Sets whether the player should pause automatically when audio is rerouted from a headset to + device speakers.
    - + void -setMediaItems​(List<MediaItem> mediaItems, - int startWindowIndex, - long startPositionMs) +setHandleWakeLock​(boolean handleWakeLock) -
    Clears the playlist and adds the specified MediaItems.
    +
    Deprecated.
    - + void setMediaSource​(MediaSource mediaSource) @@ -863,7 +588,7 @@ implements + void setMediaSource​(MediaSource mediaSource, boolean resetPosition) @@ -871,7 +596,7 @@ implements Clears the playlist and adds the specified MediaSource. - + void setMediaSource​(MediaSource mediaSource, long startPositionMs) @@ -879,7 +604,7 @@ implements Clears the playlist and adds the specified MediaSource. - + void setMediaSources​(List<MediaSource> mediaSources) @@ -887,7 +612,7 @@ implements + void setMediaSources​(List<MediaSource> mediaSources, boolean resetPosition) @@ -895,119 +620,100 @@ implements Clears the playlist and adds the specified MediaSources. - + void setMediaSources​(List<MediaSource> mediaSources, - int startWindowIndex, + int startMediaItemIndex, long startPositionMs)
    Clears the playlist and adds the specified MediaSources.
    - + void setPauseAtEndOfMediaItems​(boolean pauseAtEndOfMediaItems)
    Sets whether to pause playback at the end of each media item.
    - + void -setPlaybackParameters​(PlaybackParameters playbackParameters) +setPriorityTaskManager​(PriorityTaskManager priorityTaskManager) -
    Attempts to set the playback parameters.
    +
    Sets a PriorityTaskManager, or null to clear a previously set priority task manager.
    - -void -setPlaylistMetadata​(MediaMetadata mediaMetadata) - -
    Sets the playlist MediaMetadata.
    - - - -void -setPlayWhenReady​(boolean playWhenReady) - -
    Sets whether playback should proceed when Player.getPlaybackState() == Player.STATE_READY.
    - - - -void -setRepeatMode​(int repeatMode) - -
    Sets the Player.RepeatMode to be used for playback.
    - - - + void setSeekParameters​(SeekParameters seekParameters)
    Sets the parameters that control how seek operations are performed.
    - -void -setShuffleModeEnabled​(boolean shuffleModeEnabled) - -
    Sets whether shuffling of windows is enabled.
    - - - + void setShuffleOrder​(ShuffleOrder shuffleOrder)
    Sets the shuffle order.
    - + void -setVideoSurface​(Surface surface) +setSkipSilenceEnabled​(boolean skipSilenceEnabled) -
    Sets the Surface onto which video will be rendered.
    +
    Sets whether skipping silences in the audio stream is enabled.
    - + void -setVideoSurfaceHolder​(SurfaceHolder surfaceHolder) +setThrowsWhenUsingWrongThread​(boolean throwsWhenUsingWrongThread) -
    Sets the SurfaceHolder that holds the Surface onto which video will be - rendered.
    +
    Deprecated.
    - + void -setVideoSurfaceView​(SurfaceView surfaceView) +setVideoChangeFrameRateStrategy​(int videoChangeFrameRateStrategy) -
    Sets the SurfaceView onto which video will be rendered.
    +
    Sets a C.VideoChangeFrameRateStrategy that will be used by the player when provided + with a video output Surface.
    - + void -setVideoTextureView​(TextureView textureView) +setVideoFrameMetadataListener​(VideoFrameMetadataListener listener) -
    Sets the TextureView onto which video will be rendered.
    +
    Sets a listener to receive video frame metadata events.
    - + void -setVolume​(float audioVolume) +setVideoScalingMode​(int videoScalingMode) -
    Sets the audio volume, with 0 being silence and 1 being unity gain (signal unchanged).
    + - + void -stop​(boolean reset) -  +setWakeMode​(int wakeMode) + +
    Sets how the player should keep the device awake for playback when the screen is off.
    + + @@ -1064,9 +770,9 @@ implements
  • getAudioComponent

    -
    public ExoPlayer.AudioComponent getAudioComponent()
    -
    Description copied from interface: ExoPlayer
    -
    Returns the component of this player for audio output, or null if audio is not supported.
    +
    @Deprecated
    +public ExoPlayer.AudioComponent getAudioComponent()
    +
    Deprecated.
    Specified by:
    getAudioComponent in interface ExoPlayer
    @@ -1079,9 +785,9 @@ implements
  • getVideoComponent

    -
    public ExoPlayer.VideoComponent getVideoComponent()
    -
    Description copied from interface: ExoPlayer
    -
    Returns the component of this player for video output, or null if video is not supported.
    +
    @Deprecated
    +public ExoPlayer.VideoComponent getVideoComponent()
    +
    Deprecated.
    Specified by:
    getVideoComponent in interface ExoPlayer
    @@ -1094,39 +800,24 @@ implements
  • getTextComponent

    -
    public ExoPlayer.TextComponent getTextComponent()
    -
    Description copied from interface: ExoPlayer
    -
    Returns the component of this player for text output, or null if text is not supported.
    +
    @Deprecated
    +public ExoPlayer.TextComponent getTextComponent()
    +
    Deprecated.
    Specified by:
    getTextComponent in interface ExoPlayer
  • - - - -
    • getDeviceComponent

      -
      public ExoPlayer.DeviceComponent getDeviceComponent()
      -
      Description copied from interface: ExoPlayer
      -
      Returns the component of this player for playback device, or null if it's not supported.
      +
      @Deprecated
      +public ExoPlayer.DeviceComponent getDeviceComponent()
      +
      Deprecated.
      Specified by:
      getDeviceComponent in interface ExoPlayer
      @@ -1148,22 +839,6 @@ implements - - -
        -
      • -

        getApplicationLooper

        -
        public Looper getApplicationLooper()
        -
        Description copied from interface: Player
        -
        Returns the Looper associated with the application thread that's used to access the - player and on which player events are received.
        -
        -
        Specified by:
        -
        getApplicationLooper in interface Player
        -
        -
      • -
      @@ -1179,27 +854,6 @@ implements - - -
        -
      • -

        addListener

        -
        public void addListener​(Player.Listener listener)
        -
        Description copied from interface: Player
        -
        Registers a listener to receive all events from the player. - -

        The listener's methods will be called on the thread that was used to construct the player. - However, if the thread used to construct the player does not have a Looper, then the - listener will be called on the main thread.

        -
        -
        Specified by:
        -
        addListener in interface Player
        -
        Parameters:
        -
        listener - The listener to register.
        -
        -
      • -
      @@ -1207,38 +861,18 @@ implements

      addListener

      public void addListener​(Player.EventListener listener)
      -
      Description copied from interface: Player
      +
      Description copied from interface: ExoPlayer
      Registers a listener to receive events from the player. -

      The listener's methods will be called on the thread that was used to construct the player. - However, if the thread used to construct the player does not have a Looper, then the - listener will be called on the main thread.

      +

      The listener's methods will be called on the thread associated with Player.getApplicationLooper().

      Specified by:
      -
      addListener in interface Player
      +
      addListener in interface ExoPlayer
      Parameters:
      listener - The listener to register.
    - - - -
      -
    • -

      removeListener

      -
      public void removeListener​(Player.Listener listener)
      -
      Description copied from interface: Player
      -
      Unregister a listener registered through Player.addListener(Listener). The listener will no - longer receive events.
      -
      -
      Specified by:
      -
      removeListener in interface Player
      -
      Parameters:
      -
      listener - The listener to unregister.
      -
      -
    • -
    @@ -1246,12 +880,12 @@ implements

    removeListener

    public void removeListener​(Player.EventListener listener)
    -
    Description copied from interface: Player
    -
    Unregister a listener registered through Player.addListener(EventListener). The listener will +
    Description copied from interface: ExoPlayer
    +
    Unregister a listener registered through ExoPlayer.addListener(EventListener). The listener will no longer receive events from the player.
    Specified by:
    -
    removeListener in interface Player
    +
    removeListener in interface ExoPlayer
    Parameters:
    listener - The listener to unregister.
    @@ -1291,44 +925,52 @@ implements + - + + + + + @@ -1339,14 +981,20 @@ public int getPlaybackSuppressionReason()
  • getPlayerError

    public ExoPlaybackException getPlayerError()
    -
    Description copied from interface: ExoPlayer
    -
    Equivalent to Player.getPlayerError(), except the exception is guaranteed to be an - ExoPlaybackException.
    +
    Description copied from interface: Player
    +
    Returns the error that caused playback to fail. This is the same error that will have been + reported via Player.Listener.onPlayerError(PlaybackException) at the time of failure. It can + be queried using this method until the player is re-prepared. + +

    Note that this method will always return null if Player.getPlaybackState() is not + Player.STATE_IDLE.

    Specified by:
    getPlayerError in interface ExoPlayer
    Specified by:
    getPlayerError in interface Player
    +
    Overrides:
    +
    getPlayerError in class StubPlayer
    Returns:
    The error, or null.
    See Also:
    @@ -1362,34 +1010,13 @@ public int getPlaybackSuppressionReason()

    retry

    @Deprecated
     public void retry()
    -
    Deprecated. -
    Use prepare() instead.
    -
    +
    Deprecated.
    Specified by:
    retry in interface ExoPlayer
  • - - - - @@ -1398,9 +1025,7 @@ public void prepare()

    prepare

    @Deprecated
     public void prepare​(MediaSource mediaSource)
    -
    Deprecated. - -
    +
    Deprecated.
    Specified by:
    prepare in interface ExoPlayer
    @@ -1417,61 +1042,13 @@ public void prepare​(MediaSource mediaSource, boolean resetPosition, boolean resetState) -
    Deprecated. - -
    +
    Deprecated.
    Specified by:
    prepare in interface ExoPlayer
  • - - - - - - - -
      -
    • -

      setMediaItems

      -
      public void setMediaItems​(List<MediaItem> mediaItems,
      -                          int startWindowIndex,
      -                          long startPositionMs)
      -
      Description copied from interface: Player
      -
      Clears the playlist and adds the specified MediaItems.
      -
      -
      Specified by:
      -
      setMediaItems in interface Player
      -
      Parameters:
      -
      mediaItems - The new MediaItems.
      -
      startWindowIndex - The window index to start playback from. If C.INDEX_UNSET is - passed, the current position is not reset.
      -
      startPositionMs - The position in milliseconds to start playback from. If C.TIME_UNSET is passed, the default position of the given window is used. In any case, if - startWindowIndex is set to C.INDEX_UNSET, this parameter is ignored and the - position is not reset at all.
      -
      -
    • -
    @@ -1525,7 +1102,7 @@ public void prepare​(Parameters:
    mediaSource - The new MediaSource.
    resetPosition - Whether the playback position should be reset to the default position. If - false, playback will start from the position defined by Player.getCurrentWindowIndex() + false, playback will start from the position defined by Player.getCurrentMediaItemIndex() and Player.getCurrentPosition().
  • @@ -1565,7 +1142,7 @@ public void prepare​(mediaSources - The new MediaSources.
    resetPosition - Whether the playback position should be reset to the default position in the first Timeline.Window. If false, playback will start from the position defined - by Player.getCurrentWindowIndex() and Player.getCurrentPosition().
    + by Player.getCurrentMediaItemIndex() and Player.getCurrentPosition().
    @@ -1576,7 +1153,7 @@ public void prepare​(

    setMediaSources

    public void setMediaSources​(List<MediaSource> mediaSources,
    -                            int startWindowIndex,
    +                            int startMediaItemIndex,
                                 long startPositionMs)
    Description copied from interface: ExoPlayer
    Clears the playlist and adds the specified MediaSources.
    @@ -1585,31 +1162,10 @@ public void prepare​(setMediaSources in interface ExoPlayer
    Parameters:
    mediaSources - The new MediaSources.
    -
    startWindowIndex - The window index to start playback from. If C.INDEX_UNSET is - passed, the current position is not reset.
    -
    startPositionMs - The position in milliseconds to start playback from. If C.TIME_UNSET is passed, the default position of the given window is used. In any case, if - startWindowIndex is set to C.INDEX_UNSET, this parameter is ignored and the - position is not reset at all.
    -
    - - - - - -
      -
    • -

      addMediaItems

      -
      public void addMediaItems​(int index,
      -                          List<MediaItem> mediaItems)
      -
      Description copied from interface: Player
      -
      Adds a list of media items at the given index of the playlist.
      -
      -
      Specified by:
      -
      addMediaItems in interface Player
      -
      Parameters:
      -
      index - The index at which to add the media items. If the index is larger than the size of - the playlist, the media items are added to the end of the playlist.
      -
      mediaItems - The MediaItems to add.
      +
      startMediaItemIndex - The media item index to start playback from. If C.INDEX_UNSET is passed, the current position is not reset.
      +
      startPositionMs - The position in milliseconds to start playback from. If C.TIME_UNSET is passed, the default position of the given media item is used. In any case, + if startMediaItemIndex is set to C.INDEX_UNSET, this parameter is ignored + and the position is not reset at all.
    @@ -1685,153 +1241,6 @@ public void prepare​( - - - -
      -
    • -

      moveMediaItems

      -
      public void moveMediaItems​(int fromIndex,
      -                           int toIndex,
      -                           int newIndex)
      -
      Description copied from interface: Player
      -
      Moves the media item range to the new index.
      -
      -
      Specified by:
      -
      moveMediaItems in interface Player
      -
      Parameters:
      -
      fromIndex - The start of the range to move.
      -
      toIndex - The first item not to be included in the range (exclusive).
      -
      newIndex - The new index of the first media item of the range. If the new index is larger - than the size of the remaining playlist after removing the range, the range is moved to the - end of the playlist.
      -
      -
    • -
    - - - -
      -
    • -

      removeMediaItems

      -
      public void removeMediaItems​(int fromIndex,
      -                             int toIndex)
      -
      Description copied from interface: Player
      -
      Removes a range of media items from the playlist.
      -
      -
      Specified by:
      -
      removeMediaItems in interface Player
      -
      Parameters:
      -
      fromIndex - The index at which to start removing media items.
      -
      toIndex - The index of the first item to be kept (exclusive). If the index is larger than - the size of the playlist, media items to the end of the playlist are removed.
      -
      -
    • -
    - - - - - - - -
      -
    • -

      setPlayWhenReady

      -
      public void setPlayWhenReady​(boolean playWhenReady)
      -
      Description copied from interface: Player
      -
      Sets whether playback should proceed when Player.getPlaybackState() == Player.STATE_READY. - -

      If the player is already in the ready state then this method pauses and resumes playback.

      -
      -
      Specified by:
      -
      setPlayWhenReady in interface Player
      -
      Parameters:
      -
      playWhenReady - Whether playback should proceed when ready.
      -
      -
    • -
    - - - - - - - -
      -
    • -

      setRepeatMode

      -
      public void setRepeatMode​(@RepeatMode
      -                          int repeatMode)
      -
      Description copied from interface: Player
      -
      Sets the Player.RepeatMode to be used for playback.
      -
      -
      Specified by:
      -
      setRepeatMode in interface Player
      -
      Parameters:
      -
      repeatMode - The repeat mode.
      -
      -
    • -
    - - - - @@ -1849,172 +1258,281 @@ public void prepare​( - +
    • -

      setShuffleModeEnabled

      -
      public void setShuffleModeEnabled​(boolean shuffleModeEnabled)
      -
      Description copied from interface: Player
      -
      Sets whether shuffling of windows is enabled.
      -
      -
      Specified by:
      -
      setShuffleModeEnabled in interface Player
      -
      Parameters:
      -
      shuffleModeEnabled - Whether shuffling is enabled.
      -
      -
    • -
    - - - - - - - - - - - -
      -
    • -

      seekTo

      -
      public void seekTo​(int windowIndex,
      -                   long positionMs)
      -
      Description copied from interface: Player
      -
      Seeks to a position specified in milliseconds in the specified window.
      -
      -
      Specified by:
      -
      seekTo in interface Player
      -
      Parameters:
      -
      windowIndex - The index of the window.
      -
      positionMs - The seek position in the specified window, or C.TIME_UNSET to seek to - the window's default position.
      -
      -
    • -
    - - - - - - - - - - - - - - - -
      -
    • -

      setPlaybackParameters

      -
      public void setPlaybackParameters​(PlaybackParameters playbackParameters)
      -
      Description copied from interface: Player
      -
      Attempts to set the playback parameters. Passing PlaybackParameters.DEFAULT resets the - player to the default, which means there is no speed or pitch adjustment. +

      setAudioAttributes

      +
      public void setAudioAttributes​(AudioAttributes audioAttributes,
      +                               boolean handleAudioFocus)
      +
      Description copied from interface: ExoPlayer
      +
      Sets the attributes for audio playback, used by the underlying audio track. If not set, the + default audio attributes will be used. They are suitable for general media playback. -

      Playback parameters changes may cause the player to buffer. Player.Listener.onPlaybackParametersChanged(PlaybackParameters) will be called whenever the currently - active playback parameters change.

      +

      Setting the audio attributes during playback may introduce a short gap in audio output as + the audio track is recreated. A new audio session id will also be generated. + +

      If tunneling is enabled by the track selector, the specified audio attributes will be + ignored, but they will take effect if audio is later played without tunneling. + +

      If the device is running a build before platform API version 21, audio attributes cannot be + set directly on the underlying audio track. In this case, the usage will be mapped onto an + equivalent stream type using Util.getStreamTypeForAudioUsage(int). + +

      If audio focus should be handled, the AudioAttributes.usage must be C.USAGE_MEDIA or C.USAGE_GAME. Other usages will throw an IllegalArgumentException.

      Specified by:
      -
      setPlaybackParameters in interface Player
      +
      setAudioAttributes in interface ExoPlayer
      Parameters:
      -
      playbackParameters - The playback parameters.
      +
      audioAttributes - The attributes to use for audio playback.
      +
      handleAudioFocus - True if the player should handle audio focus, false otherwise.
    - + + + + + + + + +
      +
    • +

      setAuxEffectInfo

      +
      public void setAuxEffectInfo​(AuxEffectInfo auxEffectInfo)
      +
      Description copied from interface: ExoPlayer
      +
      Sets information on an auxiliary audio effect to attach to the underlying audio track.
      +
      +
      Specified by:
      +
      setAuxEffectInfo in interface ExoPlayer
      +
      +
    • +
    + + + +
      +
    • +

      clearAuxEffectInfo

      +
      public void clearAuxEffectInfo()
      +
      Description copied from interface: ExoPlayer
      +
      Detaches any previously attached auxiliary audio effect from the underlying audio track.
      +
      +
      Specified by:
      +
      clearAuxEffectInfo in interface ExoPlayer
      +
      +
    • +
    + + + +
      +
    • +

      setSkipSilenceEnabled

      +
      public void setSkipSilenceEnabled​(boolean skipSilenceEnabled)
      +
      Description copied from interface: ExoPlayer
      +
      Sets whether skipping silences in the audio stream is enabled.
      +
      +
      Specified by:
      +
      setSkipSilenceEnabled in interface ExoPlayer
      +
      Parameters:
      +
      skipSilenceEnabled - Whether skipping silences in the audio stream is enabled.
      +
      +
    • +
    + + + +
      +
    • +

      getSkipSilenceEnabled

      +
      public boolean getSkipSilenceEnabled()
      +
      Description copied from interface: ExoPlayer
      +
      Returns whether skipping silences in the audio stream is enabled.
      +
      +
      Specified by:
      +
      getSkipSilenceEnabled in interface ExoPlayer
      +
      +
    • +
    + + + + + + + + + + + + + + + + + + + +
      +
    • +

      setVideoFrameMetadataListener

      +
      public void setVideoFrameMetadataListener​(VideoFrameMetadataListener listener)
      +
      Description copied from interface: ExoPlayer
      +
      Sets a listener to receive video frame metadata events. + +

      This method is intended to be called by the same component that sets the Surface + onto which video will be rendered. If using ExoPlayer's standard UI components, this method + should not be called directly from application code.

      +
      +
      Specified by:
      +
      setVideoFrameMetadataListener in interface ExoPlayer
      +
      Parameters:
      +
      listener - The listener.
      +
      +
    • +
    + + + +
      +
    • +

      clearVideoFrameMetadataListener

      +
      public void clearVideoFrameMetadataListener​(VideoFrameMetadataListener listener)
      +
      Description copied from interface: ExoPlayer
      +
      Clears the listener which receives video frame metadata events if it matches the one passed. + Else does nothing.
      +
      +
      Specified by:
      +
      clearVideoFrameMetadataListener in interface ExoPlayer
      +
      Parameters:
      +
      listener - The listener to clear.
      +
      +
    • +
    + + + + + + + +
      +
    • +

      clearCameraMotionListener

      +
      public void clearCameraMotionListener​(CameraMotionListener listener)
      +
      Description copied from interface: ExoPlayer
      +
      Clears the listener which receives camera motion events if it matches the one passed. Else does + nothing.
      +
      +
      Specified by:
      +
      clearCameraMotionListener in interface ExoPlayer
      +
      Parameters:
      +
      listener - The listener to clear.
    @@ -2051,35 +1569,6 @@ public void prepare​( - - - -
      -
    • -

      stop

      -
      public void stop​(boolean reset)
      -
      -
      Specified by:
      -
      stop in interface Player
      -
      -
    • -
    - - - -
      -
    • -

      release

      -
      public void release()
      -
      Description copied from interface: Player
      -
      Releases the player. This method must be called when the player is no longer required. The - player must not be used after calling this method.
      -
      -
      Specified by:
      -
      release in interface Player
      -
      -
    • -
    @@ -2091,8 +1580,8 @@ public void prepare​(Creates a message that can be sent to a PlayerMessage.Target. By default, the message will be delivered immediately without blocking on the playback thread. The default PlayerMessage.getType() is 0 and the default PlayerMessage.getPayload() is null. If a position is specified with PlayerMessage.setPosition(long), the message will be - delivered at this position in the current window defined by Player.getCurrentWindowIndex(). - Alternatively, the message can be sent at a specific window using PlayerMessage.setPosition(int, long). + delivered at this position in the current media item defined by Player.getCurrentMediaItemIndex(). Alternatively, the message can be sent at a specific mediaItem + using PlayerMessage.setPosition(int, long).
    Specified by:
    createMessage in interface ExoPlayer
    @@ -2132,7 +1621,7 @@ public void prepare​(Parameters:
    index - The index of the renderer.
    Returns:
    -
    One of the TRACK_TYPE_* constants defined in C.
    +
    The track type that the renderer handles.
    @@ -2152,682 +1641,6 @@ public  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      -
    • -

      getCurrentPeriodIndex

      -
      public int getCurrentPeriodIndex()
      -
      Description copied from interface: Player
      -
      Returns the index of the period currently being played.
      -
      -
      Specified by:
      -
      getCurrentPeriodIndex in interface Player
      -
      -
    • -
    - - - - - - - -
      -
    • -

      getDuration

      -
      public long getDuration()
      -
      Description copied from interface: Player
      -
      Returns the duration of the current content window or ad in milliseconds, or C.TIME_UNSET if the duration is not known.
      -
      -
      Specified by:
      -
      getDuration in interface Player
      -
      -
    • -
    - - - -
      -
    • -

      getCurrentPosition

      -
      public long getCurrentPosition()
      -
      Description copied from interface: Player
      -
      Returns the playback position in the current content window or ad, in milliseconds, or the - prospective position in milliseconds if the current timeline is - empty.
      -
      -
      Specified by:
      -
      getCurrentPosition in interface Player
      -
      -
    • -
    - - - -
      -
    • -

      getBufferedPosition

      -
      public long getBufferedPosition()
      -
      Description copied from interface: Player
      -
      Returns an estimate of the position in the current content window or ad up to which data is - buffered, in milliseconds.
      -
      -
      Specified by:
      -
      getBufferedPosition in interface Player
      -
      -
    • -
    - - - -
      -
    • -

      getTotalBufferedDuration

      -
      public long getTotalBufferedDuration()
      -
      Description copied from interface: Player
      -
      Returns an estimate of the total buffered duration from the current position, in milliseconds. - This includes pre-buffered data for subsequent ads and windows.
      -
      -
      Specified by:
      -
      getTotalBufferedDuration in interface Player
      -
      -
    • -
    - - - -
      -
    • -

      isPlayingAd

      -
      public boolean isPlayingAd()
      -
      Description copied from interface: Player
      -
      Returns whether the player is currently playing an ad.
      -
      -
      Specified by:
      -
      isPlayingAd in interface Player
      -
      -
    • -
    - - - - - - - - - - - -
      -
    • -

      getContentPosition

      -
      public long getContentPosition()
      -
      Description copied from interface: Player
      -
      If Player.isPlayingAd() returns true, returns the content position that will be - played once all ads in the ad group have finished playing, in milliseconds. If there is no ad - playing, the returned position is the same as that returned by Player.getCurrentPosition().
      -
      -
      Specified by:
      -
      getContentPosition in interface Player
      -
      -
    • -
    - - - -
      -
    • -

      getContentBufferedPosition

      -
      public long getContentBufferedPosition()
      -
      Description copied from interface: Player
      -
      If Player.isPlayingAd() returns true, returns an estimate of the content position in - the current content window up to which data is buffered, in milliseconds. If there is no ad - playing, the returned position is the same as that returned by Player.getBufferedPosition().
      -
      -
      Specified by:
      -
      getContentBufferedPosition in interface Player
      -
      -
    • -
    - - - - - - - -
      -
    • -

      setVolume

      -
      public void setVolume​(float audioVolume)
      -
      Description copied from interface: Player
      -
      Sets the audio volume, with 0 being silence and 1 being unity gain (signal unchanged).
      -
      -
      Specified by:
      -
      setVolume in interface Player
      -
      Parameters:
      -
      audioVolume - Linear output gain to apply to all audio channels.
      -
      -
    • -
    - - - -
      -
    • -

      getVolume

      -
      public float getVolume()
      -
      Description copied from interface: Player
      -
      Returns the audio volume, with 0 being silence and 1 being unity gain (signal unchanged).
      -
      -
      Specified by:
      -
      getVolume in interface Player
      -
      Returns:
      -
      The linear gain applied to all audio channels.
      -
      -
    • -
    - - - - - - - -
      -
    • -

      clearVideoSurface

      -
      public void clearVideoSurface​(@Nullable
      -                              Surface surface)
      -
      Description copied from interface: Player
      -
      Clears the Surface onto which video is being rendered if it matches the one passed. - Else does nothing.
      -
      -
      Specified by:
      -
      clearVideoSurface in interface Player
      -
      Parameters:
      -
      surface - The surface to clear.
      -
      -
    • -
    - - - - - - - - - - - -
      -
    • -

      clearVideoSurfaceHolder

      -
      public void clearVideoSurfaceHolder​(@Nullable
      -                                    SurfaceHolder surfaceHolder)
      -
      Description copied from interface: Player
      -
      Clears the SurfaceHolder that holds the Surface onto which video is being - rendered if it matches the one passed. Else does nothing.
      -
      -
      Specified by:
      -
      clearVideoSurfaceHolder in interface Player
      -
      Parameters:
      -
      surfaceHolder - The surface holder to clear.
      -
      -
    • -
    - - - - - - - -
      -
    • -

      clearVideoSurfaceView

      -
      public void clearVideoSurfaceView​(@Nullable
      -                                  SurfaceView surfaceView)
      -
      Description copied from interface: Player
      -
      Clears the SurfaceView onto which video is being rendered if it matches the one passed. - Else does nothing.
      -
      -
      Specified by:
      -
      clearVideoSurfaceView in interface Player
      -
      Parameters:
      -
      surfaceView - The texture view to clear.
      -
      -
    • -
    - - - - - - - -
      -
    • -

      clearVideoTextureView

      -
      public void clearVideoTextureView​(@Nullable
      -                                  TextureView textureView)
      -
      Description copied from interface: Player
      -
      Clears the TextureView onto which video is being rendered if it matches the one passed. - Else does nothing.
      -
      -
      Specified by:
      -
      clearVideoTextureView in interface Player
      -
      Parameters:
      -
      textureView - The texture view to clear.
      -
      -
    • -
    - - - - - - - -
      -
    • -

      getCurrentCues

      -
      public List<Cue> getCurrentCues()
      -
      Description copied from interface: Player
      -
      Returns the current Cues. This list may be empty.
      -
      -
      Specified by:
      -
      getCurrentCues in interface Player
      -
      -
    • -
    - - - -
      -
    • -

      getDeviceInfo

      -
      public DeviceInfo getDeviceInfo()
      -
      Description copied from interface: Player
      -
      Gets the device information.
      -
      -
      Specified by:
      -
      getDeviceInfo in interface Player
      -
      -
    • -
    - - - - - - - -
      -
    • -

      isDeviceMuted

      -
      public boolean isDeviceMuted()
      -
      Description copied from interface: Player
      -
      Gets whether the device is muted or not.
      -
      -
      Specified by:
      -
      isDeviceMuted in interface Player
      -
      -
    • -
    - - - -
      -
    • -

      setDeviceVolume

      -
      public void setDeviceVolume​(int volume)
      -
      Description copied from interface: Player
      -
      Sets the volume of the device.
      -
      -
      Specified by:
      -
      setDeviceVolume in interface Player
      -
      Parameters:
      -
      volume - The volume to set.
      -
      -
    • -
    - - - -
      -
    • -

      increaseDeviceVolume

      -
      public void increaseDeviceVolume()
      -
      Description copied from interface: Player
      -
      Increases the volume of the device.
      -
      -
      Specified by:
      -
      increaseDeviceVolume in interface Player
      -
      -
    • -
    - - - -
      -
    • -

      decreaseDeviceVolume

      -
      public void decreaseDeviceVolume()
      -
      Description copied from interface: Player
      -
      Decreases the volume of the device.
      -
      -
      Specified by:
      -
      decreaseDeviceVolume in interface Player
      -
      -
    • -
    - - - -
      -
    • -

      setDeviceMuted

      -
      public void setDeviceMuted​(boolean muted)
      -
      Description copied from interface: Player
      -
      Sets the mute state of the device.
      -
      -
      Specified by:
      -
      setDeviceMuted in interface Player
      -
      -
    • -
    @@ -2878,7 +1691,7 @@ public Description copied from interface: ExoPlayer
    Sets whether to pause playback at the end of each media item. -

    This means the player will pause at the end of each window in the current timeline. Listeners will be informed by a call to Player.Listener.onPlayWhenReadyChanged(boolean, int) with the reason Player.PLAY_WHEN_READY_CHANGE_REASON_END_OF_MEDIA_ITEM when this happens.

    +

    This means the player will pause at the end of each window in the current timeline. Listeners will be informed by a call to Player.Listener.onPlayWhenReadyChanged(boolean, int) with the reason Player.PLAY_WHEN_READY_CHANGE_REASON_END_OF_MEDIA_ITEM when this happens.

    Specified by:
    setPauseAtEndOfMediaItems in interface ExoPlayer
    @@ -2904,6 +1717,173 @@ public  + + +
      +
    • +

      getAudioFormat

      +
      @Nullable
      +public Format getAudioFormat()
      +
      Description copied from interface: ExoPlayer
      +
      Returns the audio format currently being played, or null if no audio is being played.
      +
      +
      Specified by:
      +
      getAudioFormat in interface ExoPlayer
      +
      +
    • +
    + + + +
      +
    • +

      getVideoFormat

      +
      @Nullable
      +public Format getVideoFormat()
      +
      Description copied from interface: ExoPlayer
      +
      Returns the video format currently being played, or null if no video is being played.
      +
      +
      Specified by:
      +
      getVideoFormat in interface ExoPlayer
      +
      +
    • +
    + + + + + + + + + + + +
      +
    • +

      setHandleAudioBecomingNoisy

      +
      public void setHandleAudioBecomingNoisy​(boolean handleAudioBecomingNoisy)
      +
      Description copied from interface: ExoPlayer
      +
      Sets whether the player should pause automatically when audio is rerouted from a headset to + device speakers. See the audio + becoming noisy documentation for more information.
      +
      +
      Specified by:
      +
      setHandleAudioBecomingNoisy in interface ExoPlayer
      +
      Parameters:
      +
      handleAudioBecomingNoisy - Whether the player should pause automatically when audio is + rerouted from a headset to device speakers.
      +
      +
    • +
    + + + + + + + +
      +
    • +

      setWakeMode

      +
      public void setWakeMode​(int wakeMode)
      +
      Description copied from interface: ExoPlayer
      +
      Sets how the player should keep the device awake for playback when the screen is off. + +

      Enabling this feature requires the Manifest.permission.WAKE_LOCK permission. + It should be used together with a foreground Service for use cases where + playback occurs and the screen is off (e.g. background audio playback). It is not useful when + the screen will be kept on during playback (e.g. foreground video playback). + +

      When enabled, the locks (PowerManager.WakeLock / WifiManager.WifiLock) will be held whenever the player is in the Player.STATE_READY or Player.STATE_BUFFERING states with playWhenReady = true. The locks + held depends on the specified C.WakeMode.

      +
      +
      Specified by:
      +
      setWakeMode in interface ExoPlayer
      +
      Parameters:
      +
      wakeMode - The C.WakeMode option to keep the device awake during playback.
      +
      +
    • +
    + + + + + + + +
      +
    • +

      setThrowsWhenUsingWrongThread

      +
      @Deprecated
      +public void setThrowsWhenUsingWrongThread​(boolean throwsWhenUsingWrongThread)
      +
      Deprecated.
      +
      Description copied from interface: ExoPlayer
      +
      Sets whether the player should throw an IllegalStateException when methods are called + from a thread other than the one associated with Player.getApplicationLooper(). + +

      The default is true and this method will be removed in the future.

      +
      +
      Specified by:
      +
      setThrowsWhenUsingWrongThread in interface ExoPlayer
      +
      Parameters:
      +
      throwsWhenUsingWrongThread - Whether to throw when methods are called from a wrong thread.
      +
      +
    • +
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/testutil/StubPlayer.html b/docs/doc/reference/com/google/android/exoplayer2/testutil/StubPlayer.html new file mode 100644 index 0000000000..b1e6c14dcb --- /dev/null +++ b/docs/doc/reference/com/google/android/exoplayer2/testutil/StubPlayer.html @@ -0,0 +1,1958 @@ + + + + +StubPlayer (ExoPlayer library) + + + + + + + + + + + + + +
    + +
    + +
    +
    + +

    Class StubPlayer

    +
    +
    + +
    + +
    +
    + +
    +
    +
      +
    • + +
      +
        +
      • + + +

        Constructor Detail

        + + + +
          +
        • +

          StubPlayer

          +
          public StubPlayer()
          +
        • +
        +
      • +
      +
      + +
      +
        +
      • + + +

        Method Detail

        + + + +
          +
        • +

          getApplicationLooper

          +
          public Looper getApplicationLooper()
          +
          Description copied from interface: Player
          +
          Returns the Looper associated with the application thread that's used to access the + player and on which player events are received.
          +
        • +
        + + + +
          +
        • +

          addListener

          +
          public void addListener​(Player.Listener listener)
          +
          Description copied from interface: Player
          +
          Registers a listener to receive all events from the player. + +

          The listener's methods will be called on the thread associated with Player.getApplicationLooper().

          +
          +
          Parameters:
          +
          listener - The listener to register.
          +
          +
        • +
        + + + +
          +
        • +

          removeListener

          +
          public void removeListener​(Player.Listener listener)
          +
          Description copied from interface: Player
          +
          Unregister a listener registered through Player.addListener(Listener). The listener will no + longer receive events.
          +
          +
          Parameters:
          +
          listener - The listener to unregister.
          +
          +
        • +
        + + + + + + + + + + + + + + + +
          +
        • +

          prepare

          +
          public void prepare()
          +
          Description copied from interface: Player
          +
          Prepares the player.
          +
        • +
        + + + + + + + +
          +
        • +

          setMediaItems

          +
          public void setMediaItems​(List<MediaItem> mediaItems,
          +                          int startIndex,
          +                          long startPositionMs)
          +
          Description copied from interface: Player
          +
          Clears the playlist and adds the specified MediaItems.
          +
          +
          Parameters:
          +
          mediaItems - The new MediaItems.
          +
          startIndex - The MediaItem index to start playback from. If C.INDEX_UNSET + is passed, the current position is not reset.
          +
          startPositionMs - The position in milliseconds to start playback from. If C.TIME_UNSET is passed, the default position of the given MediaItem is used. In + any case, if startIndex is set to C.INDEX_UNSET, this parameter is ignored + and the position is not reset at all.
          +
          +
        • +
        + + + +
          +
        • +

          addMediaItems

          +
          public void addMediaItems​(int index,
          +                          List<MediaItem> mediaItems)
          +
          Description copied from interface: Player
          +
          Adds a list of media items at the given index of the playlist.
          +
          +
          Parameters:
          +
          index - The index at which to add the media items. If the index is larger than the size of + the playlist, the media items are added to the end of the playlist.
          +
          mediaItems - The MediaItems to add.
          +
          +
        • +
        + + + +
          +
        • +

          moveMediaItems

          +
          public void moveMediaItems​(int fromIndex,
          +                           int toIndex,
          +                           int newIndex)
          +
          Description copied from interface: Player
          +
          Moves the media item range to the new index.
          +
          +
          Parameters:
          +
          fromIndex - The start of the range to move.
          +
          toIndex - The first item not to be included in the range (exclusive).
          +
          newIndex - The new index of the first media item of the range. If the new index is larger + than the size of the remaining playlist after removing the range, the range is moved to the + end of the playlist.
          +
          +
        • +
        + + + +
          +
        • +

          removeMediaItems

          +
          public void removeMediaItems​(int fromIndex,
          +                             int toIndex)
          +
          Description copied from interface: Player
          +
          Removes a range of media items from the playlist.
          +
          +
          Parameters:
          +
          fromIndex - The index at which to start removing media items.
          +
          toIndex - The index of the first item to be kept (exclusive). If the index is larger than + the size of the playlist, media items to the end of the playlist are removed.
          +
          +
        • +
        + + + + + + + +
          +
        • +

          setPlayWhenReady

          +
          public void setPlayWhenReady​(boolean playWhenReady)
          +
          Description copied from interface: Player
          +
          Sets whether playback should proceed when Player.getPlaybackState() == Player.STATE_READY. + +

          If the player is already in the ready state then this method pauses and resumes playback.

          +
          +
          Parameters:
          +
          playWhenReady - Whether playback should proceed when ready.
          +
          +
        • +
        + + + + + + + +
          +
        • +

          setRepeatMode

          +
          public void setRepeatMode​(@RepeatMode
          +                          @com.google.android.exoplayer2.Player.RepeatMode int repeatMode)
          +
          Description copied from interface: Player
          +
          Sets the Player.RepeatMode to be used for playback.
          +
          +
          Parameters:
          +
          repeatMode - The repeat mode.
          +
          +
        • +
        + + + + + + + +
          +
        • +

          setShuffleModeEnabled

          +
          public void setShuffleModeEnabled​(boolean shuffleModeEnabled)
          +
          Description copied from interface: Player
          +
          Sets whether shuffling of media items is enabled.
          +
          +
          Parameters:
          +
          shuffleModeEnabled - Whether shuffling is enabled.
          +
          +
        • +
        + + + + + + + +
          +
        • +

          isLoading

          +
          public boolean isLoading()
          +
          Description copied from interface: Player
          +
          Whether the player is currently loading the source.
          +
          +
          Returns:
          +
          Whether the player is currently loading the source.
          +
          See Also:
          +
          Player.Listener.onIsLoadingChanged(boolean)
          +
          +
        • +
        + + + +
          +
        • +

          seekTo

          +
          public void seekTo​(int mediaItemIndex,
          +                   long positionMs)
          +
          Description copied from interface: Player
          +
          Seeks to a position specified in milliseconds in the specified MediaItem.
          +
          +
          Parameters:
          +
          mediaItemIndex - The index of the MediaItem.
          +
          positionMs - The seek position in the specified MediaItem, or C.TIME_UNSET + to seek to the media item's default position.
          +
          +
        • +
        + + + + + + + + + + + + + + + +
          +
        • +

          setPlaybackParameters

          +
          public void setPlaybackParameters​(PlaybackParameters playbackParameters)
          +
          Description copied from interface: Player
          +
          Attempts to set the playback parameters. Passing PlaybackParameters.DEFAULT resets the + player to the default, which means there is no speed or pitch adjustment. + +

          Playback parameters changes may cause the player to buffer. Player.Listener.onPlaybackParametersChanged(PlaybackParameters) will be called whenever the currently + active playback parameters change.

          +
          +
          Parameters:
          +
          playbackParameters - The playback parameters.
          +
          +
        • +
        + + + + + + + +
          +
        • +

          stop

          +
          public void stop()
          +
          Description copied from interface: Player
          +
          Stops playback without resetting the player. Use Player.pause() rather than this method if + the intention is to pause playback. + +

          Calling this method will cause the playback state to transition to Player.STATE_IDLE. The + player instance can still be used, and Player.release() must still be called on the player if + it's no longer required. + +

          Calling this method does not clear the playlist, reset the playback position or the playback + error.

          +
        • +
        + + + +
          +
        • +

          stop

          +
          @Deprecated
          +public void stop​(boolean reset)
          +
          Deprecated.
          +
        • +
        + + + +
          +
        • +

          release

          +
          public void release()
          +
          Description copied from interface: Player
          +
          Releases the player. This method must be called when the player is no longer required. The + player must not be used after calling this method.
          +
        • +
        + + + + + + + +
          +
        • +

          getCurrentTrackSelections

          +
          public TrackSelectionArray getCurrentTrackSelections()
          +
          Description copied from interface: Player
          +
          Returns the current track selections. + +

          A concrete implementation may include null elements if it has a fixed number of renderer + components, wishes to report a TrackSelection for each of them, and has one or more renderer + components that is not assigned any selected tracks.

          +
          +
          See Also:
          +
          Player.EventListener.onTracksChanged(TrackGroupArray, TrackSelectionArray)
          +
          +
        • +
        + + + + + + + +
          +
        • +

          getTrackSelectionParameters

          +
          public TrackSelectionParameters getTrackSelectionParameters()
          +
          Description copied from interface: Player
          +
          Returns the parameters constraining the track selection.
          +
          +
          See Also:
          +
          }
          +
          +
        • +
        + + + +
          +
        • +

          setTrackSelectionParameters

          +
          public void setTrackSelectionParameters​(TrackSelectionParameters parameters)
          +
          Description copied from interface: Player
          +
          Sets the parameters constraining the track selection. + +

          Unsupported parameters will be silently ignored. + +

          Use Player.getTrackSelectionParameters() to retrieve the current parameters. For example, + the following snippet restricts video to SD whilst keep other track selection parameters + unchanged: + +

          
          + player.setTrackSelectionParameters(
          +   player.getTrackSelectionParameters()
          +         .buildUpon()
          +         .setMaxVideoSizeSd()
          +         .build())
          + 
          +
        • +
        + + + + + + + + + + + +
          +
        • +

          setPlaylistMetadata

          +
          public void setPlaylistMetadata​(MediaMetadata mediaMetadata)
          +
          Description copied from interface: Player
          +
          Sets the playlist MediaMetadata.
          +
        • +
        + + + + + + + +
          +
        • +

          getCurrentPeriodIndex

          +
          public int getCurrentPeriodIndex()
          +
          Description copied from interface: Player
          +
          Returns the index of the period currently being played.
          +
        • +
        + + + +
          +
        • +

          getCurrentMediaItemIndex

          +
          public int getCurrentMediaItemIndex()
          +
          Description copied from interface: Player
          +
          Returns the index of the current MediaItem in the timeline, or the prospective index if the current timeline is + empty.
          +
        • +
        + + + +
          +
        • +

          getDuration

          +
          public long getDuration()
          +
          Description copied from interface: Player
          +
          Returns the duration of the current content or ad in milliseconds, or C.TIME_UNSET if + the duration is not known.
          +
        • +
        + + + +
          +
        • +

          getCurrentPosition

          +
          public long getCurrentPosition()
          +
          Description copied from interface: Player
          +
          Returns the playback position in the current content or ad, in milliseconds, or the prospective + position in milliseconds if the current timeline is empty.
          +
        • +
        + + + +
          +
        • +

          getBufferedPosition

          +
          public long getBufferedPosition()
          +
          Description copied from interface: Player
          +
          Returns an estimate of the position in the current content or ad up to which data is buffered, + in milliseconds.
          +
        • +
        + + + +
          +
        • +

          getTotalBufferedDuration

          +
          public long getTotalBufferedDuration()
          +
          Description copied from interface: Player
          +
          Returns an estimate of the total buffered duration from the current position, in milliseconds. + This includes pre-buffered data for subsequent ads and media items.
          +
        • +
        + + + +
          +
        • +

          isPlayingAd

          +
          public boolean isPlayingAd()
          +
          Description copied from interface: Player
          +
          Returns whether the player is currently playing an ad.
          +
        • +
        + + + +
          +
        • +

          getCurrentAdGroupIndex

          +
          public int getCurrentAdGroupIndex()
          +
          Description copied from interface: Player
          +
          If Player.isPlayingAd() returns true, returns the index of the ad group in the period + currently being played. Returns C.INDEX_UNSET otherwise.
          +
        • +
        + + + +
          +
        • +

          getCurrentAdIndexInAdGroup

          +
          public int getCurrentAdIndexInAdGroup()
          +
          Description copied from interface: Player
          +
          If Player.isPlayingAd() returns true, returns the index of the ad in its ad group. Returns + C.INDEX_UNSET otherwise.
          +
        • +
        + + + +
          +
        • +

          getContentPosition

          +
          public long getContentPosition()
          +
          Description copied from interface: Player
          +
          If Player.isPlayingAd() returns true, returns the content position that will be + played once all ads in the ad group have finished playing, in milliseconds. If there is no ad + playing, the returned position is the same as that returned by Player.getCurrentPosition().
          +
        • +
        + + + +
          +
        • +

          getContentBufferedPosition

          +
          public long getContentBufferedPosition()
          +
          Description copied from interface: Player
          +
          If Player.isPlayingAd() returns true, returns an estimate of the content position in + the current content up to which data is buffered, in milliseconds. If there is no ad playing, + the returned position is the same as that returned by Player.getBufferedPosition().
          +
        • +
        + + + +
          +
        • +

          getAudioAttributes

          +
          public AudioAttributes getAudioAttributes()
          +
          Description copied from interface: Player
          +
          Returns the attributes for audio playback.
          +
        • +
        + + + +
          +
        • +

          setVolume

          +
          public void setVolume​(float volume)
          +
          Description copied from interface: Player
          +
          Sets the audio volume, valid values are between 0 (silence) and 1 (unity gain, signal + unchanged), inclusive.
          +
          +
          Parameters:
          +
          volume - Linear output gain to apply to all audio channels.
          +
          +
        • +
        + + + +
          +
        • +

          getVolume

          +
          public float getVolume()
          +
          Description copied from interface: Player
          +
          Returns the audio volume, with 0 being silence and 1 being unity gain (signal unchanged).
          +
          +
          Returns:
          +
          The linear gain applied to all audio channels.
          +
          +
        • +
        + + + + + + + +
          +
        • +

          clearVideoSurface

          +
          public void clearVideoSurface​(@Nullable
          +                              Surface surface)
          +
          Description copied from interface: Player
          +
          Clears the Surface onto which video is being rendered if it matches the one passed. + Else does nothing.
          +
          +
          Parameters:
          +
          surface - The surface to clear.
          +
          +
        • +
        + + + + + + + +
          +
        • +

          setVideoSurfaceHolder

          +
          public void setVideoSurfaceHolder​(@Nullable
          +                                  SurfaceHolder surfaceHolder)
          +
          Description copied from interface: Player
          +
          Sets the SurfaceHolder that holds the Surface onto which video will be + rendered. The player will track the lifecycle of the surface automatically. + +

          The thread that calls the SurfaceHolder.Callback methods must be the thread + associated with Player.getApplicationLooper().

          +
          +
          Parameters:
          +
          surfaceHolder - The surface holder.
          +
          +
        • +
        + + + +
          +
        • +

          clearVideoSurfaceHolder

          +
          public void clearVideoSurfaceHolder​(@Nullable
          +                                    SurfaceHolder surfaceHolder)
          +
          Description copied from interface: Player
          +
          Clears the SurfaceHolder that holds the Surface onto which video is being + rendered if it matches the one passed. Else does nothing.
          +
          +
          Parameters:
          +
          surfaceHolder - The surface holder to clear.
          +
          +
        • +
        + + + +
          +
        • +

          setVideoSurfaceView

          +
          public void setVideoSurfaceView​(@Nullable
          +                                SurfaceView surfaceView)
          +
          Description copied from interface: Player
          +
          Sets the SurfaceView onto which video will be rendered. The player will track the + lifecycle of the surface automatically. + +

          The thread that calls the SurfaceHolder.Callback methods must be the thread + associated with Player.getApplicationLooper().

          +
          +
          Parameters:
          +
          surfaceView - The surface view.
          +
          +
        • +
        + + + +
          +
        • +

          clearVideoSurfaceView

          +
          public void clearVideoSurfaceView​(@Nullable
          +                                  SurfaceView surfaceView)
          +
          Description copied from interface: Player
          +
          Clears the SurfaceView onto which video is being rendered if it matches the one passed. + Else does nothing.
          +
          +
          Parameters:
          +
          surfaceView - The texture view to clear.
          +
          +
        • +
        + + + +
          +
        • +

          setVideoTextureView

          +
          public void setVideoTextureView​(@Nullable
          +                                TextureView textureView)
          +
          Description copied from interface: Player
          +
          Sets the TextureView onto which video will be rendered. The player will track the + lifecycle of the surface automatically. + +

          The thread that calls the TextureView.SurfaceTextureListener methods must be the + thread associated with Player.getApplicationLooper().

          +
          +
          Parameters:
          +
          textureView - The texture view.
          +
          +
        • +
        + + + +
          +
        • +

          clearVideoTextureView

          +
          public void clearVideoTextureView​(@Nullable
          +                                  TextureView textureView)
          +
          Description copied from interface: Player
          +
          Clears the TextureView onto which video is being rendered if it matches the one passed. + Else does nothing.
          +
          +
          Parameters:
          +
          textureView - The texture view to clear.
          +
          +
        • +
        + + + + + + + +
          +
        • +

          getCurrentCues

          +
          public List<Cue> getCurrentCues()
          +
          Description copied from interface: Player
          +
          Returns the current Cues. This list may be empty.
          +
        • +
        + + + +
          +
        • +

          getDeviceInfo

          +
          public DeviceInfo getDeviceInfo()
          +
          Description copied from interface: Player
          +
          Gets the device information.
          +
        • +
        + + + + + + + +
          +
        • +

          isDeviceMuted

          +
          public boolean isDeviceMuted()
          +
          Description copied from interface: Player
          +
          Gets whether the device is muted or not.
          +
        • +
        + + + +
          +
        • +

          setDeviceVolume

          +
          public void setDeviceVolume​(int volume)
          +
          Description copied from interface: Player
          +
          Sets the volume of the device.
          +
          +
          Parameters:
          +
          volume - The volume to set.
          +
          +
        • +
        + + + +
          +
        • +

          increaseDeviceVolume

          +
          public void increaseDeviceVolume()
          +
          Description copied from interface: Player
          +
          Increases the volume of the device.
          +
        • +
        + + + +
          +
        • +

          decreaseDeviceVolume

          +
          public void decreaseDeviceVolume()
          +
          Description copied from interface: Player
          +
          Decreases the volume of the device.
          +
        • +
        + + + +
          +
        • +

          setDeviceMuted

          +
          public void setDeviceMuted​(boolean muted)
          +
          Description copied from interface: Player
          +
          Sets the mute state of the device.
          +
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
    + + + + diff --git a/docs/doc/reference/com/google/android/exoplayer2/testutil/TestExoPlayerBuilder.html b/docs/doc/reference/com/google/android/exoplayer2/testutil/TestExoPlayerBuilder.html index 44255b405d..35579becf9 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/testutil/TestExoPlayerBuilder.html +++ b/docs/doc/reference/com/google/android/exoplayer2/testutil/TestExoPlayerBuilder.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10}; +var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -210,6 +210,13 @@ extends +MediaSourceFactory +getMediaSourceFactory() + +
    Returns the MediaSourceFactory that will be used by the player, or null if no MediaSourceFactory has been set yet and no default is available.
    + + + Renderer[] getRenderers() @@ -217,7 +224,7 @@ extends Renderers have been explicitly set. - + RenderersFactory getRenderersFactory() @@ -225,98 +232,105 @@ extends - + long getSeekBackIncrementMs()
    Returns the seek back increment used by the player.
    - + long getSeekForwardIncrementMs()
    Returns the seek forward increment used by the player.
    - + DefaultTrackSelector getTrackSelector()
    Returns the track selector used by the player.
    - + boolean getUseLazyPreparation()
    Returns whether the player will use lazy preparation.
    - + TestExoPlayerBuilder setBandwidthMeter​(BandwidthMeter bandwidthMeter)
    Sets the BandwidthMeter.
    - + TestExoPlayerBuilder setClock​(Clock clock)
    Sets the Clock to be used by the player.
    - + TestExoPlayerBuilder setLoadControl​(LoadControl loadControl)
    Sets a LoadControl to be used by the player.
    - + TestExoPlayerBuilder setLooper​(Looper looper)
    Sets the Looper to be used by the player.
    - + +TestExoPlayerBuilder +setMediaSourceFactory​(MediaSourceFactory mediaSourceFactory) + +
    Sets the MediaSourceFactory to be used by the player.
    + + + TestExoPlayerBuilder setRenderers​(Renderer... renderers)
    Sets the Renderers.
    - + TestExoPlayerBuilder setRenderersFactory​(RenderersFactory renderersFactory) - + TestExoPlayerBuilder setSeekBackIncrementMs​(long seekBackIncrementMs)
    Sets the seek back increment to be used by the player.
    - + TestExoPlayerBuilder setSeekForwardIncrementMs​(long seekForwardIncrementMs)
    Sets the seek forward increment to be used by the player.
    - + TestExoPlayerBuilder setTrackSelector​(DefaultTrackSelector trackSelector) - + TestExoPlayerBuilder setUseLazyPreparation​(boolean useLazyPreparation) @@ -585,6 +599,33 @@ public  + + + + + + + @@ -645,10 +686,6 @@ public public SimpleExoPlayer build()
    Builds an SimpleExoPlayer using the provided values or their defaults.
    -
    -
    Returns:
    -
    The built ExoPlayerTestRunner.
    -
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/testutil/TestUtil.html b/docs/doc/reference/com/google/android/exoplayer2/testutil/TestUtil.html index 0eb30f2d9b..67441c8699 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/testutil/TestUtil.html +++ b/docs/doc/reference/com/google/android/exoplayer2/testutil/TestUtil.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9}; +var data = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9}; var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -180,20 +180,28 @@ extends +static void +assertTimelinesSame​(List<Timeline> actualTimelines, + List<Timeline> expectedTimelines) + +
    Asserts that the actual timelines are the same to the expected timelines.
    + + + static Uri buildAssetUri​(String assetPath)
    Returns the Uri for the given asset path.
    - + static byte[] buildTestData​(int length)
    Equivalent to buildTestData(length, length).
    - + static byte[] buildTestData​(int length, int seed) @@ -201,7 +209,7 @@ extends Generates an array of random bytes with the specified length. - + static byte[] buildTestData​(int length, Random random) @@ -209,7 +217,7 @@ extends Generates an array of random bytes with the specified length. - + static String buildTestString​(int length, Random random) @@ -217,28 +225,28 @@ extends Generates a random string with the specified length. - + static byte[] createByteArray​(int... bytes)
    Converts an array of integers in the range [0, 255] into an equivalent byte array.
    - + static ImmutableList<Byte> createByteList​(int... bytes)
    Converts an array of integers in the range [0, 255] into an equivalent byte list.
    - + static MetadataInputBuffer createMetadataInputBuffer​(byte[] data)
    Create a new MetadataInputBuffer and copy data into the backing ByteBuffer.
    - + static File createTestFile​(File file, long length) @@ -246,7 +254,7 @@ extends Writes test data with the specified length to the file and returns it. - + static File createTestFile​(File directory, String name) @@ -254,7 +262,7 @@ extends Writes one byte long test data to the file and returns it. - + static File createTestFile​(File directory, String name, @@ -263,7 +271,7 @@ extends Writes test data with the specified length to the file and returns it. - + static FakeExtractorOutput extractAllSamplesFromFile​(Extractor extractor, Context context, @@ -272,7 +280,7 @@ extends Extracts all samples from the given file into a FakeTrackOutput. - + static SeekMap extractSeekMap​(Extractor extractor, FakeExtractorOutput output, @@ -283,7 +291,7 @@ extends - + static Bitmap getBitmap​(Context context, String fileName) @@ -291,7 +299,7 @@ extends Returns a Bitmap read from an asset file. - + static byte[] getByteArray​(Context context, String fileName) @@ -299,7 +307,7 @@ extends Returns the bytes of an asset file. - + static ExtractorInput getExtractorInputFromPosition​(DataSource dataSource, long position, @@ -308,14 +316,14 @@ extends Returns an ExtractorInput to read from the given input at given position. - + static DatabaseProvider getInMemoryDatabaseProvider()
    Returns a DatabaseProvider that provides an in-memory database.
    - + static InputStream getInputStream​(Context context, String fileName) @@ -323,7 +331,7 @@ extends Returns an InputStream for reading from an asset file. - + static String getString​(Context context, String fileName) @@ -331,7 +339,7 @@ extends Returns a String read from an asset file. - + static int seekToTimeUs​(Extractor extractor, SeekMap seekMap, @@ -594,6 +602,24 @@ extends Returns a DatabaseProvider that provides an in-memory database. + + + +
      +
    • +

      assertTimelinesSame

      +
      public static void assertTimelinesSame​(List<Timeline> actualTimelines,
      +                                       List<Timeline> expectedTimelines)
      +
      Asserts that the actual timelines are the same to the expected timelines. This assert differs + from testing equality by not comparing period ids which may be different due to id mapping of + child source period ids.
      +
      +
      Parameters:
      +
      actualTimelines - A list of actual timelines.
      +
      expectedTimelines - A list of expected timelines.
      +
      +
    • +
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/testutil/TimelineAsserts.html b/docs/doc/reference/com/google/android/exoplayer2/testutil/TimelineAsserts.html index f54b01ef26..58767ef775 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/testutil/TimelineAsserts.html +++ b/docs/doc/reference/com/google/android/exoplayer2/testutil/TimelineAsserts.html @@ -169,9 +169,9 @@ extends static void -assertEqualNextWindowIndices​(Timeline expectedTimeline, +assertEqualNextWindowIndices​(Timeline expectedTimeline, Timeline actualTimeline, - int repeatMode, + @com.google.android.exoplayer2.Player.RepeatMode int repeatMode, boolean shuffleModeEnabled)
    Asserts that next window indices for each window of the actual timeline are equal to the @@ -180,9 +180,9 @@ extends static void -assertEqualPreviousWindowIndices​(Timeline expectedTimeline, +assertEqualPreviousWindowIndices​(Timeline expectedTimeline, Timeline actualTimeline, - int repeatMode, + @com.google.android.exoplayer2.Player.RepeatMode int repeatMode, boolean shuffleModeEnabled)
    Asserts that previous window indices for each window of the actual timeline are equal to the @@ -199,8 +199,8 @@ extends static void -assertNextWindowIndices​(Timeline timeline, - int repeatMode, +assertNextWindowIndices​(Timeline timeline, + @com.google.android.exoplayer2.Player.RepeatMode int repeatMode, boolean shuffleModeEnabled, int... expectedNextWindowIndices) @@ -235,8 +235,8 @@ extends static void -assertPreviousWindowIndices​(Timeline timeline, - int repeatMode, +assertPreviousWindowIndices​(Timeline timeline, + @com.google.android.exoplayer2.Player.RepeatMode int repeatMode, boolean shuffleModeEnabled, int... expectedPreviousWindowIndices) @@ -329,7 +329,7 @@ extends Asserts that window properties Timeline.Window.isDynamic are set correctly.
    - + - + - +
      @@ -368,13 +368,13 @@ extends public static void assertEqualPreviousWindowIndices​(Timeline expectedTimeline, Timeline actualTimeline, @RepeatMode - int repeatMode, + @com.google.android.exoplayer2.Player.RepeatMode int repeatMode, boolean shuffleModeEnabled)
      Asserts that previous window indices for each window of the actual timeline are equal to the indices of the expected timeline depending on the repeat mode and the shuffle mode.
    - +
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/testutil/package-summary.html b/docs/doc/reference/com/google/android/exoplayer2/testutil/package-summary.html index 9f805fe524..f5167b8b35 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/testutil/package-summary.html +++ b/docs/doc/reference/com/google/android/exoplayer2/testutil/package-summary.html @@ -177,19 +177,19 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); Action.AddMediaItems - + Action.ClearMediaItems - + Action.ClearVideoSurface - + @@ -201,7 +201,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); Action.MoveMediaItem - + @@ -220,13 +220,13 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); Action.RemoveMediaItem - + Action.RemoveMediaItems - + @@ -244,19 +244,19 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); Action.SetAudioAttributes - + Action.SetMediaItems - + Action.SetMediaItemsResetPosition - + @@ -281,7 +281,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); Action.SetRepeatMode - + @@ -299,7 +299,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); Action.SetVideoSurface - + @@ -335,27 +335,27 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); Action.WaitForPlaybackState -
    Waits for a specified playback state, returning either immediately or after a call to Player.Listener.onPlaybackStateChanged(int).
    +
    Waits for a specified playback state, returning either immediately or after a call to Player.Listener.onPlaybackStateChanged(int).
    Action.WaitForPlayWhenReady
    Waits for a specified playWhenReady value, returning either immediately or after a call to - Player.Listener.onPlayWhenReadyChanged(boolean, int).
    + Player.Listener.onPlayWhenReadyChanged(boolean, int). Action.WaitForPositionDiscontinuity -
    Waits for Player.Listener.onPositionDiscontinuity(Player.PositionInfo, + Action.WaitForTimelineChanged - + @@ -389,205 +389,217 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); +AssetContentProvider + +
    A ContentProvider for reading asset data.
    + + + CacheAsserts
    Assertion methods for Cache.
    - + CacheAsserts.RequestSet
    Defines a set of data requests.
    - + CapturingAudioSink
    A ForwardingAudioSink that captures configuration, discontinuity and buffer events.
    - + CapturingRenderersFactory
    A RenderersFactory that captures interactions with the audio and video MediaCodecAdapter instances.
    - + DataSourceContractTest
    A collection of contract tests for DataSource implementations.
    - + DataSourceContractTest.FakeTransferListener
    A TransferListener that only keeps track of the transferred bytes.
    - + DataSourceContractTest.TestResource
    Information about a resource that can be used to test the DataSource instance.
    - + DataSourceContractTest.TestResource.Builder - + DecoderCountersUtil
    Assertions for DecoderCounters.
    - + DefaultRenderersFactoryAsserts
    Assertions for DefaultRenderersFactory.
    - + DownloadBuilder
    Builder for Download.
    - + DummyMainThread
    Helper class to simulate main/UI thread in tests.
    - + DumpableFormat
    Wraps a Format to allow dumping it.
    - + Dumper
    Helper utility to dump field values.
    - + DumpFileAsserts
    Helper class to enable assertions based on golden-data dump files.
    - + ExoHostedTest
    A HostActivity.HostedTest for ExoPlayer playback tests.
    - + ExoPlayerTestRunner
    Helper class to run an ExoPlayer test.
    - + ExoPlayerTestRunner.Builder -
    Builder to set-up a ExoPlayerTestRunner.
    +
    Builder to set-up an ExoPlayerTestRunner.
    - + ExtractorAsserts
    Assertion methods for Extractor.
    - + ExtractorAsserts.AssertionConfig
    A config for the assertions made (e.g.
    - + ExtractorAsserts.AssertionConfig.Builder
    Builder for ExtractorAsserts.AssertionConfig instances.
    - + ExtractorAsserts.SimulationConfig
    A config of different environments to simulate and extractor behaviours to test.
    - + FailOnCloseDataSink
    A DataSink that can simulate caching the bytes being written to it, and then failing to persist them when FailOnCloseDataSink.close() is called.
    - + FailOnCloseDataSink.Factory
    Factory to create a FailOnCloseDataSink.
    - + FakeAdaptiveDataSet
    Fake data set emulating the data of an adaptive media source.
    - + FakeAdaptiveDataSet.Factory
    Factory for FakeAdaptiveDataSets.
    - + FakeAdaptiveDataSet.Iterator
    MediaChunkIterator for the chunks defined by a fake adaptive data set.
    - + FakeAdaptiveMediaPeriod
    Fake MediaPeriod that provides tracks from the given TrackGroupArray.
    - + FakeAdaptiveMediaSource
    Fake MediaSource that provides a given timeline.
    - + FakeAudioRenderer - + FakeChunkSource
    Fake ChunkSource with adaptive media chunks of a given duration.
    - + FakeChunkSource.Factory
    Factory for a FakeChunkSource.
    - + FakeClock
    Fake Clock implementation that allows to advance the time manually to trigger pending timed messages.
    + +FakeCryptoConfig + + + + FakeDataSet @@ -691,6 +703,18 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); +FakeMediaSourceFactory + +
    Fake MediaSourceFactory that creates a FakeMediaSource.
    + + + +FakeMetadataEntry + + + + + FakeRenderer
    Fake Renderer that supports any format with the matching track type.
    @@ -789,37 +813,44 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); +StubPlayer + +
    An abstract Player implementation that throws UnsupportedOperationException from + every method.
    + + + TestExoPlayerBuilder
    A builder of SimpleExoPlayer instances for testing.
    - + TestUtil
    Utility methods for tests.
    - + TimelineAsserts
    Assertion methods for Timeline.
    - + WebServerDispatcher
    A Dispatcher for MockWebServer that allows per-path customisation of the static data served.
    - + WebServerDispatcher.Resource
    A resource served by WebServerDispatcher.
    - + WebServerDispatcher.Resource.Builder diff --git a/docs/doc/reference/com/google/android/exoplayer2/testutil/package-tree.html b/docs/doc/reference/com/google/android/exoplayer2/testutil/package-tree.html index 1962b15df7..55bc854cd1 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/testutil/package-tree.html +++ b/docs/doc/reference/com/google/android/exoplayer2/testutil/package-tree.html @@ -164,9 +164,13 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  • com.google.android.exoplayer2.BasePlayer (implements com.google.android.exoplayer2.Player)
      +
    • com.google.android.exoplayer2.testutil.StubPlayer +
    • +
    +
  • com.google.android.exoplayer2.BaseRenderer (implements com.google.android.exoplayer2.Renderer, com.google.android.exoplayer2.RendererCapabilities)
    • com.google.android.exoplayer2.testutil.FakeRenderer @@ -190,6 +194,11 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  • +
  • android.content.ContentProvider (implements android.content.ComponentCallbacks2) + +
  • android.content.Context
    • android.content.ContextWrapper @@ -243,6 +252,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    • com.google.android.exoplayer2.testutil.FakeChunkSource.Factory
    • com.google.android.exoplayer2.testutil.FakeClock (implements com.google.android.exoplayer2.util.Clock)
    • com.google.android.exoplayer2.testutil.FakeClock.HandlerMessage (implements java.lang.Comparable<T>, com.google.android.exoplayer2.util.HandlerWrapper.Message)
    • +
    • com.google.android.exoplayer2.testutil.FakeCryptoConfig (implements com.google.android.exoplayer2.decoder.CryptoConfig)
    • com.google.android.exoplayer2.testutil.FakeDataSet
      • com.google.android.exoplayer2.testutil.FakeAdaptiveDataSet
      • @@ -258,6 +268,8 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
      • com.google.android.exoplayer2.testutil.FakeExtractorInput.Builder
      • com.google.android.exoplayer2.testutil.FakeExtractorOutput (implements com.google.android.exoplayer2.testutil.Dumper.Dumpable, com.google.android.exoplayer2.extractor.ExtractorOutput)
      • com.google.android.exoplayer2.testutil.FakeMediaPeriod (implements com.google.android.exoplayer2.source.MediaPeriod)
      • +
      • com.google.android.exoplayer2.testutil.FakeMediaSourceFactory (implements com.google.android.exoplayer2.source.MediaSourceFactory)
      • +
      • com.google.android.exoplayer2.testutil.FakeMetadataEntry (implements com.google.android.exoplayer2.metadata.Metadata.Entry)
      • com.google.android.exoplayer2.testutil.FakeSampleStream (implements com.google.android.exoplayer2.source.SampleStream)
      • com.google.android.exoplayer2.testutil.FakeSampleStream.FakeSampleStreamItem
      • com.google.android.exoplayer2.testutil.FakeShuffleOrder (implements com.google.android.exoplayer2.source.ShuffleOrder)
      • diff --git a/docs/doc/reference/com/google/android/exoplayer2/text/Cue.AnchorType.html b/docs/doc/reference/com/google/android/exoplayer2/text/Cue.AnchorType.html index 6eb23858c9..273b95a2dd 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/text/Cue.AnchorType.html +++ b/docs/doc/reference/com/google/android/exoplayer2/text/Cue.AnchorType.html @@ -115,6 +115,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
        @Documented
         @Retention(SOURCE)
        +@Target({FIELD,METHOD,PARAMETER,LOCAL_VARIABLE,TYPE_USE})
         public static @interface Cue.AnchorType
        The type of anchor, which may be unset. One of Cue.TYPE_UNSET, Cue.ANCHOR_TYPE_START, Cue.ANCHOR_TYPE_MIDDLE or Cue.ANCHOR_TYPE_END.
        diff --git a/docs/doc/reference/com/google/android/exoplayer2/text/Cue.Builder.html b/docs/doc/reference/com/google/android/exoplayer2/text/Cue.Builder.html index 9cd6a35fdb..3e903c8d40 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/text/Cue.Builder.html +++ b/docs/doc/reference/com/google/android/exoplayer2/text/Cue.Builder.html @@ -214,14 +214,14 @@ extends -int +@com.google.android.exoplayer2.text.Cue.AnchorType int getLineAnchor() -
        Gets the cue box anchor positioned by line.
        +
        Gets the cue box anchor positioned by line.
        -int +@com.google.android.exoplayer2.text.Cue.LineType int getLineType()
        Gets the type of the value of getLine().
        @@ -231,12 +231,12 @@ extends float getPosition() -
        Gets the fractional position of the positionAnchor of the cue - box within the viewport in the direction orthogonal to line.
        +
        Gets the fractional position of the positionAnchor of the cue + box within the viewport in the direction orthogonal to line.
        -int +@com.google.android.exoplayer2.text.Cue.AnchorType int getPositionAnchor()
        Gets the cue box anchor positioned by position.
        @@ -272,14 +272,14 @@ extends -int +@com.google.android.exoplayer2.text.Cue.TextSizeType int getTextSizeType()
        Gets the default text size type for this cue's text.
        -int +@com.google.android.exoplayer2.text.Cue.VerticalType int getVerticalType()
        Gets the vertical formatting for this Cue.
        @@ -315,8 +315,8 @@ extends Cue.Builder -setLine​(float line, - int lineType) +setLine​(float line, + @com.google.android.exoplayer2.text.Cue.LineType int lineType)
        Sets the position of the cue box within the viewport in the direction orthogonal to the writing direction.
        @@ -324,9 +324,9 @@ extends Cue.Builder -setLineAnchor​(int lineAnchor) +setLineAnchor​(@com.google.android.exoplayer2.text.Cue.AnchorType int lineAnchor) -
        Sets the cue box anchor positioned by line.
        +
        Sets the cue box anchor positioned by line.
        @@ -340,13 +340,13 @@ extends Cue.Builder setPosition​(float position) -
        Sets the fractional position of the positionAnchor of the cue - box within the viewport in the direction orthogonal to line.
        +
        Sets the fractional position of the positionAnchor of the cue + box within the viewport in the direction orthogonal to line.
        Cue.Builder -setPositionAnchor​(int positionAnchor) +setPositionAnchor​(@com.google.android.exoplayer2.text.Cue.AnchorType int positionAnchor)
        Sets the cue box anchor positioned by position.
        @@ -382,15 +382,15 @@ extends Cue.Builder -setTextSize​(float textSize, - int textSizeType) +setTextSize​(float textSize, + @com.google.android.exoplayer2.text.Cue.TextSizeType int textSizeType)
        Sets the default text size and type for this cue's text.
        Cue.Builder -setVerticalType​(int verticalType) +setVerticalType​(@com.google.android.exoplayer2.text.Cue.VerticalType int verticalType)
        Sets the vertical formatting for this Cue.
        @@ -557,7 +557,7 @@ public  +
          @@ -565,7 +565,7 @@ public public Cue.Builder setLine​(float line, @LineType - int lineType) + @com.google.android.exoplayer2.text.Cue.LineType int lineType)
          Sets the position of the cue box within the viewport in the direction orthogonal to the writing direction.
          @@ -599,7 +599,7 @@ public float getLine()

          getLineType

          @Pure
           @LineType
          -public int getLineType()
          +public @com.google.android.exoplayer2.text.Cue.LineType int getLineType()
          Gets the type of the value of getLine().
          See Also:
          @@ -607,15 +607,15 @@ public int getLineType()
        - +
        • setLineAnchor

          public Cue.Builder setLineAnchor​(@AnchorType
          -                                 int lineAnchor)
          -
          Sets the cue box anchor positioned by line.
          + @com.google.android.exoplayer2.text.Cue.AnchorType int lineAnchor) +
          Sets the cue box anchor positioned by line.
          See Also:
          Cue.lineAnchor
          @@ -630,8 +630,8 @@ public int getLineType()

          getLineAnchor

          @Pure
           @AnchorType
          -public int getLineAnchor()
          -
          Gets the cue box anchor positioned by line.
          +public @com.google.android.exoplayer2.text.Cue.AnchorType int getLineAnchor() +
          Gets the cue box anchor positioned by line.
          See Also:
          Cue.lineAnchor
          @@ -645,8 +645,8 @@ public int getLineAnchor()
        • setPosition

          public Cue.Builder setPosition​(float position)
          -
          Sets the fractional position of the positionAnchor of the cue - box within the viewport in the direction orthogonal to line.
          +
          Sets the fractional position of the positionAnchor of the cue + box within the viewport in the direction orthogonal to line.
          See Also:
          Cue.position
          @@ -661,22 +661,22 @@ public int getLineAnchor()

          getPosition

          @Pure
           public float getPosition()
          -
          Gets the fractional position of the positionAnchor of the cue - box within the viewport in the direction orthogonal to line.
          +
          Gets the fractional position of the positionAnchor of the cue + box within the viewport in the direction orthogonal to line.
          See Also:
          Cue.position
        - +
        • setPositionAnchor

          public Cue.Builder setPositionAnchor​(@AnchorType
          -                                     int positionAnchor)
          + @com.google.android.exoplayer2.text.Cue.AnchorType int positionAnchor)
          Sets the cue box anchor positioned by position.
          See Also:
          @@ -692,7 +692,7 @@ public float getPosition()

          getPositionAnchor

          @Pure
           @AnchorType
          -public int getPositionAnchor()
          +public @com.google.android.exoplayer2.text.Cue.AnchorType int getPositionAnchor()
          Gets the cue box anchor positioned by position.
          See Also:
          @@ -700,7 +700,7 @@ public int getPositionAnchor()
        - +
          @@ -708,7 +708,7 @@ public int getPositionAnchor()

          setTextSize

          public Cue.Builder setTextSize​(float textSize,
                                          @TextSizeType
          -                               int textSizeType)
          + @com.google.android.exoplayer2.text.Cue.TextSizeType int textSizeType)
          Sets the default text size and type for this cue's text.
          See Also:
          @@ -725,7 +725,7 @@ public int getPositionAnchor()

          getTextSizeType

          @Pure
           @TextSizeType
          -public int getTextSizeType()
          +public @com.google.android.exoplayer2.text.Cue.TextSizeType int getTextSizeType()
          Gets the default text size type for this cue's text.
          See Also:
          @@ -866,14 +866,14 @@ public int getWindowColor()
        - +
        • setVerticalType

          public Cue.Builder setVerticalType​(@VerticalType
          -                                   int verticalType)
          + @com.google.android.exoplayer2.text.Cue.VerticalType int verticalType)
          Sets the vertical formatting for this Cue.
          See Also:
          @@ -899,7 +899,7 @@ public int getWindowColor()

          getVerticalType

          @Pure
           @VerticalType
          -public int getVerticalType()
          +public @com.google.android.exoplayer2.text.Cue.VerticalType int getVerticalType()
          Gets the vertical formatting for this Cue.
          See Also:
          diff --git a/docs/doc/reference/com/google/android/exoplayer2/text/Cue.LineType.html b/docs/doc/reference/com/google/android/exoplayer2/text/Cue.LineType.html index 632df7691c..ab5f914c7b 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/text/Cue.LineType.html +++ b/docs/doc/reference/com/google/android/exoplayer2/text/Cue.LineType.html @@ -115,6 +115,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
          @Documented
           @Retention(SOURCE)
          +@Target({FIELD,METHOD,PARAMETER,LOCAL_VARIABLE,TYPE_USE})
           public static @interface Cue.LineType
          The type of line, which may be unset. One of Cue.TYPE_UNSET, Cue.LINE_TYPE_FRACTION or Cue.LINE_TYPE_NUMBER.
          diff --git a/docs/doc/reference/com/google/android/exoplayer2/text/Cue.TextSizeType.html b/docs/doc/reference/com/google/android/exoplayer2/text/Cue.TextSizeType.html index 9cd2ad0ae6..b7ea166bb5 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/text/Cue.TextSizeType.html +++ b/docs/doc/reference/com/google/android/exoplayer2/text/Cue.TextSizeType.html @@ -115,6 +115,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
          @Documented
           @Retention(SOURCE)
          +@Target({FIELD,METHOD,PARAMETER,LOCAL_VARIABLE,TYPE_USE})
           public static @interface Cue.TextSizeType
          The type of default text size for this cue, which may be unset. One of Cue.TYPE_UNSET, Cue.TEXT_SIZE_TYPE_FRACTIONAL, Cue.TEXT_SIZE_TYPE_FRACTIONAL_IGNORE_PADDING or Cue.TEXT_SIZE_TYPE_ABSOLUTE.
          diff --git a/docs/doc/reference/com/google/android/exoplayer2/text/Cue.VerticalType.html b/docs/doc/reference/com/google/android/exoplayer2/text/Cue.VerticalType.html index 8ffed3f999..d10ea25ec3 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/text/Cue.VerticalType.html +++ b/docs/doc/reference/com/google/android/exoplayer2/text/Cue.VerticalType.html @@ -115,6 +115,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
          @Documented
           @Retention(SOURCE)
          +@Target({FIELD,METHOD,PARAMETER,LOCAL_VARIABLE,TYPE_USE})
           public static @interface Cue.VerticalType
          The type of vertical layout for this cue, which may be unset (i.e. horizontal). One of Cue.TYPE_UNSET, Cue.VERTICAL_TYPE_RL or Cue.VERTICAL_TYPE_LR.
        • diff --git a/docs/doc/reference/com/google/android/exoplayer2/text/Cue.html b/docs/doc/reference/com/google/android/exoplayer2/text/Cue.html index 71fde14006..4f2f64667c 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/text/Cue.html +++ b/docs/doc/reference/com/google/android/exoplayer2/text/Cue.html @@ -298,14 +298,14 @@ implements -int +@com.google.android.exoplayer2.text.Cue.AnchorType int lineAnchor
          The cue box anchor positioned by line when lineType is LINE_TYPE_FRACTION.
          -int +@com.google.android.exoplayer2.text.Cue.LineType int lineType
          The type of the line value.
          @@ -328,7 +328,7 @@ implements -int +@com.google.android.exoplayer2.text.Cue.AnchorType int positionAnchor
          The cue box anchor positioned by position.
          @@ -393,7 +393,7 @@ implements -int +@com.google.android.exoplayer2.text.Cue.TextSizeType int textSizeType
          The default text size type for this cue's text, or TYPE_UNSET if this cue has no @@ -422,7 +422,7 @@ implements -int +@com.google.android.exoplayer2.text.Cue.VerticalType int verticalType
          The vertical formatting of this Cue, or TYPE_UNSET if the cue has no vertical setting @@ -469,13 +469,13 @@ implements -Cue​(CharSequence text, +Cue​(CharSequence text, Layout.Alignment textAlignment, float line, - int lineType, - int lineAnchor, + @com.google.android.exoplayer2.text.Cue.LineType int lineType, + @com.google.android.exoplayer2.text.Cue.AnchorType int lineAnchor, float position, - int positionAnchor, + @com.google.android.exoplayer2.text.Cue.AnchorType int positionAnchor, float size)
          Deprecated. @@ -484,16 +484,16 @@ implements -Cue​(CharSequence text, +Cue​(CharSequence text, Layout.Alignment textAlignment, float line, - int lineType, - int lineAnchor, + @com.google.android.exoplayer2.text.Cue.LineType int lineType, + @com.google.android.exoplayer2.text.Cue.AnchorType int lineAnchor, float position, - int positionAnchor, + @com.google.android.exoplayer2.text.Cue.AnchorType int positionAnchor, float size, - boolean windowColorSet, - int windowColor) + @com.google.android.exoplayer2.text.Cue.TextSizeType int textSizeType, + float textSize)
          Deprecated. @@ -501,16 +501,16 @@ implements -Cue​(CharSequence text, +Cue​(CharSequence text, Layout.Alignment textAlignment, float line, - int lineType, - int lineAnchor, + @com.google.android.exoplayer2.text.Cue.LineType int lineType, + @com.google.android.exoplayer2.text.Cue.AnchorType int lineAnchor, float position, - int positionAnchor, + @com.google.android.exoplayer2.text.Cue.AnchorType int positionAnchor, float size, - int textSizeType, - float textSize) + boolean windowColorSet, + int windowColor)
          Deprecated. @@ -839,7 +839,7 @@ public final 

          lineType

          @LineType
          -public final int lineType
          +public final @com.google.android.exoplayer2.text.Cue.LineType int lineType
          The type of the line value.
            @@ -867,7 +867,7 @@ public final int lineType
          • lineAnchor

            @AnchorType
            -public final int lineAnchor
            +public final @com.google.android.exoplayer2.text.Cue.AnchorType int lineAnchor
            The cue box anchor positioned by line when lineType is LINE_TYPE_FRACTION.

            One of: @@ -911,7 +911,7 @@ public final int lineAnchor

          • positionAnchor

            @AnchorType
            -public final int positionAnchor
            +public final @com.google.android.exoplayer2.text.Cue.AnchorType int positionAnchor
            The cue box anchor positioned by position. One of ANCHOR_TYPE_START, ANCHOR_TYPE_MIDDLE, ANCHOR_TYPE_END and TYPE_UNSET.

            For the normal case of horizontal text, ANCHOR_TYPE_START, ANCHOR_TYPE_MIDDLE and ANCHOR_TYPE_END correspond to the left, middle and right of @@ -968,7 +968,7 @@ public final int positionAnchor

          • textSizeType

            @TextSizeType
            -public final int textSizeType
            +public final @com.google.android.exoplayer2.text.Cue.TextSizeType int textSizeType
            The default text size type for this cue's text, or TYPE_UNSET if this cue has no default text size.
          • @@ -991,7 +991,7 @@ public final int textSizeType
          • verticalType

            @VerticalType
            -public final int verticalType
            +public final @com.google.android.exoplayer2.text.Cue.VerticalType int verticalType
            The vertical formatting of this Cue, or TYPE_UNSET if the cue has no vertical setting (and so should be horizontal).
          • @@ -1045,7 +1045,7 @@ public Cue​( +
              @@ -1057,12 +1057,12 @@ public Cue​(Layout.Alignment textAlignment, float line, @LineType - int lineType, + @com.google.android.exoplayer2.text.Cue.LineType int lineType, @AnchorType - int lineAnchor, + @com.google.android.exoplayer2.text.Cue.AnchorType int lineAnchor, float position, @AnchorType - int positionAnchor, + @com.google.android.exoplayer2.text.Cue.AnchorType int positionAnchor, float size)
              Deprecated. @@ -1081,7 +1081,7 @@ public Cue​( +
                @@ -1093,15 +1093,15 @@ public Cue​(Layout.Alignment textAlignment, float line, @LineType - int lineType, + @com.google.android.exoplayer2.text.Cue.LineType int lineType, @AnchorType - int lineAnchor, + @com.google.android.exoplayer2.text.Cue.AnchorType int lineAnchor, float position, @AnchorType - int positionAnchor, + @com.google.android.exoplayer2.text.Cue.AnchorType int positionAnchor, float size, @TextSizeType - int textSizeType, + @com.google.android.exoplayer2.text.Cue.TextSizeType int textSizeType, float textSize)
                Deprecated. @@ -1122,7 +1122,7 @@ public Cue​( +
                  @@ -1134,12 +1134,12 @@ public Cue​(Layout.Alignment textAlignment, float line, @LineType - int lineType, + @com.google.android.exoplayer2.text.Cue.LineType int lineType, @AnchorType - int lineAnchor, + @com.google.android.exoplayer2.text.Cue.AnchorType int lineAnchor, float position, @AnchorType - int positionAnchor, + @com.google.android.exoplayer2.text.Cue.AnchorType int positionAnchor, float size, boolean windowColorSet, int windowColor) diff --git a/docs/doc/reference/com/google/android/exoplayer2/util/IntArrayQueue.html b/docs/doc/reference/com/google/android/exoplayer2/text/CueDecoder.html similarity index 72% rename from docs/doc/reference/com/google/android/exoplayer2/util/IntArrayQueue.html rename to docs/doc/reference/com/google/android/exoplayer2/text/CueDecoder.html index adf9c49028..7a845cd713 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/util/IntArrayQueue.html +++ b/docs/doc/reference/com/google/android/exoplayer2/text/CueDecoder.html @@ -2,7 +2,7 @@ -IntArrayQueue (ExoPlayer library) +CueDecoder (ExoPlayer library) @@ -19,13 +19,13 @@ + + + + + + + + + +
                  + +
                  + +
                  +
                  + +

                  Class CueEncoder

                  +
                  +
                  + +
                  +
                    +
                  • +
                    +
                    public final class CueEncoder
                    +extends Object
                    +
                    Encodes data that can be decoded by CueDecoder.
                    +
                  • +
                  +
                  +
                  + +
                  +
                  +
                    +
                  • + +
                    +
                      +
                    • + + +

                      Constructor Detail

                      + + + +
                        +
                      • +

                        CueEncoder

                        +
                        public CueEncoder()
                        +
                      • +
                      +
                    • +
                    +
                    + +
                    +
                      +
                    • + + +

                      Method Detail

                      + + + +
                        +
                      • +

                        encode

                        +
                        public byte[] encode​(List<Cue> cues)
                        +
                        Encodes an List of Cue to a byte array that can be decoded by CueDecoder.
                        +
                        +
                        Parameters:
                        +
                        cues - Cues to be encoded.
                        +
                        Returns:
                        +
                        The serialized byte array.
                        +
                        +
                      • +
                      +
                    • +
                    +
                    +
                  • +
                  +
                  +
                  +
                  + + + + diff --git a/docs/doc/reference/com/google/android/exoplayer2/text/ExoplayerCuesDecoder.html b/docs/doc/reference/com/google/android/exoplayer2/text/ExoplayerCuesDecoder.html new file mode 100644 index 0000000000..ca24d1adde --- /dev/null +++ b/docs/doc/reference/com/google/android/exoplayer2/text/ExoplayerCuesDecoder.html @@ -0,0 +1,472 @@ + + + + +ExoplayerCuesDecoder (ExoPlayer library) + + + + + + + + + + + + + +
                  + +
                  + +
                  +
                  + +

                  Class ExoplayerCuesDecoder

                  +
                  +
                  +
                    +
                  • java.lang.Object
                  • +
                  • +
                      +
                    • com.google.android.exoplayer2.text.ExoplayerCuesDecoder
                    • +
                    +
                  • +
                  +
                  + +
                  +
                  + +
                  +
                  + +
                  +
                  +
                  + + + + diff --git a/docs/doc/reference/com/google/android/exoplayer2/text/SubtitleDecoder.html b/docs/doc/reference/com/google/android/exoplayer2/text/SubtitleDecoder.html index 9adf827c7c..92be05fc3c 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/text/SubtitleDecoder.html +++ b/docs/doc/reference/com/google/android/exoplayer2/text/SubtitleDecoder.html @@ -126,7 +126,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  • All Known Implementing Classes:
    -
    Cea608Decoder, Cea708Decoder, DvbDecoder, Mp4WebvttDecoder, PgsDecoder, SimpleSubtitleDecoder, SsaDecoder, SubripDecoder, TtmlDecoder, Tx3gDecoder, WebvttDecoder
    +
    Cea608Decoder, Cea708Decoder, DvbDecoder, ExoplayerCuesDecoder, Mp4WebvttDecoder, PgsDecoder, SimpleSubtitleDecoder, SsaDecoder, SubripDecoder, TtmlDecoder, Tx3gDecoder, WebvttDecoder

    public interface SubtitleDecoder
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/text/SubtitleDecoderFactory.html b/docs/doc/reference/com/google/android/exoplayer2/text/SubtitleDecoderFactory.html
    index 86680e3a65..0fb0e3b828 100644
    --- a/docs/doc/reference/com/google/android/exoplayer2/text/SubtitleDecoderFactory.html
    +++ b/docs/doc/reference/com/google/android/exoplayer2/text/SubtitleDecoderFactory.html
    @@ -222,6 +222,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
        
  • Cea708 (Cea708Decoder)
  • DVB (DvbDecoder)
  • PGS (PgsDecoder) +
  • Exoplayer Cues (ExoplayerCuesDecoder)
  • diff --git a/docs/doc/reference/com/google/android/exoplayer2/text/SubtitleExtractor.html b/docs/doc/reference/com/google/android/exoplayer2/text/SubtitleExtractor.html new file mode 100644 index 0000000000..a565d2e869 --- /dev/null +++ b/docs/doc/reference/com/google/android/exoplayer2/text/SubtitleExtractor.html @@ -0,0 +1,493 @@ + + + + +SubtitleExtractor (ExoPlayer library) + + + + + + + + + + + + + +
    + +
    + +
    +
    + +

    Class SubtitleExtractor

    +
    +
    +
      +
    • java.lang.Object
    • +
    • +
        +
      • com.google.android.exoplayer2.text.SubtitleExtractor
      • +
      +
    • +
    +
    +
      +
    • +
      +
      All Implemented Interfaces:
      +
      Extractor
      +
      +
      +
      public class SubtitleExtractor
      +extends Object
      +implements Extractor
      +
      Generic extractor for extracting subtitles from various subtitle formats.
      +
    • +
    +
    +
    + +
    +
    +
      +
    • + +
      +
        +
      • + + +

        Constructor Detail

        + + + +
          +
        • +

          SubtitleExtractor

          +
          public SubtitleExtractor​(SubtitleDecoder subtitleDecoder,
          +                         Format format)
          +
          +
          Parameters:
          +
          subtitleDecoder - The decoder used for decoding the subtitle data. The extractor will + release the decoder in release().
          +
          format - Format that describes subtitle data.
          +
          +
        • +
        +
      • +
      +
      + +
      +
        +
      • + + +

        Method Detail

        + + + +
          +
        • +

          sniff

          +
          public boolean sniff​(ExtractorInput input)
          +              throws IOException
          +
          Description copied from interface: Extractor
          +
          Returns whether this extractor can extract samples from the ExtractorInput, which must + provide data from the start of the stream. + +

          If true is returned, the input's reading position may have been modified. + Otherwise, only its peek position may have been modified.

          +
          +
          Specified by:
          +
          sniff in interface Extractor
          +
          Parameters:
          +
          input - The ExtractorInput from which data should be peeked/read.
          +
          Returns:
          +
          Whether this extractor can read the provided input.
          +
          Throws:
          +
          IOException - If an error occurred reading from the input.
          +
          +
        • +
        + + + + + + + +
          +
        • +

          read

          +
          public int read​(ExtractorInput input,
          +                PositionHolder seekPosition)
          +         throws IOException
          +
          Description copied from interface: Extractor
          +
          Extracts data read from a provided ExtractorInput. Must not be called before Extractor.init(ExtractorOutput). + +

          A single call to this method will block until some progress has been made, but will not + block for longer than this. Hence each call will consume only a small amount of input data. + +

          In the common case, Extractor.RESULT_CONTINUE is returned to indicate that the ExtractorInput passed to the next read is required to provide data continuing from the + position in the stream reached by the returning call. If the extractor requires data to be + provided from a different position, then that position is set in seekPosition and + Extractor.RESULT_SEEK is returned. If the extractor reached the end of the data provided by the + ExtractorInput, then Extractor.RESULT_END_OF_INPUT is returned. + +

          When this method throws an IOException, extraction may continue by providing an + ExtractorInput with an unchanged read position to + a subsequent call to this method.

          +
          +
          Specified by:
          +
          read in interface Extractor
          +
          Parameters:
          +
          input - The ExtractorInput from which data should be read.
          +
          seekPosition - If Extractor.RESULT_SEEK is returned, this holder is updated to hold the + position of the required data.
          +
          Returns:
          +
          One of the RESULT_ values defined in this interface.
          +
          Throws:
          +
          IOException - If an error occurred reading from or parsing the input.
          +
          +
        • +
        + + + +
          +
        • +

          seek

          +
          public void seek​(long position,
          +                 long timeUs)
          +
          Description copied from interface: Extractor
          +
          Notifies the extractor that a seek has occurred. + +

          Following a call to this method, the ExtractorInput passed to the next invocation of + Extractor.read(ExtractorInput, PositionHolder) is required to provide data starting from + position in the stream. Valid random access positions are the start of the stream and + positions that can be obtained from any SeekMap passed to the ExtractorOutput.

          +
          +
          Specified by:
          +
          seek in interface Extractor
          +
          Parameters:
          +
          position - The byte offset in the stream from which data will be provided.
          +
          timeUs - The seek time in microseconds.
          +
          +
        • +
        + + + +
          +
        • +

          release

          +
          public void release()
          +
          Releases the extractor's resources, including the SubtitleDecoder.
          +
          +
          Specified by:
          +
          release in interface Extractor
          +
          +
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
    + + + + diff --git a/docs/doc/reference/com/google/android/exoplayer2/text/SubtitleInputBuffer.html b/docs/doc/reference/com/google/android/exoplayer2/text/SubtitleInputBuffer.html index c1fc18ff01..86f34c676f 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/text/SubtitleInputBuffer.html +++ b/docs/doc/reference/com/google/android/exoplayer2/text/SubtitleInputBuffer.html @@ -186,7 +186,7 @@ extends DecoderInputBuffer -BUFFER_REPLACEMENT_MODE_DIRECT, BUFFER_REPLACEMENT_MODE_DISABLED, BUFFER_REPLACEMENT_MODE_NORMAL, cryptoInfo, data, supplementalData, timeUs, waitingForKeys +BUFFER_REPLACEMENT_MODE_DIRECT, BUFFER_REPLACEMENT_MODE_DISABLED, BUFFER_REPLACEMENT_MODE_NORMAL, cryptoInfo, data, format, supplementalData, timeUs, waitingForKeys diff --git a/docs/doc/reference/com/google/android/exoplayer2/text/SubtitleOutputBuffer.html b/docs/doc/reference/com/google/android/exoplayer2/text/SubtitleOutputBuffer.html index 41665a12c8..410332b356 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/text/SubtitleOutputBuffer.html +++ b/docs/doc/reference/com/google/android/exoplayer2/text/SubtitleOutputBuffer.html @@ -124,7 +124,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  • com.google.android.exoplayer2.decoder.Buffer
  • @@ -178,11 +178,11 @@ implements -
  • +
  • -

    Fields inherited from class com.google.android.exoplayer2.decoder.OutputBuffer

    -skippedOutputBufferCount, timeUs
  • +

    Fields inherited from class com.google.android.exoplayer2.decoder.DecoderOutputBuffer

    +skippedOutputBufferCount, timeUs @@ -270,11 +270,11 @@ implements -
  • +
  • -

    Methods inherited from class com.google.android.exoplayer2.decoder.OutputBuffer

    -release
  • +

    Methods inherited from class com.google.android.exoplayer2.decoder.DecoderOutputBuffer

    +release @@ -218,6 +225,16 @@ extends static int +DEFAULT_MAX_HEIGHT_TO_DISCARD +  + + +static int +DEFAULT_MAX_WIDTH_TO_DISCARD +  + + +static int DEFAULT_MIN_DURATION_FOR_QUALITY_INCREASE_MS   @@ -260,13 +277,15 @@ extends protected -AdaptiveTrackSelection​(TrackGroup group, +AdaptiveTrackSelection​(TrackGroup group, int[] tracks, - int type, + @com.google.android.exoplayer2.trackselection.TrackSelection.Type int type, BandwidthMeter bandwidthMeter, long minDurationForQualityIncreaseMs, long maxDurationForQualityDecreaseMs, long minDurationToRetainAfterDiscardMs, + int maxWidthToDiscard, + int maxHeightToDiscard, float bandwidthFraction, float bufferedFractionToLiveEdgeForQualityIncrease, List<AdaptiveTrackSelection.AdaptationCheckpoint> adaptationCheckpoints, @@ -462,6 +481,32 @@ extends + + +
      +
    • +

      DEFAULT_MAX_WIDTH_TO_DISCARD

      +
      public static final int DEFAULT_MAX_WIDTH_TO_DISCARD
      +
      +
      See Also:
      +
      Constant Field Values
      +
      +
    • +
    + + + +
      +
    • +

      DEFAULT_MAX_HEIGHT_TO_DISCARD

      +
      public static final int DEFAULT_MAX_HEIGHT_TO_DISCARD
      +
      +
      See Also:
      +
      Constant Field Values
      +
      +
    • +
    @@ -516,7 +561,7 @@ extends + + @@ -229,9 +236,9 @@ implements   -BaseTrackSelection​(TrackGroup group, +BaseTrackSelection​(TrackGroup group, int[] tracks, - int type) + @com.google.android.exoplayer2.trackselection.TrackSelection.Type int type)   @@ -460,7 +467,7 @@ implements +
      @@ -468,7 +475,7 @@ implements TrackGroup group, int[] tracks, - int type)
    + @com.google.android.exoplayer2.trackselection.TrackSelection.Type int type)
    Parameters:
    group - The TrackGroup. Must not be null.
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/trackselection/DefaultTrackSelector.Parameters.html b/docs/doc/reference/com/google/android/exoplayer2/trackselection/DefaultTrackSelector.Parameters.html index d02f0486da..d855721581 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/trackselection/DefaultTrackSelector.Parameters.html +++ b/docs/doc/reference/com/google/android/exoplayer2/trackselection/DefaultTrackSelector.Parameters.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":10,"i1":10,"i2":10,"i3":9,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10}; +var data = {"i0":10,"i1":10,"i2":9,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10}; var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -135,7 +135,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  • All Implemented Interfaces:
    -
    Parcelable
    +
    Bundleable
    Enclosing class:
    @@ -144,7 +144,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    public static final class DefaultTrackSelector.Parameters
     extends TrackSelectionParameters
    -implements Parcelable
    +implements Bundleable
    Extends DefaultTrackSelector.Parameters by adding fields that are specific to DefaultTrackSelector.
  • @@ -167,11 +167,11 @@ implements TrackSelectionParameters.Builder
    @@ -233,9 +233,11 @@ implements -static Parcelable.Creator<DefaultTrackSelector.Parameters> +static Bundleable.Creator<DefaultTrackSelector.Parameters> CREATOR -  + +
    Object that can restore Parameters from a Bundle.
    + static DefaultTrackSelector.Parameters @@ -254,7 +256,7 @@ implements -int +@com.google.android.exoplayer2.C.SelectionFlags int disabledTextTrackSelectionFlags
    Bitmask of selection flags that are disabled for text track selections.
    @@ -295,14 +297,7 @@ implements TrackSelectionParameters -forceHighestSupportedBitrate, forceLowestBitrate, maxAudioBitrate, maxAudioChannelCount, maxVideoBitrate, maxVideoFrameRate, maxVideoHeight, maxVideoWidth, minVideoBitrate, minVideoFrameRate, minVideoHeight, minVideoWidth, preferredAudioLanguages, preferredAudioMimeTypes, preferredAudioRoleFlags, preferredTextLanguages, preferredTextRoleFlags, preferredVideoMimeTypes, selectUndeterminedTextLanguage, viewportHeight, viewportOrientationMayChange, viewportWidth - - @@ -329,30 +324,25 @@ implements -int -describeContents() -  - - boolean equals​(Object obj)   - + static DefaultTrackSelector.Parameters getDefaults​(Context context)
    Returns an instance configured with default values.
    - + boolean getRendererDisabled​(int rendererIndex)
    Returns whether the renderer is disabled.
    - + DefaultTrackSelector.SelectionOverride getSelectionOverride​(int rendererIndex, TrackGroupArray groups) @@ -360,12 +350,12 @@ implements Returns the override for the specified renderer and TrackGroupArray. - + int hashCode()   - + boolean hasSelectionOverride​(int rendererIndex, TrackGroupArray groups) @@ -373,11 +363,12 @@ implements Returns whether there is an override for the specified renderer and TrackGroupArray. - -void -writeToParcel​(Parcel dest, - int flags) -  + +Bundle +toBundle() + +
    Returns a Bundle representing the information stored in this object.
    + @@ -564,7 +546,7 @@ public final int disabledTextTrackSelectionFlags -
      +
      • allowMultipleAdaptiveSelections

        public final boolean allowMultipleAdaptiveSelections
        @@ -576,6 +558,16 @@ public final int disabledTextTrackSelectionFlags other track selection parameters.
      + + + +
    @@ -690,34 +682,20 @@ public final  - - - - + diff --git a/docs/doc/reference/com/google/android/exoplayer2/trackselection/DefaultTrackSelector.ParametersBuilder.html b/docs/doc/reference/com/google/android/exoplayer2/trackselection/DefaultTrackSelector.ParametersBuilder.html index 168ceb60a4..dda76457ee 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/trackselection/DefaultTrackSelector.ParametersBuilder.html +++ b/docs/doc/reference/com/google/android/exoplayer2/trackselection/DefaultTrackSelector.ParametersBuilder.html @@ -25,8 +25,8 @@ catch(err) { } //--> -var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10}; -var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; +var data = {"i0":10,"i1":42,"i2":42,"i3":42,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":42,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10}; +var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; var tableTab = "tableTab"; @@ -187,7 +187,7 @@ extends -All Methods Instance Methods Concrete Methods  +All Methods Instance Methods Concrete Methods Deprecated Methods  Modifier and Type Method @@ -205,21 +205,27 @@ extends clearSelectionOverride​(int rendererIndex, TrackGroupArray groups) -
    Clears a track selection override for the specified renderer and TrackGroupArray.
    + DefaultTrackSelector.ParametersBuilder clearSelectionOverrides() -
    Clears all track selection overrides for all renderers.
    + DefaultTrackSelector.ParametersBuilder clearSelectionOverrides​(int rendererIndex) -
    Clears all track selection overrides for the specified renderer.
    + @@ -238,41 +244,48 @@ extends +protected DefaultTrackSelector.ParametersBuilder +set​(TrackSelectionParameters parameters) + +
    Overrides the value of the builder with the value of TrackSelectionParameters.
    + + + DefaultTrackSelector.ParametersBuilder setAllowAudioMixedChannelCountAdaptiveness​(boolean allowAudioMixedChannelCountAdaptiveness)
    Sets whether to allow adaptive audio selections containing mixed channel counts.
    - + DefaultTrackSelector.ParametersBuilder setAllowAudioMixedMimeTypeAdaptiveness​(boolean allowAudioMixedMimeTypeAdaptiveness)
    Sets whether to allow adaptive audio selections containing mixed MIME types.
    - + DefaultTrackSelector.ParametersBuilder setAllowAudioMixedSampleRateAdaptiveness​(boolean allowAudioMixedSampleRateAdaptiveness)
    Sets whether to allow adaptive audio selections containing mixed sample rates.
    - + DefaultTrackSelector.ParametersBuilder setAllowMultipleAdaptiveSelections​(boolean allowMultipleAdaptiveSelections)
    Sets whether multiple adaptive selections with more than one track are allowed.
    - + DefaultTrackSelector.ParametersBuilder setAllowVideoMixedMimeTypeAdaptiveness​(boolean allowVideoMixedMimeTypeAdaptiveness)
    Sets whether to allow adaptive video selections containing mixed MIME types.
    - + DefaultTrackSelector.ParametersBuilder setAllowVideoNonSeamlessAdaptiveness​(boolean allowVideoNonSeamlessAdaptiveness) @@ -280,28 +293,36 @@ extends + DefaultTrackSelector.ParametersBuilder -setDisabledTextTrackSelectionFlags​(int disabledTextTrackSelectionFlags) +setDisabledTextTrackSelectionFlags​(@com.google.android.exoplayer2.C.SelectionFlags int disabledTextTrackSelectionFlags)
    Sets a bitmask of selection flags that are disabled for text track selections.
    - + +DefaultTrackSelector.ParametersBuilder +setDisabledTrackTypes​(Set<@TrackType Integer> disabledTrackTypes) + +
    Sets the disabled track types, preventing all tracks of those types from being selected for + playback.
    + + + DefaultTrackSelector.ParametersBuilder setExceedAudioConstraintsIfNecessary​(boolean exceedAudioConstraintsIfNecessary)
    Sets whether to exceed the setMaxAudioChannelCount(int) and setMaxAudioBitrate(int) constraints when no selection can be made otherwise.
    - + DefaultTrackSelector.ParametersBuilder setExceedRendererCapabilitiesIfNecessary​(boolean exceedRendererCapabilitiesIfNecessary)
    Sets whether to exceed renderer capabilities when no selection can be made otherwise.
    - + DefaultTrackSelector.ParametersBuilder setExceedVideoConstraintsIfNecessary​(boolean exceedVideoConstraintsIfNecessary) @@ -309,7 +330,7 @@ extends setMaxVideoFrameRate(int) constraints when no selection can be made otherwise. - + DefaultTrackSelector.ParametersBuilder setForceHighestSupportedBitrate​(boolean forceHighestSupportedBitrate) @@ -317,7 +338,7 @@ extends + DefaultTrackSelector.ParametersBuilder setForceLowestBitrate​(boolean forceLowestBitrate) @@ -325,35 +346,35 @@ extends + DefaultTrackSelector.ParametersBuilder setMaxAudioBitrate​(int maxAudioBitrate)
    Sets the maximum allowed audio bitrate.
    - + DefaultTrackSelector.ParametersBuilder setMaxAudioChannelCount​(int maxAudioChannelCount)
    Sets the maximum allowed audio channel count.
    - + DefaultTrackSelector.ParametersBuilder setMaxVideoBitrate​(int maxVideoBitrate)
    Sets the maximum allowed video bitrate.
    - + DefaultTrackSelector.ParametersBuilder setMaxVideoFrameRate​(int maxVideoFrameRate)
    Sets the maximum allowed video frame rate.
    - + DefaultTrackSelector.ParametersBuilder setMaxVideoSize​(int maxVideoWidth, int maxVideoHeight) @@ -361,28 +382,28 @@ extends Sets the maximum allowed video width and height. - + DefaultTrackSelector.ParametersBuilder setMaxVideoSizeSd() - + DefaultTrackSelector.ParametersBuilder setMinVideoBitrate​(int minVideoBitrate)
    Sets the minimum allowed video bitrate.
    - + DefaultTrackSelector.ParametersBuilder setMinVideoFrameRate​(int minVideoFrameRate)
    Sets the minimum allowed video frame rate.
    - + DefaultTrackSelector.ParametersBuilder setMinVideoSize​(int minVideoWidth, int minVideoHeight) @@ -390,49 +411,49 @@ extends Sets the minimum allowed video width and height. - + DefaultTrackSelector.ParametersBuilder setPreferredAudioLanguage​(String preferredAudioLanguage)
    Sets the preferred language for audio and forced text tracks.
    - + DefaultTrackSelector.ParametersBuilder setPreferredAudioLanguages​(String... preferredAudioLanguages)
    Sets the preferred languages for audio and forced text tracks.
    - + DefaultTrackSelector.ParametersBuilder setPreferredAudioMimeType​(String mimeType)
    Sets the preferred sample MIME type for audio tracks.
    - + DefaultTrackSelector.ParametersBuilder setPreferredAudioMimeTypes​(String... mimeTypes)
    Sets the preferred sample MIME types for audio tracks.
    - + DefaultTrackSelector.ParametersBuilder -setPreferredAudioRoleFlags​(int preferredAudioRoleFlags) +setPreferredAudioRoleFlags​(@com.google.android.exoplayer2.C.RoleFlags int preferredAudioRoleFlags)
    Sets the preferred C.RoleFlags for audio tracks.
    - + DefaultTrackSelector.ParametersBuilder setPreferredTextLanguage​(String preferredTextLanguage)
    Sets the preferred language for text tracks.
    - + DefaultTrackSelector.ParametersBuilder setPreferredTextLanguageAndRoleFlagsToCaptioningManagerSettings​(Context context) @@ -440,35 +461,35 @@ extends CaptioningManager. - + DefaultTrackSelector.ParametersBuilder setPreferredTextLanguages​(String... preferredTextLanguages)
    Sets the preferred languages for text tracks.
    - + DefaultTrackSelector.ParametersBuilder -setPreferredTextRoleFlags​(int preferredTextRoleFlags) +setPreferredTextRoleFlags​(@com.google.android.exoplayer2.C.RoleFlags int preferredTextRoleFlags)
    Sets the preferred C.RoleFlags for text tracks.
    - + DefaultTrackSelector.ParametersBuilder setPreferredVideoMimeType​(String mimeType)
    Sets the preferred sample MIME type for video tracks.
    - + DefaultTrackSelector.ParametersBuilder setPreferredVideoMimeTypes​(String... mimeTypes)
    Sets the preferred sample MIME types for video tracks.
    - + DefaultTrackSelector.ParametersBuilder setRendererDisabled​(int rendererIndex, boolean disabled) @@ -476,16 +497,18 @@ extends Sets whether the renderer at the specified index is disabled. - + DefaultTrackSelector.ParametersBuilder setSelectionOverride​(int rendererIndex, TrackGroupArray groups, DefaultTrackSelector.SelectionOverride override) -
    Overrides the track selection for the renderer at the specified index.
    + - + DefaultTrackSelector.ParametersBuilder setSelectUndeterminedTextLanguage​(boolean selectUndeterminedTextLanguage) @@ -494,14 +517,21 @@ extends + +DefaultTrackSelector.ParametersBuilder +setTrackSelectionOverrides​(TrackSelectionOverrides trackSelectionOverrides) + +
    Sets the selection overrides.
    + + + DefaultTrackSelector.ParametersBuilder setTunnelingEnabled​(boolean tunnelingEnabled)
    Sets whether to enable tunneling if possible.
    - + DefaultTrackSelector.ParametersBuilder setViewportSize​(int viewportWidth, int viewportHeight, @@ -511,7 +541,7 @@ extends + DefaultTrackSelector.ParametersBuilder setViewportSizeToPhysicalDisplaySize​(Context context, boolean viewportOrientationMayChange) @@ -581,6 +611,21 @@ public ParametersBuilder()

    Method Detail

    + + + + @@ -939,19 +984,19 @@ public ParametersBuilder()
    - + - + - +
    • setDisabledTextTrackSelectionFlags

      public DefaultTrackSelector.ParametersBuilder setDisabledTextTrackSelectionFlags​(@SelectionFlags
      -                                                                                 int disabledTextTrackSelectionFlags)
      + @com.google.android.exoplayer2.C.SelectionFlags int disabledTextTrackSelectionFlags)
      Sets a bitmask of selection flags that are disabled for text track selections.
      Parameters:
      @@ -1278,6 +1323,45 @@ public ParametersBuilder()
    + + + + + + + + @@ -1358,10 +1442,14 @@ public ParametersBuilder() @@ -230,13 +225,17 @@ implements SelectionOverride​(int groupIndex, int... tracks) -  + +
    Constructs a SelectionOverride to override tracks of a group.
    + -SelectionOverride​(int groupIndex, +SelectionOverride​(int groupIndex, int[] tracks, - int type) -  + @com.google.android.exoplayer2.trackselection.TrackSelection.Type int type) + +
    Constructs a SelectionOverride of the given type to override tracks of a group.
    + @@ -264,25 +263,21 @@ implements -int -describeContents() -  - - boolean equals​(Object obj)   - + int hashCode()   - -void -writeToParcel​(Parcel dest, - int flags) -  + +Bundle +toBundle() + +
    Returns a Bundle representing the information stored in this object.
    + @@ -350,7 +345,8 @@ implements
  • CREATOR

    -
    public static final Parcelable.Creator<DefaultTrackSelector.SelectionOverride> CREATOR
    +
    public static final Bundleable.Creator<DefaultTrackSelector.SelectionOverride> CREATOR
    +
    Object that can restore SelectionOverride from a Bundle.
  • @@ -371,6 +367,7 @@ implements Constructs a SelectionOverride to override tracks of a group.
    Parameters:
    groupIndex - The overriding track group index.
    @@ -378,7 +375,7 @@ implements
    + @@ -289,7 +289,7 @@ extends - +
      @@ -297,7 +297,7 @@ extends Definition
      public Definition​(TrackGroup group,
                         int[] tracks,
      -                  int type)
      + @com.google.android.exoplayer2.trackselection.TrackSelection.Type int type)
      Parameters:
      group - The TrackGroup. Must not be null.
      diff --git a/docs/doc/reference/com/google/android/exoplayer2/trackselection/ExoTrackSelection.html b/docs/doc/reference/com/google/android/exoplayer2/trackselection/ExoTrackSelection.html index 3d1c5ea47c..10e07433b1 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/trackselection/ExoTrackSelection.html +++ b/docs/doc/reference/com/google/android/exoplayer2/trackselection/ExoTrackSelection.html @@ -168,6 +168,13 @@ extends +
    • + + +

      Nested classes/interfaces inherited from interface com.google.android.exoplayer2.trackselection.TrackSelection

      +TrackSelection.Type
    • +
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/trackselection/FixedTrackSelection.html b/docs/doc/reference/com/google/android/exoplayer2/trackselection/FixedTrackSelection.html index da40da4b81..cd0d6e34ac 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/trackselection/FixedTrackSelection.html +++ b/docs/doc/reference/com/google/android/exoplayer2/trackselection/FixedTrackSelection.html @@ -161,6 +161,13 @@ extends ExoTrackSelection ExoTrackSelection.Definition, ExoTrackSelection.Factory + @@ -207,15 +214,15 @@ extends   -FixedTrackSelection​(TrackGroup group, +FixedTrackSelection​(TrackGroup group, int track, - int type) + @com.google.android.exoplayer2.trackselection.TrackSelection.Type int type)   -FixedTrackSelection​(TrackGroup group, +FixedTrackSelection​(TrackGroup group, int track, - int type, + @com.google.android.exoplayer2.trackselection.TrackSelection.Type int type, int reason, Object data)   @@ -323,7 +330,7 @@ extends + - +
    • getTypeSupport

      @RendererSupport
      -public int getTypeSupport​(int trackType)
      +public int getTypeSupport​(@com.google.android.exoplayer2.C.TrackType int trackType)
      Returns the extent to which tracks of a specified type are supported. This is the best level of support obtained from getRendererSupport(int) for all renderers that handle the specified type. If no such renderers exist then RENDERER_SUPPORT_NO_TRACKS is returned.
      Parameters:
      -
      trackType - The track type. One of the C TRACK_TYPE_* constants.
      +
      trackType - The track type.
      Returns:
      The MappingTrackSelector.MappedTrackInfo.RendererSupport.
      diff --git a/docs/doc/reference/com/google/android/exoplayer2/trackselection/MappingTrackSelector.html b/docs/doc/reference/com/google/android/exoplayer2/trackselection/MappingTrackSelector.html index cb94cbd21e..0ed5d7f45c 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/trackselection/MappingTrackSelector.html +++ b/docs/doc/reference/com/google/android/exoplayer2/trackselection/MappingTrackSelector.html @@ -258,7 +258,7 @@ extends TrackSelector -getBandwidthMeter, init, invalidate
    • +getBandwidthMeter, getParameters, init, invalidate, isSetParametersSupported, setParameters
    + diff --git a/docs/doc/reference/com/google/android/exoplayer2/device/package-summary.html b/docs/doc/reference/com/google/android/exoplayer2/trackselection/TrackSelection.Type.html similarity index 66% rename from docs/doc/reference/com/google/android/exoplayer2/device/package-summary.html rename to docs/doc/reference/com/google/android/exoplayer2/trackselection/TrackSelection.Type.html index 4b3d17cefc..f6817691e2 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/device/package-summary.html +++ b/docs/doc/reference/com/google/android/exoplayer2/trackselection/TrackSelection.Type.html @@ -2,7 +2,7 @@ -com.google.android.exoplayer2.device (ExoPlayer library) +TrackSelection.Type (ExoPlayer library) @@ -19,7 +19,7 @@
    - +
    • setPreferredAudioRoleFlags

      public TrackSelectionParameters.Builder setPreferredAudioRoleFlags​(@RoleFlags
      -                                                                   int preferredAudioRoleFlags)
      + @com.google.android.exoplayer2.C.RoleFlags int preferredAudioRoleFlags)
      Sets the preferred C.RoleFlags for audio tracks.
      Parameters:
      @@ -879,14 +926,14 @@ public Builder()
    - +
    • setPreferredTextRoleFlags

      public TrackSelectionParameters.Builder setPreferredTextRoleFlags​(@RoleFlags
      -                                                                  int preferredTextRoleFlags)
      + @com.google.android.exoplayer2.C.RoleFlags int preferredTextRoleFlags)
      Sets the preferred C.RoleFlags for text tracks.
      Parameters:
      @@ -951,6 +998,39 @@ public Builder()
    + + + +
      +
    • +

      setTrackSelectionOverrides

      +
      public TrackSelectionParameters.Builder setTrackSelectionOverrides​(TrackSelectionOverrides trackSelectionOverrides)
      +
      Sets the selection overrides.
      +
      +
      Parameters:
      +
      trackSelectionOverrides - The track selection overrides.
      +
      Returns:
      +
      This builder.
      +
      +
    • +
    + + + +
      +
    • +

      setDisabledTrackTypes

      +
      public TrackSelectionParameters.Builder setDisabledTrackTypes​(Set<@TrackType Integer> disabledTrackTypes)
      +
      Sets the disabled track types, preventing all tracks of those types from being selected for + playback.
      +
      +
      Parameters:
      +
      disabledTrackTypes - The track types to disable.
      +
      Returns:
      +
      This builder.
      +
      +
    • +
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/trackselection/TrackSelectionParameters.html b/docs/doc/reference/com/google/android/exoplayer2/trackselection/TrackSelectionParameters.html index fcfdea1465..390d48545b 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/trackselection/TrackSelectionParameters.html +++ b/docs/doc/reference/com/google/android/exoplayer2/trackselection/TrackSelectionParameters.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":10,"i1":10,"i2":10,"i3":9,"i4":10,"i5":10}; +var data = {"i0":10,"i1":10,"i2":9,"i3":10,"i4":10}; var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -130,7 +130,7 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  • All Implemented Interfaces:
    -
    Parcelable
    +
    Bundleable
    Direct Known Subclasses:
    @@ -139,8 +139,24 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    public class TrackSelectionParameters
     extends Object
    -implements Parcelable
    -
    Constraint parameters for track selection.
    +implements Bundleable +
    Constraint parameters for track selection. + +

    For example the following code modifies the parameters to restrict video track selections to + SD, and to select a German audio track if there is one: + +

    
    + // Build on the current parameters.
    + TrackSelectionParameters currentParameters = player.getTrackSelectionParameters()
    + // Build the resulting parameters.
    + TrackSelectionParameters newParameters = currentParameters
    +     .buildUpon()
    +     .setMaxVideoSizeSd()
    +     .setPreferredAudioLanguage("deu")
    +     .build();
    + // Set the new parameters.
    + player.setTrackSelectionParameters(newParameters);
    + 
  • @@ -170,11 +186,11 @@ implements -
  • +
  • -

    Nested classes/interfaces inherited from interface android.os.Parcelable

    -Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
  • +

    Nested classes/interfaces inherited from interface com.google.android.exoplayer2.Bundleable

    +Bundleable.Creator<T extends Bundleable> @@ -194,9 +210,11 @@ implements Description -static Parcelable.Creator<TrackSelectionParameters> +static Bundleable.Creator<TrackSelectionParameters> CREATOR -  + +
    Object that can restore TrackSelectionParameters from a Bundle.
    + static TrackSelectionParameters @@ -215,6 +233,13 @@ implements +ImmutableSet<@TrackType Integer> +disabledTrackTypes + +
    The track types that are disabled.
    + + + boolean forceHighestSupportedBitrate @@ -222,7 +247,7 @@ implements + boolean forceLowestBitrate @@ -230,77 +255,77 @@ implements + int maxAudioBitrate
    Maximum allowed audio bitrate in bits per second.
    - + int maxAudioChannelCount
    Maximum allowed audio channel count.
    - + int maxVideoBitrate
    Maximum allowed video bitrate in bits per second.
    - + int maxVideoFrameRate
    Maximum allowed video frame rate in hertz.
    - + int maxVideoHeight
    Maximum allowed video height in pixels.
    - + int maxVideoWidth
    Maximum allowed video width in pixels.
    - + int minVideoBitrate
    Minimum allowed video bitrate in bits per second.
    - + int minVideoFrameRate
    Minimum allowed video frame rate in hertz.
    - + int minVideoHeight
    Minimum allowed video height in pixels.
    - + int minVideoWidth
    Minimum allowed video width in pixels.
    - + ImmutableList<String> preferredAudioLanguages @@ -308,7 +333,7 @@ implements + ImmutableList<String> preferredAudioMimeTypes @@ -316,28 +341,28 @@ implements -int + +@com.google.android.exoplayer2.C.RoleFlags int preferredAudioRoleFlags
    The preferred C.RoleFlags for audio tracks.
    - + ImmutableList<String> preferredTextLanguages
    The preferred languages for text tracks as IETF BCP 47 conformant tags in order of preference.
    - -int + +@com.google.android.exoplayer2.C.RoleFlags int preferredTextRoleFlags
    The preferred C.RoleFlags for text tracks.
    - + ImmutableList<String> preferredVideoMimeTypes @@ -345,13 +370,20 @@ implements + boolean selectUndeterminedTextLanguage
    Whether a text track with undetermined language should be selected if no track with preferredTextLanguages is available, or if preferredTextLanguages is unset.
    + +TrackSelectionOverrides +trackSelectionOverrides + +
    Overrides to force tracks to be selected.
    + + int viewportHeight @@ -374,13 +406,6 @@ implements -
  • - - -

    Fields inherited from interface android.os.Parcelable

    -CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
  • - @@ -429,32 +454,28 @@ implements -int -describeContents() -  - - boolean equals​(Object obj)   - + static TrackSelectionParameters getDefaults​(Context context)
    Returns an instance configured with default values.
    - + int hashCode()   - -void -writeToParcel​(Parcel dest, - int flags) -  + +Bundle +toBundle() + +
    Returns a Bundle representing the information stored in this object.
    +
      @@ -514,15 +535,6 @@ public static final  - - - @@ -678,7 +690,7 @@ public static final 

      preferredAudioRoleFlags

      @RoleFlags
      -public final int preferredAudioRoleFlags
      +public final @com.google.android.exoplayer2.C.RoleFlags int preferredAudioRoleFlags
      The preferred C.RoleFlags for audio tracks. 0 selects the default track if there is one, or the first track if there's no default. The default value is 0.
      @@ -735,7 +747,7 @@ public final int preferredAudioRoleFlags
    • preferredTextRoleFlags

      @RoleFlags
      -public final int preferredTextRoleFlags
      +public final @com.google.android.exoplayer2.C.RoleFlags int preferredTextRoleFlags
      The preferred C.RoleFlags for text tracks. 0 selects the default track if there is one, or no track otherwise. The default value is 0, or C.ROLE_FLAG_SUBTITLE | C.ROLE_FLAG_DESCRIBES_MUSIC_AND_SOUND if the accessibility CaptioningManager @@ -767,7 +779,7 @@ public final int preferredTextRoleFlags -
        +
        • forceHighestSupportedBitrate

          public final boolean forceHighestSupportedBitrate
          @@ -775,6 +787,38 @@ public final int preferredTextRoleFlags other constraints. The default value is false.
    + + + +
      +
    • +

      trackSelectionOverrides

      +
      public final TrackSelectionOverrides trackSelectionOverrides
      +
      Overrides to force tracks to be selected.
      +
    • +
    + + + +
      +
    • +

      disabledTrackTypes

      +
      public final ImmutableSet<@TrackType Integer> disabledTrackTypes
      +
      The track types that are disabled. No track of a disabled type will be selected, thus no track + type contained in the set will be played. The default value is that no track type is disabled + (empty set).
      +
    • +
    + + + + @@ -851,30 +895,18 @@ public final int preferredTextRoleFlags - - - - - + diff --git a/docs/doc/reference/com/google/android/exoplayer2/trackselection/TrackSelectionUtil.html b/docs/doc/reference/com/google/android/exoplayer2/trackselection/TrackSelectionUtil.html index aa3d848324..e6cfb850dd 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/trackselection/TrackSelectionUtil.html +++ b/docs/doc/reference/com/google/android/exoplayer2/trackselection/TrackSelectionUtil.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":9,"i1":9,"i2":9,"i3":9}; +var data = {"i0":9,"i1":9,"i2":9}; var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -195,14 +195,6 @@ extends -static boolean -hasTrackOfType​(TrackSelectionArray trackSelections, - int trackType) - -
    Returns if a TrackSelectionArray has at least one track of the given type.
    - - - static DefaultTrackSelector.Parameters updateParametersWithOverride​(DefaultTrackSelector.Parameters parameters, int rendererIndex, @@ -284,17 +276,6 @@ extends - - - -
      -
    • -

      hasTrackOfType

      -
      public static boolean hasTrackOfType​(TrackSelectionArray trackSelections,
      -                                     int trackType)
      -
      Returns if a TrackSelectionArray has at least one track of the given type.
      -
    • -
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/trackselection/TrackSelector.html b/docs/doc/reference/com/google/android/exoplayer2/trackselection/TrackSelector.html index 78f23a7318..2e8741f757 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/trackselection/TrackSelector.html +++ b/docs/doc/reference/com/google/android/exoplayer2/trackselection/TrackSelector.html @@ -25,7 +25,7 @@ catch(err) { } //--> -var data = {"i0":10,"i1":10,"i2":10,"i3":6,"i4":6}; +var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":6,"i6":6,"i7":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -259,6 +259,13 @@ extends +TrackSelectionParameters +getParameters() + +
    Returns the current parameters for track selection.
    + + + void init​(TrackSelector.InvalidationListener listener, BandwidthMeter bandwidthMeter) @@ -266,7 +273,7 @@ extends Called by the player to initialize the selector. - + protected void invalidate() @@ -274,14 +281,21 @@ extends - + +boolean +isSetParametersSupported() + +
    Returns if this TrackSelector supports setParameters(TrackSelectionParameters).
    + + + abstract void onSelectionActivated​(Object info)
    Called by the player when a TrackSelectorResult previously generated by selectTracks(RendererCapabilities[], TrackGroupArray, MediaPeriodId, Timeline) is activated.
    - + abstract TrackSelectorResult selectTracks​(RendererCapabilities[] rendererCapabilities, TrackGroupArray trackGroups, @@ -291,6 +305,13 @@ extends Called by the player to perform a track selection. + +void +setParameters​(TrackSelectionParameters parameters) + +
    Called by the player to provide parameters for track selection.
    + + + + + +
      +
    • +

      getParameters

      +
      public TrackSelectionParameters getParameters()
      +
      Returns the current parameters for track selection.
      +
    • +
    + + + +
      +
    • +

      setParameters

      +
      public void setParameters​(TrackSelectionParameters parameters)
      +
      Called by the player to provide parameters for track selection. + +

      Only supported if isSetParametersSupported() returns true.

      +
      +
      Parameters:
      +
      parameters - The parameters for track selection.
      +
      +
    • +
    + + + +
      +
    • +

      isSetParametersSupported

      +
      public boolean isSetParametersSupported()
      +
      Returns if this TrackSelector supports setParameters(TrackSelectionParameters). + +

      The same value is always returned for a given TrackSelector instance.

      +
    • +
    diff --git a/docs/doc/reference/com/google/android/exoplayer2/trackselection/TrackSelectorResult.html b/docs/doc/reference/com/google/android/exoplayer2/trackselection/TrackSelectorResult.html index 8746eb6f88..4273f16111 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/trackselection/TrackSelectorResult.html +++ b/docs/doc/reference/com/google/android/exoplayer2/trackselection/TrackSelectorResult.html @@ -181,6 +181,13 @@ extends A ExoTrackSelection array containing the track selection for each renderer. + +TracksInfo +tracksInfo + +
    Describe the tracks and which one were selected.
    + + @@ -199,10 +206,22 @@ extends Description +TrackSelectorResult​(@NullableType RendererConfiguration[] rendererConfigurations, + @NullableType ExoTrackSelection[] selections, + TracksInfo tracksInfo, + Object info) +  + + TrackSelectorResult​(@NullableType RendererConfiguration[] rendererConfigurations, @NullableType ExoTrackSelection[] selections, Object info) -  + + + @@ -299,6 +318,16 @@ extends A ExoTrackSelection array containing the track selection for each renderer. + + + +
      +
    • +

      tracksInfo

      +
      public final TracksInfo tracksInfo
      +
      Describe the tracks and which one were selected.
      +
    • +
    @@ -324,11 +353,37 @@ public final  + + + + diff --git a/docs/doc/reference/com/google/android/exoplayer2/trackselection/package-tree.html b/docs/doc/reference/com/google/android/exoplayer2/trackselection/package-tree.html index 7464e1a1b0..d513b87acc 100644 --- a/docs/doc/reference/com/google/android/exoplayer2/trackselection/package-tree.html +++ b/docs/doc/reference/com/google/android/exoplayer2/trackselection/package-tree.html @@ -114,16 +114,19 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  • com.google.android.exoplayer2.trackselection.DefaultTrackSelector.AudioTrackScore (implements java.lang.Comparable<T>)
  • com.google.android.exoplayer2.trackselection.DefaultTrackSelector.OtherTrackScore (implements java.lang.Comparable<T>)
  • -
  • com.google.android.exoplayer2.trackselection.DefaultTrackSelector.SelectionOverride (implements android.os.Parcelable)
  • +
  • com.google.android.exoplayer2.trackselection.DefaultTrackSelector.SelectionOverride (implements com.google.android.exoplayer2.Bundleable)
  • com.google.android.exoplayer2.trackselection.DefaultTrackSelector.TextTrackScore (implements java.lang.Comparable<T>)
  • com.google.android.exoplayer2.trackselection.DefaultTrackSelector.VideoTrackScore (implements java.lang.Comparable<T>)
  • com.google.android.exoplayer2.trackselection.ExoTrackSelection.Definition
  • com.google.android.exoplayer2.trackselection.MappingTrackSelector.MappedTrackInfo
  • com.google.android.exoplayer2.trackselection.RandomTrackSelection.Factory (implements com.google.android.exoplayer2.trackselection.ExoTrackSelection.Factory)
  • com.google.android.exoplayer2.trackselection.TrackSelectionArray
  • -
  • com.google.android.exoplayer2.trackselection.TrackSelectionParameters (implements android.os.Parcelable) +
  • com.google.android.exoplayer2.trackselection.TrackSelectionOverrides (implements com.google.android.exoplayer2.Bundleable)
  • +
  • com.google.android.exoplayer2.trackselection.TrackSelectionOverrides.Builder
  • +
  • com.google.android.exoplayer2.trackselection.TrackSelectionOverrides.TrackSelectionOverride (implements com.google.android.exoplayer2.Bundleable)
  • +
  • com.google.android.exoplayer2.trackselection.TrackSelectionParameters (implements com.google.android.exoplayer2.Bundleable)
  • com.google.android.exoplayer2.trackselection.TrackSelectionParameters.Builder @@ -159,6 +162,12 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  • com.google.android.exoplayer2.trackselection.TrackSelector.InvalidationListener
  • +
    +

    Annotation Type Hierarchy

    + +