videosdk 4.0.0-beta.1
videosdk: ^4.0.0-beta.1 copied to clipboard
Video SDK Flutter to simply integrate Audio & Video Calling API or Live Video Streaming API to your app with just a few lines of code.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'rust/join_screen.dart';
import 'rust/theme.dart';
/// Entry point for the Rust-core sample app (native Android/iOS SDK backend).
///
/// The legacy Dart-mediasoup sample is preserved as main_legacy.dart.
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await dotenv.load(fileName: ".env");
runApp(const VideoSDKRustApp());
}
class VideoSDKRustApp extends StatelessWidget {
const VideoSDKRustApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'VideoSDK Rust Core',
debugShowCheckedModeBanner: false,
theme: T.theme,
home: const JoinScreen(),
);
}
}