Livestream Post
To create a livestream post, a stream must be created first. SDK provides a convenient class AmityStreamRepository
to do so. The repository contains createVideoStream
method which takes title
, description
, resolution
and thumbnailFileId
. It provides you with an AmityStream
object for successful creation.
First, create a stream:
Now, create a livestream post. We can build the post first by using AmityLiveStreamPostCreator.Builder
. Then, use the same createPost
method in AmityFeedRepository
and pass the streamId
from created AmityStream
to create a livestream post.
Create a livestream post with mention
To create a livestream post with mention, after you create a stream, you can provide the JsonObject
for the metadata
parameter and provide the list of userId
s for the mentionUsers
parameter.
To render mention, refer to Rendering Mention section.
Last updated