PushAvStreamTransportTrait.TransportMotionTriggerTimeControlStruct

class PushAvStreamTransportTrait.TransportMotionTriggerTimeControlStruct : ClusterStruct


Defines parameters for controlling the timing of a transport stream triggered by motion.

Summary

Public constructors

TransportMotionTriggerTimeControlStruct(
    initialDuration: UShort,
    augmentationDuration: UShort,
    maxDuration: UInt,
    blindDuration: UShort
)

Creates the TransportMotionTriggerTimeControlStruct class.

Public functions

open StructDescriptor

Returns the descriptor for the struct.

open Any?

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

Public properties

UShort

How much the stream duration can be extended, in seconds.

UShort

A period during which new motion triggers are ignored after an event, in seconds.

UShort

The initial length of the stream after a motion trigger, in seconds.

UInt

The maximum total duration the stream can run, in seconds.

Public constructors

TransportMotionTriggerTimeControlStruct

TransportMotionTriggerTimeControlStruct(
    initialDuration: UShort,
    augmentationDuration: UShort,
    maxDuration: UInt,
    blindDuration: UShort
)

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

augmentationDuration

val augmentationDurationUShort

How much the stream duration can be extended, in seconds.

blindDuration

val blindDurationUShort

A period during which new motion triggers are ignored after an event, in seconds.

initialDuration

val initialDurationUShort

The initial length of the stream after a motion trigger, in seconds.

maxDuration

val maxDurationUInt

The maximum total duration the stream can run, in seconds.