flutter_aws_chime 1.1.0+1
flutter_aws_chime: ^1.1.0+1 copied to clipboard
A live stream flutter plugin base on aws chime.
import 'package:flutter/material.dart';
import 'package:flutter_aws_chime/models/join_info.model.dart';
import 'package:flutter_aws_chime/views/meeting.view.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: SafeArea(
child: Scaffold(
body: MeetingView(
JoinInfo(
MeetingInfo.fromJson({
"ExternalMeetingId": "",
"MediaPlacement": {
"AudioFallbackUrl": "",
"AudioHostUrl": "",
"EventIngestionUrl": "",
"ScreenDataUrl": "",
"ScreenSharingUrl": "",
"ScreenViewingUrl": "",
"SignalingUrl": "",
"TurnControlUrl": ""
},
"MediaRegion": "us-east-1",
"MeetingArn": "",
"MeetingId": "",
"TenantIds": []
}),
AttendeeInfo.fromJson({
"AttendeeId": "",
"Capabilities": {
"Audio": "SendReceive",
"Content": "SendReceive",
"Video": "SendReceive"
},
"ExternalUserId": "",
"JoinToken": ""
}),
),
),
),
),
);
}
}