Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Add no mobile app component

Ilya Daynatovich05b7df26e6f3
diff --git a/css/main.scss b/css/main.scss
index f8afad43d3..f8bdadd8b3 100644
--- a/css/main.scss
+++ b/css/main.scss
@@ -68,7 +68,6 @@
@import '404';
@import 'policy';
@import 'filmstrip';
-@import 'unsupported-browser/unsupported-desktop-browser';
-@import 'unsupported-browser/unsupported-mobile-browser';
+@import 'unsupported-browser/main';
/* Modules END */
diff --git a/css/unsupported-browser/_main.scss b/css/unsupported-browser/_main.scss
new file mode 100644
index 0000000000..2eacb9a2fb
--- /dev/null
+++ b/css/unsupported-browser/_main.scss
@@ -0,0 +1,3 @@
+@import 'no-mobile-app';
+@import 'unsupported-desktop-browser';
+@import 'unsupported-mobile-browser';
\ No newline at end of file
diff --git a/css/unsupported-browser/_no-mobile-app.scss b/css/unsupported-browser/_no-mobile-app.scss
new file mode 100644
index 0000000000..6894dfa152
--- /dev/null
+++ b/css/unsupported-browser/_no-mobile-app.scss
@@ -0,0 +1,21 @@
+.no-mobile-app {
+ margin: 30% auto 0;
+ width: auto;
+ max-width: 25em;
+ text-align: center;
+
+ &__title {
+ padding-bottom: em(17, 24);
+ border-bottom: 1px solid $auiBorderColor;
+ font-weight: 400;
+ letter-spacing: 0.5px;
+ color: #fff;
+ }
+
+ &__description {
+ margin-top: 1em;
+ font-size: 17px;
+ font-weight: 300;
+ letter-spacing: 1px;
+ }
+}
\ No newline at end of file
diff --git a/interface_config.js b/interface_config.js
index 2da4f00a8b..519b8f6e30 100644
--- a/interface_config.js
+++ b/interface_config.js
@@ -72,5 +72,7 @@ var interfaceConfig = { // eslint-disable-line no-unused-vars
LOCAL_THUMBNAIL_RATIO: 16/9, //16:9
REMOTE_THUMBNAIL_RATIO: 1, //1:1
// Documentation reference for the live streaming feature.
- LIVE_STREAMING_HELP_LINK: "https://jitsi.org/live"
+ LIVE_STREAMING_HELP_LINK: "https://jitsi.org/live",
+ // Enabling mobile landing page with the link to mobile app.
+ MOBILE_APP_ENABLED: true
};
diff --git a/react/features/base/util/interceptComponent.js b/react/features/base/util/interceptComponent.js
index beacb02279..f5b9a777c4 100644
--- a/react/features/base/util/interceptComponent.js
+++ b/react/features/base/util/interceptComponent.js
@@ -1,9 +1,10 @@
-/* global APP */
+/* global APP, interfaceConfig */
import { Platform } from '../react';
import {
- UnsupportedDesktopBrowser,
+ NoMobileApp,
PluginRequiredBrowser,
+ UnsupportedDesktopBrowser,
UnsupportedMobileBrowser
} from '../../unsupported-browser';
@@ -30,7 +31,10 @@ const _RULES = [
const OS = Platform.OS;
if (OS === 'android' || OS === 'ios') {
- return UnsupportedMobileBrowser;
+ return (
+ interfaceConfig.MOBILE_APP_ENABLED
+ ? UnsupportedMobileBrowser
+ : NoMobileApp);
}
},
() => {
diff --git a/react/features/unsupported-browser/components/NoMobileApp.js b/react/features/unsupported-browser/components/NoMobileApp.js
new file mode 100644
index 0000000000..3d434c49ce
--- /dev/null
+++ b/react/features/unsupported-browser/components/NoMobileApp.js
@@ -0,0 +1,31 @@
+/* global interfaceConfig */
+import React, { Component } from 'react';
+
+/**
+ * React component representing no mobile page.
+ *
+ * @class NoMobileApp
+ */
+export default class NoMobileApp extends Component {
+
+ /**
+ * Renders the component.
+ *
+ * @returns {ReactElement}
+ */
+ render() {
+ const ns = 'no-mobile-app';
+
+ return (
+ <div className = { ns }>
+ <h2 className = { `${ns}__title` }>
+ Video chat isn't available in the mobile apps
+ </h2>
+ <p className = { `${ns}__description` }>
+ Please use { interfaceConfig.APP_NAME } on <br />
+ Desktop top join calls.
+ </p>
+ </div>
+ );
+ }
+}
diff --git a/react/features/unsupported-browser/components/index.js b/react/features/unsupported-browser/components/index.js
index a9503dd3a9..a74f65fbcb 100644
--- a/react/features/unsupported-browser/components/index.js
+++ b/react/features/unsupported-browser/components/index.js
@@ -1,3 +1,4 @@
+export { default as NoMobileApp } from './NoMobileApp';
export { default as PluginRequiredBrowser } from './PluginRequiredBrowser';
export { default as UnsupportedDesktopBrowser }
from './UnsupportedDesktopBrowser';