# PushAvStreamTransportTrait.CmafContainerOptionsStruct


```
class PushAvStreamTransportTrait.CmafContainerOptionsStruct : ClusterStruct
```

<br />

*** ** * ** ***

The container type and related options.

## 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/PushAvStreamTransportTrait.CmafContainerOptionsStruct.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/PushAvStreamTransportTrait.CmafContainerOptionsStruct#CmafContainerOptionsStruct(com.google.home.matter.standard.PushAvStreamTransportTrait.CmafInterfaceEnum,kotlin.UShort,kotlin.UShort,com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue)( cmafInterface: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.CmafInterfaceEnum, segmentDuration: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html, chunkDuration: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html, sessionGroup: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html>, trackName: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html>, cencKey: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html>, cencKeyId: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html>, metadataEnabled: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html> )` Creates the CMAFContainerOptionsStruct 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/PushAvStreamTransportTrait.CmafContainerOptionsStruct#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/PushAvStreamTransportTrait.CmafContainerOptionsStruct#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://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.CmafContainerOptionsStruct#cencKey()` The common encryption key. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.CmafContainerOptionsStruct#cencKeyId()` The common encryption key ID. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.CmafContainerOptionsStruct#chunkDuration()` The chunk duration. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.CmafInterfaceEnum` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.CmafContainerOptionsStruct#cmafInterface()` CMAF interface type (Interface1, Interface2DASH, Interface2HLS). |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.CmafContainerOptionsStruct#metadataEnabled()` Whether metadata is enabled. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.CmafContainerOptionsStruct#segmentDuration()` The duration of each segment in the CMAF stream. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.CmafContainerOptionsStruct#sessionGroup()` An identifier for grouping sessions. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.CmafContainerOptionsStruct#trackName()` The name of the media track. |

## Public constructors

### CmafContainerOptionsStruct

```
CmafContainerOptionsStruct(
    cmafInterface: PushAvStreamTransportTrait.CmafInterfaceEnum = CmafInterfaceEnum.Interface1,
    segmentDuration: UShort,
    chunkDuration: UShort,
    sessionGroup: OptionalValue<UByte> = OptionalValue.absent(),
    trackName: OptionalValue<String> = OptionalValue.absent(),
    cencKey: OptionalValue<ByteArray> = OptionalValue.absent(),
    cencKeyId: OptionalValue<ByteArray> = OptionalValue.absent(),
    metadataEnabled: OptionalValue<Boolean> = OptionalValue.absent()
)
```

Creates the CMAFContainerOptionsStruct 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

### cencKey

```
val cencKey: OptionalValue<ByteArray>
```

The common encryption key.

### cencKeyId

```
val cencKeyId: OptionalValue<ByteArray>
```

The common encryption key ID.

### chunkDuration

```
val chunkDuration: UShort
```

The chunk duration.

### cmafInterface

```
val cmafInterface: PushAvStreamTransportTrait.CmafInterfaceEnum
```

CMAF interface type (Interface1, Interface2DASH, Interface2HLS).

### metadataEnabled

```
val metadataEnabled: OptionalValue<Boolean>
```

Whether metadata is enabled.

### segmentDuration

```
val segmentDuration: UShort
```

The duration of each segment in the CMAF stream.

### sessionGroup

```
val sessionGroup: OptionalValue<UByte>
```

An identifier for grouping sessions.

### trackName

```
val trackName: OptionalValue<String>
```

The name of the media track.