livqeno_live 0.2.1
livqeno_live: ^0.2.1 copied to clipboard
Livqeno Live Streaming for Flutter — join a stream as a host or a viewer, with the room and the live chat that come with it. Composes livqeno_rtc and livqeno_chat; adds no media or messaging stack of its own.
example/main.dart
// Join a live stream as host or co-host, or as a viewer.
//
// Host, co-host and viewer credentials are minted per stream, per role, by
// your backend; pass them in as LivqenoLiveStreamCredentials.
import 'package:livqeno_live/livqeno_live.dart';
Future<LivqenoLiveStream> goLive(LivqenoLiveStreamCredentials credentials) async {
final stream = await LivqenoLiveStream.join(credentials);
if (stream.isHost) {
await stream.room.enableCamera();
await stream.room.enableMicrophone();
}
return stream;
}
void main() {
// ignore: avoid_print
print('Call goLive() with credentials minted by your backend.');
}