aliyun_rtc_plugin 0.0.7 copy "aliyun_rtc_plugin: ^0.0.7" to clipboard
aliyun_rtc_plugin: ^0.0.7 copied to clipboard

flutter dart plugin for AliRtc implements at Android and iOS Platform.

example/lib/main.dart

import 'package:flutter/material.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'),
                ),
              ],
            ),
          );
        }),
      ),
    );
  }
}
3
likes
130
points
55
downloads

Publisher

unverified uploader

Weekly Downloads

flutter dart plugin for AliRtc implements at Android and iOS Platform.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on aliyun_rtc_plugin