bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/video-provider/container.jsx
Pedro Beschorner Marin 3b591a086b Unified video providers
2019-12-10 09:02:16 -03:00

16 lines
535 B
JavaScript

import React from 'react';
import { withTracker } from 'meteor/react-meteor-data';
import VideoProvider from './component';
import VideoService from './service';
const VideoProviderContainer = ({ children, ...props }) => {
const { streams } = props;
return (!streams.length ? null : <VideoProvider {...props}>{children}</VideoProvider>);
};
export default withTracker(props => ({
swapLayout: props.swapLayout,
streams: VideoService.getVideoStreams(),
isUserLocked: VideoService.isUserLocked(),
}))(VideoProviderContainer);