aliyun_rtc_plugin 0.0.4 aliyun_rtc_plugin: ^0.0.4 copied to clipboard
flutter dart plugin for AliRtc implements at Android and iOS Platform.
import 'package:aliyun_rtc_plugin/aliyun_rtc_plugin_platform_interface.dart';
import 'package:aliyun_rtc_plugin/rtc_video_player.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'rtc_example_call_route.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
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Plugin example app'),
),
body: Builder(builder: (buildContext) {
return Center(
child: Column(
children: [
ElevatedButton.icon(
onPressed: () {
Navigator.push(buildContext,
MaterialPageRoute(builder: (context) {
return const RtcCallExamplePage(isVideoCall: false);
}));
},
icon: Icon(Icons.call),
label: Text('Audio Call'),
),
ElevatedButton.icon(
onPressed: () {
Navigator.push(buildContext,
MaterialPageRoute(builder: (context) {
return const RtcCallExamplePage(isVideoCall: true);
}));
},
icon: Icon(Icons.video_call),
label: Text('Video Call'),
),
],
),
);
}),
),
);
}
}