Skip to content

Computed

SDK adds computed properties to API responses which helps developers write less code.

broadcast.can_play

  • Type: Boolean

can_play property checks if media_type of the broadcast is a video or a playable source.

broadcast.image_ratio

  • Type: Number

image_ratio property checks if image and image_size of the broadcast exists. if so ratio is calculated via image_size.height/image_size.width otherwise this computed property is not assigned.