14 lines
331 B
JavaScript
14 lines
331 B
JavaScript
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 };
|