# MediaPlaybackTrait.PlaybackPositionStruct

# MediaPlaybackTrait.PlaybackPositionStruct


```
class MediaPlaybackTrait.PlaybackPositionStruct : ClusterStruct
```

<br />

*** ** * ** ***

A playback position within a media stream.

## Summary

| ### Nested types |
|---|
| `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MediaPlaybackTrait.PlaybackPositionStruct.StructFields : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html, https://developers.home.google.com/reference/kotlin/com/google/home/Field` Descriptor enum for this struct's fields. |

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MediaPlaybackTrait.PlaybackPositionStruct#PlaybackPositionStruct(kotlin.ULong,kotlin.ULong)(updatedAt: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-long/index.html, position: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-long/index.html?)` Creates the PlaybackPositionStruct class. |

| ### Public functions |
|---|---|
| `open https://developers.home.google.com/reference/kotlin/com/google/home/StructDescriptor` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MediaPlaybackTrait.PlaybackPositionStruct#getDescriptor()()` Returns the descriptor for the struct. |
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MediaPlaybackTrait.PlaybackPositionStruct#getFieldValueById(kotlin.UInt)(tagId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html)` Returns the value of the field for the given tag ID. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-long/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MediaPlaybackTrait.PlaybackPositionStruct#position()` The discrete position within the media stream, in milliseconds from the beginning of the stream, as of the time specified in the `updatedAt` field. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-long/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MediaPlaybackTrait.PlaybackPositionStruct#updatedAt()` The time when the `position` was last updated. |

## Public constructors

### PlaybackPositionStruct

```
PlaybackPositionStruct(updatedAt: ULong, position: ULong? = null)
```

Creates the PlaybackPositionStruct class.

## Public functions

### getDescriptor

```
@HomeExperimentalGenericApi
open fun getDescriptor(): StructDescriptor
```

Returns the descriptor for the struct.

### getFieldValueById

```
@HomeExperimentalGenericApi
open fun getFieldValueById(tagId: UInt): Any?
```

Returns the value of the field for the given tag ID.

## Public properties

### position

```
val position: ULong?
```

The discrete position within the media stream, in milliseconds from the beginning of the stream, as of the time specified in the `updatedAt` field.

### updatedAt

```
val updatedAt: ULong
```

The time when the `position` was last updated.