bigbluebutton-Github/bigbluebutton-html5/imports/api/external-videos/index.js

14 lines
331 B
JavaScript
Raw Normal View History

import { Meteor } from 'meteor/meteor';
import { makeCall } from '/imports/ui/services/api';
let streamer = null;
const getStreamer = (meetingID) => {
if (!streamer) {
streamer = new Meteor.Streamer(`external-videos-${meetingID}`);
makeCall('initializeExternalVideo');
}
return streamer;
};
export { getStreamer };