2017-06-04 10:40:14 +08:00
|
|
|
import React, { Component } from 'react';
|
2016-05-04 04:40:46 +08:00
|
|
|
import { createContainer } from 'meteor/react-meteor-data';
|
|
|
|
|
2016-05-20 21:44:27 +08:00
|
|
|
import VideoDock from './component';
|
2017-09-01 23:26:57 +08:00
|
|
|
import VideoService from './service';
|
2016-05-04 04:40:46 +08:00
|
|
|
|
|
|
|
class VideoDockContainer extends Component {
|
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
2017-09-01 23:26:57 +08:00
|
|
|
<VideoDock {...this.props}>
|
2016-05-04 04:40:46 +08:00
|
|
|
{this.props.children}
|
|
|
|
</VideoDock>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-01 23:26:57 +08:00
|
|
|
export default createContainer(() => ({
|
|
|
|
sendUserShareWebcam: VideoService.sendUserShareWebcam,
|
|
|
|
sendUserUnshareWebcam: VideoService.sendUserUnshareWebcam,
|
2017-12-09 00:38:51 +08:00
|
|
|
users: VideoService.getAllUsers(),
|
2017-09-01 23:26:57 +08:00
|
|
|
}), VideoDockContainer);
|