Create live streaming posts that enable real-time video broadcasting to your community. Live stream posts combine video streaming with interactive features like comments and reactions.

Real-time Broadcasting

Stream live video content directly to your community feeds

Interactive Engagement

Enable live comment, reactions, and real-time viewer interaction

Overview

Live stream posts enable real-time video broadcasting with interactive community engagement. Create streams with live chat, reactions, and viewer participation features.

Parameters

ParameterTypeRequiredDescription
textStringPost content (max 20,000 characters)
streamIdStringID of the created live stream
targetTypeEnumTarget destination (community or user feed)
targetIdStringTarget ID (null for own feed)
tagsArray<String>Searchable tags for categorization
metadataObjectCustom fields for extended functionality
func createLivestreamPost(stream: AmityStream) async {
    // Build your post structure
    let builder = AmityLiveStreamPostBuilder(
        streamId: stream.streamId,
        text: "Check out this live session!"
    )
    // Create a live stream post on the current user feed.
    do {
        let post = try await postRepository.createLiveStreamPost(builder, targetId: nil, targetType: .user, metadata: nil, mentionees: nil)
    } catch {
        // Handle error here
    }
}

Best Practices

Troubleshooting

Common Use Cases

Educational Content

Live tutorials, workshops, and educational sessions

Product Demos

Feature showcases, product launches, and demonstrations

Community Events

Q&A sessions, meetups, and community gatherings

Behind the Scenes

Process sharing, team updates, and informal content