@100mslive/react-native-room-kit
Version:
100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.
25 lines (20 loc) • 526 B
text/typescript
// @ts-nocheck
const DEFAULT_JOINING_CONFIG = {
mutedAudio: true,
mutedVideo: true,
skipPreview: false,
audioMixer: false, // iOS only
musicMode: false, // iOS only
softwareDecoder: true, // Android only
autoResize: false, // Android only
};
let config = DEFAULT_JOINING_CONFIG;
export const getJoinConfig = (): typeof DEFAULT_JOINING_CONFIG => {
if (
typeof global.joinConfig === 'object' &&
global.joinConfig.mutedAudio !== undefined
) {
config = global.joinConfig;
}
return config;
};