tencent_trtc_cloud 2.8.8 copy "tencent_trtc_cloud: ^2.8.8" to clipboard
tencent_trtc_cloud: ^2.8.8 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()
        },
      ),
    );
  }
}
21
likes
0
pub points
90%
popularity

Publisher

verified publishertrtc.io

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

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_web_plugins, js, json_annotation

More

Packages that depend on tencent_trtc_cloud