bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/video-preview/container.jsx

22 lines
835 B
React
Raw Normal View History

2018-11-07 07:10:56 +08:00
import React from 'react';
import { withModalMounter } from '/imports/ui/components/modal/service';
import { withTracker } from 'meteor/react-meteor-data';
import deviceInfo from '/imports/utils/deviceInfo';
2018-11-07 07:10:56 +08:00
import Service from './service';
import VideoPreview from './component';
import VideoService from '../video-provider/service';
const VideoPreviewContainer = props => <VideoPreview {...props} />;
export default withModalMounter(withTracker(({ mountModal }) => ({
startSharing: () => {
mountModal(null);
VideoService.joinVideo();
},
closeModal: () => mountModal(null),
2018-11-07 07:10:56 +08:00
changeWebcam: deviceId => Service.changeWebcam(deviceId),
webcamDeviceId: Service.webcamDeviceId(),
2019-04-09 06:07:26 +08:00
changeProfile: profileId => Service.changeProfile(profileId),
hasMediaDevices: deviceInfo.hasMediaDevices,
2018-11-07 07:10:56 +08:00
}))(VideoPreviewContainer));