Merge branch 'braid/webrtc-dialer-init' into 'main'

chore: update WebRTC interface

See merge request famedly/fluffychat!1016
This commit is contained in:
The one with the Braid 2022-10-17 09:35:43 +00:00
commit 4fd9a3ff82
3 changed files with 8 additions and 6 deletions

View file

@ -291,12 +291,14 @@ class MyCallingPage extends State<Calling> {
void _screenSharing() async {
if (PlatformInfos.isAndroid) {
if (!call.screensharingEnabled) {
await FlutterForegroundTask.init(
FlutterForegroundTask.init(
androidNotificationOptions: AndroidNotificationOptions(
channelId: 'notification_channel_id',
channelName: 'Foreground Notification',
channelDescription: L10n.of(context)!.foregroundServiceRunning,
),
iosNotificationOptions: const IOSNotificationOptions(),
foregroundTaskOptions: const ForegroundTaskOptions(),
);
FlutterForegroundTask.startService(
notificationTitle: L10n.of(context)!.screenSharingTitle,