WebRtcLiveViewTrait.StartLiveViewCommand.Response

class WebRtcLiveViewTrait.StartLiveViewCommand.Response : ClusterStruct


The outcome of the ExtendLiveView command.

Summary

Nested types

Descriptor enum for this command's request fields.

Public constructors

Response(
    mediaSessionId: String,
    answerSdp: String,
    liveSessionDurationSeconds: UShort
)

Creates a response payload from the StartLiveView command.

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

String

The SDP answer for the live stream.

UShort

The duration, in seconds, for which the live stream was extended.

String

The media session ID of the live stream to start.

Public constructors

Response

Response(
    mediaSessionId: String = "",
    answerSdp: String = "",
    liveSessionDurationSeconds: UShort
)

Creates a response payload from the StartLiveView command.

Public functions

getDescriptor

@HomeExperimentalApi
open fun getDescriptor(): StructDescriptor

Returns the descriptor for the struct.

getFieldValueById

@HomeExperimentalApi
open fun getFieldValueById(tagId: UInt): Any?

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

Public properties

answerSdp

val answerSdpString

The SDP answer for the live stream.

liveSessionDurationSeconds

val liveSessionDurationSecondsUShort

The duration, in seconds, for which the live stream was extended.

mediaSessionId

val mediaSessionIdString

The media session ID of the live stream to start.