bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/actions-bar/container.jsx
prlanzarin f43b77c19f Merge branch 'node-bbb-apps-packaging' into bbb-webrtc-sfu
Conflicts:
	bigbluebutton-html5/imports/startup/client/base.jsx
	bigbluebutton-html5/imports/ui/components/actions-bar/actions-dropdown/component.jsx
	bigbluebutton-html5/imports/ui/components/actions-bar/component.jsx
	bigbluebutton-html5/imports/ui/components/app/container.jsx
	bigbluebutton-html5/imports/ui/components/screenshare/service.js
	bigbluebutton-html5/imports/ui/components/video-dock/component.jsx
	bigbluebutton-html5/imports/ui/components/video-dock/container.jsx
	bigbluebutton-html5/private/locales/en.json bigbluebutton-html5/server/main.js
2017-11-11 03:41:37 +00:00

41 lines
1.4 KiB
JavaScript

import React from 'react';
import { createContainer } from 'meteor/react-meteor-data';
import { withModalMounter } from '/imports/ui/components/modal/service';
import ActionsBar from './component';
import Service from './service';
import AudioService from '../audio/service';
import VideoService from '../video-dock/service';
import ScreenshareService from '../screenshare/service';
import AudioModal from '../audio/audio-modal/component';
const ActionsBarContainer = ({ children, ...props }) => (
<ActionsBar {...props}>
{children}
</ActionsBar>
);
export default withModalMounter(createContainer(({ mountModal }) => {
const isPresenter = Service.isUserPresenter();
const handleExitAudio = () => AudioService.exitAudio();
const handleOpenJoinAudio = () =>
mountModal(<AudioModal handleJoinListenOnly={AudioService.joinListenOnly} />);
const handleExitVideo = () => VideoService.exitVideo();
const handleJoinVideo = () => VideoService.joinVideo();
const handleShareScreen = () => ScreenshareService.shareScreen();
const handleUnshareScreen = () => ScreenshareService.unshareScreen();
const isVideoBroadcasting = () => ScreenshareService.isVideoBroadcasting();
return {
isUserPresenter: isPresenter,
handleExitAudio,
handleOpenJoinAudio,
handleExitVideo,
handleJoinVideo,
handleShareScreen,
handleUnshareScreen,
isVideoBroadcasting
};
}, ActionsBarContainer));