zego_uikit_prebuilt_live_streaming 3.1.5 zego_uikit_prebuilt_live_streaming: ^3.1.5 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)
void main() {
WidgetsFlutterBinding.ensureInitialized();
ZegoUIKit().initLog().then((value) {
runApp(const MyApp());
});
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Live Streaming Demo',
home: liveStreamingPage(),
);
}
Widget liveStreamingPage() {
return ZegoUIKitPrebuiltLiveStreaming(
appID: your AppID,
appSign: your AppSign,
userID: local user id,
userName: local user name,
liveID: live id,
config: true
? ZegoUIKitPrebuiltLiveStreamingConfig.host()
: ZegoUIKitPrebuiltLiveStreamingConfig.audience(),
);
}
}