tencent_trtc_cloud 2.9.4 copy "tencent_trtc_cloud: ^2.9.4" to clipboard
tencent_trtc_cloud: ^2.9.4 copied to clipboard

With TRTC, you can quickly develop cost-effective, low-latency, and high-quality interactive audio/video services.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:provider/provider.dart';
import 'package:trtc_demo/ui/login.dart';
import 'package:trtc_demo/ui/meeting.dart';
import 'package:trtc_demo/ui/member_list.dart';
import 'package:trtc_demo/ui/test/test_api.dart';
import 'package:trtc_demo/models/meeting_model.dart';
import 'package:trtc_demo/ui/test/test_web.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  SystemChrome.setPreferredOrientations(
      [DeviceOrientation.portraitUp, DeviceOrientation.portraitDown]).then((_) {
    runApp(MyApp());
  });
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return ChangeNotifierProvider(
      create: (context) => MeetingModel(),
      child: MaterialApp(
        routes: {
          "/": (context) => LoginPage(),
          "/login": (context) => LoginPage(),
          "/meeting": (context) => MeetingPage(),
          "/memberList": (context) => MemberListPage(),
          "/test": (context) => TestPage(),
          "/testweb": (context) => TestWebPage()
        },
      ),
    );
  }
}
22
likes
110
points
3.27k
downloads

Publisher

verified publishertrtc.io

Weekly Downloads

With TRTC, you can quickly develop cost-effective, low-latency, and high-quality interactive audio/video services.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

flutter, flutter_web_plugins, js, json_annotation

More

Packages that depend on tencent_trtc_cloud