AmityStream
. This stream objects reside in AmityStreamRepository
. To start working with stream, first the app need to intialize the repository.repository.getStreamById(_:)
AmityStream
. The stream object contains essential data, for example, title and description.AmityStreamStatus
represents a stream status. The following enum cases describe all the possible status 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 progress of transforming to a recorded stream.".recorded
indicates "a stream has ended broadcasting and has been transformed to a recorded stream.".status
.AmityStreamCollectionQuery
..getStreamsCollection(from:)
with the query object that you've created..getStreamsCollection(from: query)
stream.watcherUrl
AmityLiveStreamURLInfo
contains a full RTMP url, which most of RTMP players support. For some players that does not support the full url, this object contains enough data for custom RTMP url formatting.AmityStream
has isLive
property.isLive
property to check.streamRepository.getRecordedStreams()
AmityLiveVideoRecordingData
that store all recording data, by callingstream.recordingData
recordingItem.url(for: AmityLiveVideoRecordingFileFormat)
AmityVideoPlayerKit.framework
, a basic RTMP player to support live video functionality.MobileVLCKit.framework
as a dependency. You can download it from the link below.