zego_uikit_prebuilt_live_streaming 3.14.0-beta.3 zego_uikit_prebuilt_live_streaming: ^3.14.0-beta.3 copied to clipboard
PrebuiltLiveStreaming is a full-featured live streaming kit that provides realtime video/audio streaming, live text chat, face beautification, and supports unlimited viewers.
// Flutter imports:
import 'package:flutter/material.dart';
// Package imports:
import 'package:zego_uikit_prebuilt_live_streaming/zego_uikit_prebuilt_live_streaming.dart';
/// Here is the simplest demo.
///
/// Please follow the link below to see more details.
/// [Examples](https://github.com/ZEGOCLOUD/zego_uikit_prebuilt_live_streaming_example_flutter)
Widget liveStreamingPage({required bool isHost}) {
return ZegoUIKitPrebuiltLiveStreaming(
appID: -1, // your AppID,
appSign: 'your AppSign',
userID: 'local user id',
userName: 'local user name',
liveID: 'live id',
config: isHost
? ZegoUIKitPrebuiltLiveStreamingConfig.host()
: ZegoUIKitPrebuiltLiveStreamingConfig.audience(),
);
}