# MediaPlaybackTrait.StateChanged


```
interface MediaPlaybackTrait.StateChanged : ClusterStruct
```

<br />

Known direct subclasses [MediaPlayback.StateChangedEvent](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MediaPlayback.StateChangedEvent)

|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MediaPlayback.StateChangedEvent` |   |

*** ** * ** ***

State changed event.

## Summary

| ### 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.StateChanged#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.StateChanged#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/-boolean/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MediaPlaybackTrait.StateChanged#audioAdvanceUnmuted()` Indicates whether audio is unmuted by the player due to a FF or REW command. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MediaPlaybackTrait.PlaybackStateEnum?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MediaPlaybackTrait.StateChanged#currentState()` Indicates the updated playback state. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MediaPlaybackTrait.StateChanged#data()` Contains optional app-specific data. |
| `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.StateChanged#duration()` Indicates the updated duration. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MediaPlaybackTrait.StateChanged#playbackSpeed()` Indicates the updated playback speed. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MediaPlaybackTrait.PlaybackPositionStruct?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MediaPlaybackTrait.StateChanged#sampledPosition()` Indicates updated position of playback. |
| `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.StateChanged#seekRangeEnd()` Indicates the updated seek range end. |
| `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.StateChanged#seekRangeStart()` Indicates the updated seek range start. |
| `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.StateChanged#startTime()` Indicates the updated tart time. |

## 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

### audioAdvanceUnmuted

```
val audioAdvanceUnmuted: Boolean?
```

Indicates whether audio is unmuted by the player due to a FF or REW command.

### currentState

```
val currentState: MediaPlaybackTrait.PlaybackStateEnum?
```

Indicates the updated playback state.

### data

```
val data: ByteArray?
```

Contains optional app-specific data.

### duration

```
val duration: ULong?
```

Indicates the updated duration.

### playbackSpeed

```
val playbackSpeed: Float?
```

Indicates the updated playback speed.

### sampledPosition

```
val sampledPosition: MediaPlaybackTrait.PlaybackPositionStruct?
```

Indicates updated position of playback.

### seekRangeEnd

```
val seekRangeEnd: ULong?
```

Indicates the updated seek range end.

### seekRangeStart

```
val seekRangeStart: ULong?
```

Indicates the updated seek range start.

### startTime

```
val startTime: ULong?
```

Indicates the updated tart time.