ClosedCaptionEvent

data class ClosedCaptionEvent(@Json(name = "call_cid") val callCid: String, @Json(name = "closed_caption") val closedCaption: CallClosedCaption, @Json(name = "created_at") val createdAt: OffsetDateTime, @Json(name = "type") val type: String = "call.closed_caption") : VideoEvent, WSCallEvent

This event is sent when closed captions are being sent in a call, clients should use this to show the closed captions in the call screen

Parameters

callCid
closedCaption
createdAt
type

The type of event: \"call.closed_caption\" in this case

Constructors

Link copied to clipboard
constructor(@Json(name = "call_cid") callCid: String, @Json(name = "closed_caption") closedCaption: CallClosedCaption, @Json(name = "created_at") createdAt: OffsetDateTime, @Json(name = "type") type: String = "call.closed_caption")

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val createdAt: OffsetDateTime
Link copied to clipboard

Functions

Link copied to clipboard
open override fun getCallCID(): String
Link copied to clipboard
open override fun getEventType(): String