2020-12-10 06:00:54 +08:00
|
|
|
import React from 'react';
|
|
|
|
import { withTracker } from 'meteor/react-meteor-data';
|
|
|
|
import { withModalMounter } from '/imports/ui/components/modal/service';
|
|
|
|
import ScreenshareButton from './component';
|
|
|
|
import getFromUserSettings from '/imports/ui/services/users-settings';
|
|
|
|
import {
|
|
|
|
isVideoBroadcasting,
|
|
|
|
dataSavingSetting,
|
|
|
|
} from '/imports/ui/components/screenshare/service';
|
|
|
|
|
2021-08-09 22:24:02 +08:00
|
|
|
const ScreenshareButtonContainer = (props) => <ScreenshareButton {...props} />;
|
2020-12-10 06:00:54 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* All props, including the ones that are inherited from actions-bar
|
|
|
|
* isVideoBroadcasting,
|
|
|
|
* amIPresenter,
|
|
|
|
* screenSharingCheck,
|
|
|
|
* isMeteorConnected,
|
|
|
|
* screenshareDataSavingSetting,
|
|
|
|
*/
|
2021-08-09 22:24:02 +08:00
|
|
|
export default withModalMounter(withTracker(() => ({
|
2020-12-10 06:00:54 +08:00
|
|
|
isVideoBroadcasting: isVideoBroadcasting(),
|
|
|
|
screenshareDataSavingSetting: dataSavingSetting(),
|
|
|
|
enabled: getFromUserSettings(
|
|
|
|
'bbb_enable_screen_sharing',
|
2021-08-09 22:24:02 +08:00
|
|
|
Meteor.settings.public.kurento.enableScreensharing,
|
2020-12-10 06:00:54 +08:00
|
|
|
),
|
|
|
|
}))(ScreenshareButtonContainer));
|