From 5e48ab5e8442db96137bc9c7d23a5d4e3e981816 Mon Sep 17 00:00:00 2001 From: loma-one Date: Sun, 10 Dec 2023 16:40:49 +0100 Subject: [PATCH] Audon is no longer launched as an iFrame, but as a browser window. With the iFrame solution there could be problems activating the microphone settings. Therefore, a separate browser window is now opened. --- audon/audon.php | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/audon/audon.php b/audon/audon.php index 553e7f5c..91fdc50c 100644 --- a/audon/audon.php +++ b/audon/audon.php @@ -1,8 +1,8 @@ * Author: Tobias Diekershoff * Author: Matthias Ebers @@ -26,13 +26,13 @@ function audon_addon_admin(string &$o) { $t = Renderer::getMarkupTemplate('admin.tpl', 'addon/audon/'); $o = Renderer::replaceMacros($t, [ - '$submit' => DI::l10n()->t('Save Settings'), + '$submit' => DI::l10n()->t('Save Settings'), '$audonurl' => [ - 'audonurl', - DI::l10n()->t('Audon Base URL'), - DI::config()->get('audon','audonurl'), - DI::l10n()->t('Page your users will create an Audon audio chat room on. For example you could use https://audon.space.'), - ], + 'audonurl', + DI::l10n()->t('Audon Base URL'), + DI::config()->get('audon', 'audonurl'), + DI::l10n()->t('Page your users will create an Audon audio chat room on. For example, you could use https://audon.space.'), + ], ]); } @@ -46,23 +46,26 @@ function audon_addon_admin_post() * existence of this method is checked to figure out if the addon offers a * module. */ -function audon_module() {} +function audon_module() +{ +} function audon_content(): string { $o = ''; - /* landingpage to create chatrooms */ + /* landing page to create chatrooms */ $audonurl = DI::config()->get('audon', 'audonurl'); + /* open the landing page in a new browser window without controls */ + $o .= ''; - /* embedd the landing page in an iframe */ $o .= '

' . DI::l10n()->t('Audio Chat') . '

'; $o .= '

' . DI::l10n()->t('Audon is an audio conferencing tool. Connect your account to Audon and create a room. Share the generated link to talk to other participants.') . '

'; if ($audonurl == '') { $o .= '

' . DI::l10n()->t('Please contact your Friendica administrator to remind them to configure the Audon addon.') . '

'; - } else { - $o .= ''; } return $o;