useLiveStreamingInstances
useLiveStreamingInstances
useLiveStreamingInstances(): LiveStreamingInstanceState[]
useLiveStreamingInstances returns an array of all live streaming instance states. This is useful when working with multi-instance live streaming to enumerate and display all active (and recently stopped) streaming instances.
Return type
An array of LiveStreamingInstanceState objects, each with the following properties:
| Name | Type | Description |
|---|---|---|
errorMsg | string | Error message for this instance, if any |
instanceId | string | The unique identifier for this live streaming instance |
isLiveStreaming | boolean | Whether this instance is currently live streaming |
layout | Object | The live streaming layout configuration for this instance |