Class PlayerId
- java.lang.Object
-
- com.google.android.exoplayer2.analytics.PlayerId
-
@Deprecated public final class PlayerId extends Object
Deprecated.com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.Identifier for a player instance.
-
-
Constructor Summary
Constructors Constructor Description PlayerId()
Deprecated.Creates an instance for API < 31.PlayerId(LogSessionId logSessionId)
Deprecated.Creates an instance for API ≥ 31.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description LogSessionId
getLogSessionId()
Deprecated.Returns theLogSessionId
for this player instance.
-
-
-
Field Detail
-
UNSET
public static final PlayerId UNSET
Deprecated.A player identifier with unset default values that can be used as a placeholder or for testing.
-
-
Constructor Detail
-
PlayerId
public PlayerId()
Deprecated.Creates an instance for API < 31.
-
PlayerId
@RequiresApi(31) public PlayerId(LogSessionId logSessionId)
Deprecated.Creates an instance for API ≥ 31.- Parameters:
logSessionId
- TheLogSessionId
used for this player.
-
-
Method Detail
-
getLogSessionId
@RequiresApi(31) public LogSessionId getLogSessionId()
Deprecated.Returns theLogSessionId
for this player instance.
-
-