jrtc_sdk 4.0.3 copy "jrtc_sdk: ^4.0.3" to clipboard
jrtc_sdk: ^4.0.3 copied to clipboard

JRTCExpressEngine Flutter SDK is a flutter plugin wrapper based on Juphoon Express RTC SDK (Android & IOS), providing real-time audio/video services.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'dart:async';

import 'package:flutter/services.dart';
import 'package:jrtc_flutter_example/home_page.dart';
import 'package:jrtc_flutter_example/log_info.dart';
import 'package:jrtc_flutter_example/remote_user_info.dart';
import 'package:jrtc_flutter_example/self_user_info.dart';
import 'package:jrtc_flutter_example/speak_state_info.dart';
import 'package:oktoast/oktoast.dart';
import 'package:provider/provider.dart';

import 'channel_info.dart';
import 'login_info.dart';

void main() {
  runApp(MultiProvider(
    providers: [
      ChangeNotifierProvider(create: (context) => LoginInfo()),
      ChangeNotifierProvider(create: (context) => SelfJoinUserInfo()),
      ChangeNotifierProvider(create: (context) => RemoteUserInfo()),
      ChangeNotifierProvider(create: (context) => JoinChannelInfo()),
      ChangeNotifierProvider(create: (context) => SpeakStateInfo()),
      ChangeNotifierProvider(create: (context) => LogInfo())
    ],
    child: MyApp(),
  ));
  //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 OKToast(
        child: MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: HomePage(),
      ),
      theme: Theme.of(context).copyWith(
        listTileTheme: ListTileThemeData(
          horizontalTitleGap: 0, //here adjust based on your need
        ),
      ),
    ));
  }
}
1
likes
155
points
15
downloads

Publisher

unverified uploader

Weekly Downloads

JRTCExpressEngine Flutter SDK is a flutter plugin wrapper based on Juphoon Express RTC SDK (Android & IOS), providing real-time audio/video services.

Homepage

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, markdown, plugin_platform_interface

More

Packages that depend on jrtc_sdk

Packages that implement jrtc_sdk