mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
For all intents and purposes 8x8 apps are integrating the SDK as a 3rd party. Yes, we are a 1st party of sorts, but that's ok because 8x8.vc allows embedding.
27 lines
587 B
TypeScript
27 lines
587 B
TypeScript
import { getBundleId } from 'react-native-device-info';
|
|
|
|
/**
|
|
* BUndle ids for the Jitsi Meet apps.
|
|
*/
|
|
const JITSI_MEET_APPS = [
|
|
|
|
// iOS app.
|
|
'com.atlassian.JitsiMeet.ios',
|
|
|
|
// Android + iOS (testing) app.
|
|
'org.jitsi.meet',
|
|
|
|
// Android debug app.
|
|
'org.jitsi.meet.debug'
|
|
];
|
|
|
|
/**
|
|
* Checks whether we are loaded in iframe. In the mobile case we treat SDK
|
|
* consumers as the web treats iframes.
|
|
*
|
|
* @returns {boolean} Whether the current app is a Jitsi Meet app.
|
|
*/
|
|
export function isEmbedded(): boolean {
|
|
return !JITSI_MEET_APPS.includes(getBundleId());
|
|
}
|