Adds some services
This commit is contained in:
parent
666c96dab9
commit
f1f24acda8
@ -43,6 +43,21 @@
|
||||
// };
|
||||
// }
|
||||
|
||||
BBB = {};
|
||||
BBB.getMyUserInfo = function (callback) {
|
||||
let result = {
|
||||
myUserID: 'getMyUserID',
|
||||
myUsername: 'getMyUserName',
|
||||
myInternalUserID: 'BBB.getMyUserID',
|
||||
myAvatarURL: null,
|
||||
myRole: 'getMyRole',
|
||||
amIPresenter: 'amIPresenter',
|
||||
voiceBridge: '70506',
|
||||
dialNumber: null,
|
||||
};
|
||||
return callback(result);
|
||||
};
|
||||
|
||||
// join the conference. If listen only send the request to the server
|
||||
function joinVoiceCall(options) {
|
||||
console.log(options);
|
||||
@ -53,8 +68,8 @@ function joinVoiceCall(options) {
|
||||
};
|
||||
|
||||
if (options.isListenOnly) {
|
||||
Meteor.call('listenOnlyRequestToggle', getInSession('meetingId'), getInSession('userId'),
|
||||
getInSession('authToken'), true);
|
||||
// Meteor.call('listenOnlyRequestToggle', getInSession('meetingId'), getInSession('userId'),
|
||||
// getInSession('authToken'), true);
|
||||
}
|
||||
|
||||
const requestedListenOnly = options.isListenOnly;
|
||||
|
@ -1,3 +1,3 @@
|
||||
import {Mongo} from 'meteor/mongo';
|
||||
|
||||
export const Polls = new Mongo.Collection('polls');
|
||||
export default new Mongo.Collection('polls');
|
||||
|
@ -2,7 +2,7 @@ import React, { Component, PropTypes } from 'react';
|
||||
import { createContainer } from 'meteor/react-meteor-data';
|
||||
|
||||
import App from './App.jsx';
|
||||
import AppService from './AppService';
|
||||
import {pollExists} from './AppService';
|
||||
|
||||
import NavBarContainer from '../nav-bar/NavBarContainer.jsx';
|
||||
import ActionsBarContainer from '../actions-bar/ActionsBarContainer.jsx';
|
||||
@ -34,7 +34,7 @@ class AppContainer extends Component {
|
||||
AppContainer.defaultProps = defaultProps;
|
||||
|
||||
const actionControlsToShow = () => {
|
||||
if (AppService.pollExists) {
|
||||
if (pollExists()) {
|
||||
return <PollingContainer />;
|
||||
} else {
|
||||
return <ActionsBarContainer />;
|
||||
|
@ -3,7 +3,7 @@ import Modal from 'react-modal';
|
||||
import {Icon} from '/imports/ui/components/shared/Icon.jsx';
|
||||
import {Button} from '/imports/ui/components/shared/Button.jsx';
|
||||
import BaseMenu from './BaseMenu.jsx';
|
||||
import {joinVoiceCall} from '/imports/api/phone/PhoneService.js';
|
||||
import {joinVoiceCall} from '/imports/api/phone/PhoneService';
|
||||
|
||||
export default class AudioMenu extends BaseMenu {
|
||||
constructor(props) {
|
||||
|
Loading…
Reference in New Issue
Block a user