feat(vide_calls): gms calls handling

This commit is contained in:
misha
2026-05-25 08:07:20 +03:00
parent 1acb158f36
commit 73cec1a01e
35 changed files with 2288 additions and 618 deletions

View File

@@ -887,9 +887,21 @@ class MessageLookup extends MessageLookupByLibrary {
),
"video_call_enter": MessageLookupByLibrary.simpleMessage("Enter"),
"video_call_leave": MessageLookupByLibrary.simpleMessage("Leave"),
"video_call_mic_muted_phone_call": MessageLookupByLibrary.simpleMessage(
"Microphone is muted during the phone call",
),
"video_call_muted_mic_warning": MessageLookupByLibrary.simpleMessage(
"Attention!\nYour microphone is muted",
),
"video_call_notification_end": MessageLookupByLibrary.simpleMessage(
"End call",
),
"video_call_notification_in_progress": MessageLookupByLibrary.simpleMessage(
"Call in progress",
),
"video_call_notification_return": MessageLookupByLibrary.simpleMessage(
"Return to call",
),
"video_call_permission_camera_description":
MessageLookupByLibrary.simpleMessage(
"Allow camera access so others can see you during the video call. If you declined, you can enable it in system settings.",
@@ -926,6 +938,9 @@ class MessageLookup extends MessageLookupByLibrary {
MessageLookupByLibrary.simpleMessage("Reconnecting"),
"video_call_sound": MessageLookupByLibrary.simpleMessage("Sound"),
"video_call_status_online": MessageLookupByLibrary.simpleMessage("Online"),
"video_call_system_interruption": MessageLookupByLibrary.simpleMessage(
"Another call or app is using audio.\nYour consultation is paused until it ends.",
),
"video_call_try_again": MessageLookupByLibrary.simpleMessage("Retry"),
"video_call_unknown_initial": MessageLookupByLibrary.simpleMessage("?"),
"video_call_video": MessageLookupByLibrary.simpleMessage("Video"),

View File

@@ -367,9 +367,21 @@ class MessageLookup extends MessageLookupByLibrary {
),
"video_call_enter": MessageLookupByLibrary.simpleMessage("Войти"),
"video_call_leave": MessageLookupByLibrary.simpleMessage("Выйти"),
"video_call_mic_muted_phone_call": MessageLookupByLibrary.simpleMessage(
"Микрофон выключен на время телефонного звонка",
),
"video_call_muted_mic_warning": MessageLookupByLibrary.simpleMessage(
"Внимание!\nУ вас выключен микрофон",
),
"video_call_notification_end": MessageLookupByLibrary.simpleMessage(
"Завершить звонок",
),
"video_call_notification_in_progress": MessageLookupByLibrary.simpleMessage(
"Звонок идёт",
),
"video_call_notification_return": MessageLookupByLibrary.simpleMessage(
"Вернуться к звонку",
),
"video_call_permission_camera_description":
MessageLookupByLibrary.simpleMessage(
"Чтобы вас видели во время видеозвонка, разрешите доступ к камере. При отказе можно включить доступ в настройках устройства.",
@@ -406,6 +418,9 @@ class MessageLookup extends MessageLookupByLibrary {
MessageLookupByLibrary.simpleMessage("Восстанавливаем соединение"),
"video_call_sound": MessageLookupByLibrary.simpleMessage("Звук"),
"video_call_status_online": MessageLookupByLibrary.simpleMessage("Онлайн"),
"video_call_system_interruption": MessageLookupByLibrary.simpleMessage(
"Другой звонок или приложение использует аудио.\nКонсультация приостановлена до его завершения.",
),
"video_call_try_again": MessageLookupByLibrary.simpleMessage("Повторить"),
"video_call_unknown_initial": MessageLookupByLibrary.simpleMessage("?"),
"video_call_video": MessageLookupByLibrary.simpleMessage("Видео"),

View File

@@ -4079,6 +4079,27 @@ class S {
);
}
/// `Another call or app is using audio.\nYour consultation is paused until it ends.`
String get video_call_system_interruption {
return Intl.message(
'Another call or app is using audio.\nYour consultation is paused until it ends.',
name: 'video_call_system_interruption',
desc: '',
args: [],
);
}
/// `Microphone is muted during the phone call`
String get video_call_mic_muted_phone_call {
return Intl.message(
'Microphone is muted during the phone call',
name: 'video_call_mic_muted_phone_call',
desc: '',
args: [],
);
}
/// `Online`
String get video_call_status_online {
return Intl.message(
'Online',
@@ -4158,6 +4179,7 @@ class S {
);
}
/// `Loading…`
String get video_call_screen_loading_title {
return Intl.message(
'Loading…',
@@ -4167,6 +4189,7 @@ class S {
);
}
/// `Connecting to\nthe consultation`
String get video_call_screen_connecting_title {
return Intl.message(
'Connecting to\nthe consultation',
@@ -4176,6 +4199,7 @@ class S {
);
}
/// `This may take a few seconds`
String get video_call_screen_connecting_subtitle {
return Intl.message(
'This may take a few seconds',
@@ -4185,6 +4209,7 @@ class S {
);
}
/// `Reconnecting`
String get video_call_screen_reconnecting_title {
return Intl.message(
'Reconnecting',
@@ -4194,6 +4219,7 @@ class S {
);
}
/// `Check your internet and wait`
String get video_call_screen_reconnecting_subtitle {
return Intl.message(
'Check your internet and wait',
@@ -4203,6 +4229,7 @@ class S {
);
}
/// `Connection lost`
String get video_call_connection_lost_title {
return Intl.message(
'Connection lost',
@@ -4212,6 +4239,7 @@ class S {
);
}
/// `It looks like there is an internet issue. We're trying to restore the connection...`
String get video_call_connection_lost_message {
return Intl.message(
'It looks like there is an internet issue. We\'re trying to restore the connection...',
@@ -4221,6 +4249,7 @@ class S {
);
}
/// `Retry`
String get video_call_try_again {
return Intl.message(
'Retry',
@@ -4230,13 +4259,45 @@ class S {
);
}
/// `Enter`
String get video_call_enter {
return Intl.message('Enter', name: 'video_call_enter', desc: '', args: []);
}
/// `Close`
String get video_call_close {
return Intl.message('Close', name: 'video_call_close', desc: '', args: []);
}
/// `Call in progress`
String get video_call_notification_in_progress {
return Intl.message(
'Call in progress',
name: 'video_call_notification_in_progress',
desc: '',
args: [],
);
}
/// `Return to call`
String get video_call_notification_return {
return Intl.message(
'Return to call',
name: 'video_call_notification_return',
desc: '',
args: [],
);
}
/// `End call`
String get video_call_notification_end {
return Intl.message(
'End call',
name: 'video_call_notification_end',
desc: '',
args: [],
);
}
}
class AppLocalizationDelegate extends LocalizationsDelegate<S> {