Stream a phone's camera to a tablet over WiFi/hotspot. WebSocket transport with native YUV-to-JPEG encoding, UDP auto-discovery, remote control (zoom, flash, camera switch, rotate, mirror) from the viewer.
26 lines
569 B
Dart
26 lines
569 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
import 'package:external_cam/home_screen.dart';
|
|
|
|
void main() {
|
|
runApp(const ExternalCamApp());
|
|
}
|
|
|
|
class ExternalCamApp extends StatelessWidget {
|
|
const ExternalCamApp({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MaterialApp(
|
|
title: 'External Cam',
|
|
theme: ThemeData.dark(useMaterial3: true).copyWith(
|
|
colorScheme: ColorScheme.fromSeed(
|
|
seedColor: Colors.teal,
|
|
brightness: Brightness.dark,
|
|
),
|
|
),
|
|
home: const HomeScreen(),
|
|
);
|
|
}
|
|
}
|