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

19 lines
496 B
React
Raw Normal View History

import React from 'react';
import { withTracker } from 'meteor/react-meteor-data';
import { Session } from 'meteor/session';
2019-09-11 02:04:42 +08:00
import { getVideoUrl } from './service';
import ExternalVideo from './component';
const ExternalVideoContainer = props => (
2019-09-11 02:04:42 +08:00
<ExternalVideo {...{ ...props }} />
);
export default withTracker(({ isPresenter }) => {
const inEchoTest = Session.get('inEchoTest');
return {
inEchoTest,
isPresenter,
2019-09-11 02:04:42 +08:00
videoUrl: getVideoUrl(),
};
})(ExternalVideoContainer);