millicast_flutter_sdk 1.2.0 copy "millicast_flutter_sdk: ^1.2.0" to clipboard
millicast_flutter_sdk: ^1.2.0 copied to clipboard

A Flutter SDK that allows developers to simplify Millicast services integration into their own Android and iOS apps.

example/lib/main.dart

import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'package:logger/logger.dart';
import 'home_screen.dart';
import 'publisher_widget.dart';
import 'subscriber_widget.dart';
import 'publisher_settings_widget.dart';
import 'package:permission_handler/permission_handler.dart';

void main() async {
  Logger.level = Level.info;
  await dotenv.load(fileName: '.env');
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
          primarySwatch: Colors.purple, secondaryHeaderColor: Colors.purple),
      initialRoute: '/',
      routes: {
        // When navigating to the "/" route, build the FirstScreen widget.
        // '/': (context) => const HomeScreen(),
        // When navigating to the "/second" route, build the SecondScreen widget.
        '/publisher': (context) => const PublisherWidget(),
        '/subscriber': (context) => const SubscriberWidget(),
        '/settings': (context) => const PublisherSettingsWidget(
              isConnected: false,
              supportedCodecs: [],
            )
      },
      home: const HomeScreen(),
    );
  }
}
17
likes
120
points
153
downloads

Publisher

verified publishermillicast.com

Weekly Downloads

A Flutter SDK that allows developers to simplify Millicast services integration into their own Android and iOS apps.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

eventify, flutter, flutter_webrtc, http, jwt_decode, logger, sdp_transform, web_socket_channel

More

Packages that depend on millicast_flutter_sdk