X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=webrtc%2Fwebrtc.php;h=8b3a243e32e49174dca797c13d0ca843b31d4df6;hb=72474dc2f62f193e3f91c19ad41ce3f158023bbf;hp=ad50a0d53b820e3346fb892889f44e08ec08faf1;hpb=2f1382a230722e97b71efe5e9d83b81df9b030fc;p=friendica-addons.git diff --git a/webrtc/webrtc.php b/webrtc/webrtc.php index ad50a0d5..8b3a243e 100644 --- a/webrtc/webrtc.php +++ b/webrtc/webrtc.php @@ -3,15 +3,15 @@ * Name: WebRTC Application * Description: add a webrtc instance for video/audio * Version: 1.0 - * Author: stephen mahood - * Author: Tobias Diekershoff + * Author: Stephen Mahood + * Author: Tobias Diekershoff */ function webrtc_install() { register_hook('app_menu', 'addon/webrtc/webrtc.php', 'webrtc_app_menu'); } -function web_uninstall() { +function webrtc_uninstall() { unregister_hook('app_menu', 'addon/webrtc/webrtc.php', 'webrtc_app_menu'); } @@ -23,7 +23,7 @@ function webrtc_app_menu($a,&$b) { function webrtc_plugin_admin (&$a, &$o) { $t = get_markup_template( "admin.tpl", "addon/webrtc/" ); $o = replace_macros( $t, array( - '$submit' => t('Submit'), + '$submit' => t('Save Settings'), '$webrtcurl' => array('webrtcurl', t('WebRTC Base URL'), get_config('webrtc','webrtcurl' ), t('Page your users will create a WebRTC chat room on. For example you could use https://live.mayfirst.org .')), )); } @@ -45,8 +45,13 @@ function webrtc_content(&$a) { /* embedd the landing page in an iframe */ $o .= '

'.t('Video Chat').'

'; - $o .= '

FIXME some short information for the enduser what to do. Best surrounded in a t() call so the text can be translated.

'; - $o .= ''; + $o .= '

'.t('WebRTC is a video and audio conferencing tool that works with Firefox (version 21 and above) and Chrome/Chromium (version 25 and above). Just create a new chat room and send the link to someone you want to chat with.').'

'; + if ($webrtcurl == '') { + $o .= '

'.t('Please contact your friendica admin and send a reminder to configure the WebRTC addon.').'

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