Skip to content

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

602 B
Raw Blame
import { IReduxState } from '../../app/types';

/**
 * Checks if Jitsi Meet is running on Spot TV.
 *
 * @param {IReduxState} state - The redux state.
 * @returns {boolean} Whether or not Jitsi Meet is running on Spot TV.
 */
export function isSpotTV(state: IReduxState): boolean {
    const { defaultLocalDisplayName, iAmSpot } = state['features/base/config'] || {};

    return iAmSpot
        || navigator.userAgent.includes('JitsiSpot/') // Jitsi Spot app
        || navigator.userAgent.includes('8x8MeetingRooms/') // 8x8 Meeting Rooms app
        || defaultLocalDisplayName === 'Meeting Room';
}