2017-03-28 04:40:44 +08:00
|
|
|
import React from 'react';
|
2017-03-28 22:02:23 +08:00
|
|
|
import AudioModal from './audio-modal/component';
|
|
|
|
import Meetings from '/imports/api/meetings';
|
|
|
|
|
|
|
|
import { showModal } from '/imports/ui/components/app/service';
|
2017-03-30 02:46:33 +08:00
|
|
|
import { joinListenOnly, joinMicrophone,
|
|
|
|
exitAudio } from '/imports/api/audio/client/main';
|
2017-03-28 22:02:23 +08:00
|
|
|
|
|
|
|
const handleJoinAudio = () => {
|
|
|
|
const handleJoinListenOnly = () => joinListenOnly();
|
|
|
|
return showModal(<AudioModal handleJoinListenOnly={handleJoinListenOnly} />);
|
|
|
|
};
|
|
|
|
|
2017-03-30 02:46:33 +08:00
|
|
|
const getVoiceBridge = () => {
|
2017-03-28 22:02:23 +08:00
|
|
|
return Meetings.findOne({}).voiceConf;
|
2017-03-30 02:46:33 +08:00
|
|
|
} ;
|
2017-03-28 22:02:23 +08:00
|
|
|
|
|
|
|
export {
|
|
|
|
handleJoinAudio,
|
|
|
|
getVoiceBridge,
|
|
|
|
exitAudio,
|
|
|
|
joinListenOnly,
|
|
|
|
joinMicrophone,
|
2017-03-28 04:40:44 +08:00
|
|
|
};
|