AmityStream. These stream objects reside in
AmityStreamRepository. To start working with stream, first, the app needs to initialize the repository.
AmityStream. The stream object contains essential data, for example, title and description.
Amitystream.Statusrepresents a stream status. The following enum cases describe all the possible statuses of a stream.
.IDLEindicates "a stream that has generated but no actions have been taken."
.LIVEindicates "a stream is currently being broadcasted."
.ENDEDindicates "a stream has ended broadcasting and in the process of transforming to a recorded stream."
.RECORDEDindicates "a stream has ended broadcasting and has been transformed to a recorded stream."
getStreamsand also call
setStatus(statuses: Array<Amitystream.Status>)to query live streams. We provide enums of stream status as
getWatcherData.getUrl()inside the stream object. The parameter accepts streamId and enum of AmityWatcherData.Format.
getRecordings()[index]inside the stream object. The parameter accepts streamId and enum of AmityWatcherData.Format.