From 2299c4e6092786b3b60ca56c85363540c2c09351 Mon Sep 17 00:00:00 2001 From: jaewan Date: Tue, 18 Aug 2020 19:14:28 +0100 Subject: [PATCH] Update SessionPlayerConnector documentation ExoPlayer is now the trusted source of playlist and can be used by other components without breaking SessionPlayerConnector's cached playlist. PiperOrigin-RevId: 327266929 --- .../ext/media2/SessionPlayerConnector.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/extensions/media2/src/main/java/com/google/android/exoplayer2/ext/media2/SessionPlayerConnector.java b/extensions/media2/src/main/java/com/google/android/exoplayer2/ext/media2/SessionPlayerConnector.java index bc3d336281..ae517240fe 100644 --- a/extensions/media2/src/main/java/com/google/android/exoplayer2/ext/media2/SessionPlayerConnector.java +++ b/extensions/media2/src/main/java/com/google/android/exoplayer2/ext/media2/SessionPlayerConnector.java @@ -46,19 +46,6 @@ import org.checkerframework.checker.nullness.compatqual.NullableType; /** * An implementation of {@link SessionPlayer} that wraps a given ExoPlayer {@link Player} instance. * - *

Ownership

- * - *

{@code SessionPlayerConnector} takes ownership of the provided ExoPlayer {@link Player} - * instance between when it's constructed and when it's {@link #close() closed}. No other components - * should interact with the wrapped player (otherwise, unexpected event callbacks from the wrapped - * player may put the session player in an inconsistent state). - * - *

Call {@link SessionPlayer#close()} when the {@code SessionPlayerConnector} is no longer needed - * to regain ownership of the wrapped player. It is the caller's responsibility to release the - * wrapped player via {@link Player#release()}. - * - *

Threading model

- * *

Internally this implementation posts operations to and receives callbacks on the thread * associated with {@link Player#getApplicationLooper()}, so it is important not to block this * thread. In particular, when awaiting the result of an asynchronous session player operation, apps