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.Status
represents a stream status. The following enum cases describe all the possible statuses of a stream..IDLE
indicates "a stream that has generated but no actions have been taken.".LIVE
indicates "a stream is currently being broadcasted.".ENDED
indicates "a stream has ended broadcasting and in the process of transforming to a recorded stream.".RECORDED
indicates "a stream has ended broadcasting and has been transformed to a recorded stream."stream.getStatus()
.getStreams
and also call setStatus(statuses: Array<Amitystream.Status>)
to query live streams. We provide enums of stream status as AmityStream.Status
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.DefaultDataSourceFactory
.RtmpDataSourceFactory
.