2017-10-06 20:50:01 +08:00
|
|
|
import React from 'react';
|
2018-01-08 12:44:42 +08:00
|
|
|
import { withTracker } from 'meteor/react-meteor-data';
|
2016-05-20 21:46:30 +08:00
|
|
|
import ActionsBar from './component';
|
2016-11-08 02:19:00 +08:00
|
|
|
import Service from './service';
|
2017-09-20 11:12:10 +08:00
|
|
|
import VideoService from '../video-dock/service';
|
2018-01-08 12:44:42 +08:00
|
|
|
import { shareScreen, unshareScreen, isVideoBroadcasting } from '../screenshare/service';
|
2017-05-02 03:52:57 +08:00
|
|
|
|
2017-11-24 01:20:27 +08:00
|
|
|
const ActionsBarContainer = props => <ActionsBar {...props} />;
|
2016-04-29 03:02:51 +08:00
|
|
|
|
2018-01-08 12:44:42 +08:00
|
|
|
export default withTracker(() => ({
|
2017-11-24 01:20:27 +08:00
|
|
|
isUserPresenter: Service.isUserPresenter(),
|
|
|
|
emojiList: Service.getEmojiList(),
|
|
|
|
emojiSelected: Service.getEmoji(),
|
|
|
|
handleEmojiChange: Service.setEmoji,
|
2017-12-22 01:40:00 +08:00
|
|
|
handleExitVideo: () => VideoService.exitVideo(),
|
|
|
|
handleJoinVideo: () => VideoService.joinVideo(),
|
2018-01-08 12:44:42 +08:00
|
|
|
handleShareScreen: () => shareScreen(),
|
|
|
|
handleUnshareScreen: () => unshareScreen(),
|
2018-01-17 11:17:07 +08:00
|
|
|
isVideoBroadcasting: isVideoBroadcasting(),
|
2016-04-29 03:02:51 +08:00
|
|
|
|
2018-01-08 12:44:42 +08:00
|
|
|
}))(ActionsBarContainer);
|