Back to Exoplayer

PlayerId (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/analytics/PlayerId.html

latest3.3 KB
Original Source

Package com.google.android.exoplayer2.analytics

Class PlayerId


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classPlayerIdextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")

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.

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | static PlayerId | UNSET | Deprecated.

A player identifier with unset default values that can be used as a placeholder or for testing. |

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 the LogSessionId for this player instance. |

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

- 

UNSET

public static final[PlayerId](PlayerId.html "class in com.google.android.exoplayer2.analytics")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](https://developer.android.com/reference/android/media/metrics/LogSessionId.html "class or interface in android.media.metrics")logSessionId)

Deprecated.

Creates an instance for API ≥ 31. Parameters:logSessionId - The LogSessionId used for this player.

Method Detail

- 

getLogSessionId

@RequiresApi(31)
public[LogSessionId](https://developer.android.com/reference/android/media/metrics/LogSessionId.html "class or interface in android.media.metrics")getLogSessionId()

Deprecated.

Returns the LogSessionId for this player instance.