Added in API level 31

PlaybackComponent


class PlaybackComponent
kotlin.Any
   ↳ android.media.MediaDrm.PlaybackComponent

This class contains the Drm session ID and log session ID

Summary

Public methods
LogSessionId

Returns the LogSessionId.

Unit

Sets the LogSessionId.

Public methods

getLogSessionId

Added in API level 31
fun getLogSessionId(): LogSessionId

Returns the LogSessionId.

Return
LogSessionId This value cannot be null.

setLogSessionId

Added in API level 31
fun setLogSessionId(logSessionId: LogSessionId): Unit

Sets the LogSessionId.

The implementation of this method varies by DRM provider; Please refer to your DRM provider documentation for more details on this method.

Parameters
logSessionId LogSessionId: This value cannot be null.
Exceptions
java.lang.UnsupportedOperationException when the vendor plugin does not implement this method