fix: switch to h264 to benefit from hardware

This commit is contained in:
Charles
2024-01-10 21:39:06 -08:00
parent d16d1e0ac5
commit ccafa34f33
9 changed files with 274 additions and 105 deletions
+8 -17
View File
@@ -11,14 +11,20 @@ void main() async {
logger.i("Establishing connection...");
final channel = ClientChannel(
'home.chathaway.codes',
//port: 80,
//port: 8080,
//options: const ChannelOptions(credentials: ChannelCredentials.insecure()),
channelShutdownHandler: () {
logger.e("Channel shutdown unexpectedly");
},
);
logger.i("Have connection, making stub");
final stub = SignalerServiceClient(channel);
runApp(MyApp(stub, SessionService(stub)));
final sessionService = SessionService(stub);
logger.i("Have stub, starting app");
runApp(MyApp(
stub,
sessionService,
));
}
class MyApp extends StatelessWidget {
@@ -32,21 +38,6 @@ class MyApp extends StatelessWidget {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
// This is the theme of your application.
//
// TRY THIS: Try running your application with "flutter run". You'll see
// the application has a blue toolbar. Then, without quitting the app,
// try changing the seedColor in the colorScheme below to Colors.green
// and then invoke "hot reload" (save your changes or press the "hot
// reload" button in a Flutter-supported IDE, or press "r" if you used
// the command line to start the app).
//
// Notice that the counter didn't reset back to zero; the application
// state is not lost during the reload. To reset the state, use hot
// restart instead.
//
// This works for code too, not just values: Most code changes can be
// tested with just a hot reload.
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),