Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/ Rtsp camera feature #1458

Open
wants to merge 2 commits into
base: release-1.18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/l10n/intl_ar.arb
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@
"rtspCameraSettings": "إعدادات الكاميرا",
"invalidRtspUrl": "رابط RTSP غير صالح. يرجى التحقق من الرابط والمحاولة مرة أخرى.",
"validRtspUrl": "تم التحقق من رابط RTSP وحفظه بنجاح.",
"rtspCameraSettingTitle": "اتصال الكاميرا المباشر",
"rtspCameraSettingTitle": "إعداد البث المباشر لصلاة الجمعة",
"rtspCameraSettingDesc": "اتصل بالكاميرا المحلية واعرض بث صلاة الجمعة على شاشة التلفاز.",
"rtspCameraSettingScreenDesc": "إذا أدخلت رابطًا هنا، ستتحول شاشتك تلقائيًا إلى وضع بث الفيديو عند وصول وقت الجمعة.",
"validatingStream": "جارٍ التحقق من البث...",
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/intl_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@
"rtspCameraSettings":"Camera Settings",
"invalidRtspUrl":"Invalid URL. Please check the URL and try again.",
"validRtspUrl":"URL validated and saved successfully.",
"rtspCameraSettingTitle":"Live camera connection",
"rtspCameraSettingTitle":"Configuration of the live broadcast for Jumuaa Prayer",
"rtspCameraSettingDesc":"Connect to your local camera and display jumua prayer stream on the TV screen.",
"rtspCameraSettingScreenDesc":"If you enter a URL here, your screen will automatically switch to video streaming when Jumua time arrives",
"validatingStream":"Validating Stream...",
Expand Down
3 changes: 1 addition & 2 deletions lib/l10n/intl_fr.arb
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@
"rtspCameraSettings": "Paramètres de la caméra",
"invalidRtspUrl": "URL invalide. Veuillez vérifier l'URL et réessayer.",
"validRtspUrl": "URL validée et enregistrée avec succès.",
"rtspCameraSettingTitle": "Connexion de la caméra en direct",
"rtspCameraSettingTitle": "Configuration de diffusion en direct de la prière de Joumou'a",
"rtspCameraSettingDesc": "Connectez-vous à votre caméra locale et affichez le flux de la prière de la jumua sur l'écran de la TV.",
"rtspCameraSettingScreenDesc": "Si vous entrez une URL ici, votre écran passera automatiquement en mode streaming vidéo lorsque l'heure de la Jumua arrive.",
"validatingStream": "Validation du flux...",
Expand All @@ -381,7 +381,6 @@
"installingUpdate": "Installation de la mise à jour...",
"updateCompletedSuccessfully": "Mise à jour terminée avec succès",
"updateFailed": "Échec de la mise à jour",
"updateFailed": "Échec de la mise à jour",
"checkInternetUpdate": "Vous devez être connecté à Internet pour vérifier les nouvelles mises à jour",
"appUpdateAvailable": "Votre application utilise la version {currentVersion}. Une nouvelle mise à jour (version {updatedVersion}) est disponible avec les dernières fonctionnalités et améliorations.",
"@appUpdateAvailable": {
Expand Down
7 changes: 3 additions & 4 deletions lib/src/pages/rtsp_camera_settings_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,9 @@ class _RTSPCameraSettingsScreenState extends ConsumerState<RTSPCameraSettingsScr
}
});

WidgetsBinding.instance.addPostFrameCallback((_) {
final state = ref.read(rtspCameraSettingsProvider);
state.whenData((value) {
if (value.streamUrl != null) {
ref.listenManual(rtspCameraSettingsProvider, (previous, next) {
next.whenData((value) {
if (value.streamUrl != null && mounted) {
_urlController.text = value.streamUrl!;
}
});
Expand Down
Loading