feat: Working VoIP calling implementation (Flutter + Android)
Working video and audio calls, as well as android integration
This commit is contained in:
commit
96a7e211a0
60 changed files with 2445 additions and 0 deletions
20
lib/widgets/local_view.dart
Normal file
20
lib/widgets/local_view.dart
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
class LocalView extends StatelessWidget {
|
||||
const LocalView({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final Map<String, dynamic> creationParams = <String, dynamic>{};
|
||||
|
||||
return AndroidView(
|
||||
viewType: "liblinphone_flutter.nuark.xyz/local_view",
|
||||
creationParams: creationParams,
|
||||
creationParamsCodec: const StandardMessageCodec(),
|
||||
onPlatformViewCreated: (int id) {
|
||||
print("onPlatformViewCreated: created LocalView with id $id");
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
20
lib/widgets/remote_view.dart
Normal file
20
lib/widgets/remote_view.dart
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
class RemoteView extends StatelessWidget {
|
||||
const RemoteView({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final Map<String, dynamic> creationParams = <String, dynamic>{};
|
||||
|
||||
return AndroidView(
|
||||
viewType: "liblinphone_flutter.nuark.xyz/remote_view",
|
||||
creationParams: creationParams,
|
||||
creationParamsCodec: const StandardMessageCodec(),
|
||||
onPlatformViewCreated: (int id) {
|
||||
print("onPlatformViewCreated: created RemoteView with id $id");
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue