Stay organized with collections
Save and categorize content based on your preferences.
PlaybackComponent
class PlaybackComponent
This class contains the Drm session ID and log session ID
Summary
Public methods
setLogSessionId
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 |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# MediaDrm.PlaybackComponent\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nPlaybackComponent\n=================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/media/MediaDrm.PlaybackComponent \"View this page in Java\") \n\n```\nclass PlaybackComponent\n```\n\n|---|-----------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.media.MediaDrm.PlaybackComponent](#) |\n\nThis class contains the Drm session ID and log session ID\n\nSummary\n-------\n\n| Public methods ||\n|------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [LogSessionId](/reference/kotlin/android/media/metrics/LogSessionId) | [getLogSessionId](#getLogSessionId())`()` Returns the [LogSessionId](/reference/kotlin/android/media/metrics/LogSessionId). |\n| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [setLogSessionId](#setLogSessionId(android.media.metrics.LogSessionId))`(`logSessionId:` `[LogSessionId](/reference/kotlin/android/media/metrics/LogSessionId)`)` Sets the [LogSessionId](/reference/kotlin/android/media/metrics/LogSessionId). |\n\nPublic methods\n--------------\n\n### getLogSessionId\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getLogSessionId(): LogSessionId\n```\n\nReturns the [LogSessionId](/reference/kotlin/android/media/metrics/LogSessionId).\n\n| Return ||\n|----------------------------------------------------------------------|------------------------------|\n| [LogSessionId](/reference/kotlin/android/media/metrics/LogSessionId) | This value cannot be `null`. |\n\n### setLogSessionId\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun setLogSessionId(logSessionId: LogSessionId): Unit\n```\n\nSets the [LogSessionId](/reference/kotlin/android/media/metrics/LogSessionId).\n\nThe implementation of this method varies by DRM provider; Please refer to your DRM provider documentation for more details on this method.\n\n| Parameters ||\n|----------------|----------------------------------------------------------------------------------------------------|\n| `logSessionId` | [LogSessionId](/reference/kotlin/android/media/metrics/LogSessionId): This value cannot be `null`. |\n\n| Exceptions ||\n|-------------------------------------------|-------------------------------------------------------|\n| `java.lang.UnsupportedOperationException` | when the vendor plugin does not implement this method |"]]