2017-10-12 05:52:19 +08:00
|
|
|
import { Meteor } from 'meteor/meteor';
|
|
|
|
|
2021-10-20 04:35:39 +08:00
|
|
|
const collectionOptions = Meteor.isClient ? {
|
|
|
|
connection: null,
|
|
|
|
} : {};
|
|
|
|
|
|
|
|
const Screenshare = new Mongo.Collection('screenshare', collectionOptions);
|
2017-10-12 05:52:19 +08:00
|
|
|
|
|
|
|
if (Meteor.isServer) {
|
|
|
|
// types of queries for the screenshare:
|
|
|
|
// 1. meetingId
|
|
|
|
|
2023-03-17 02:13:43 +08:00
|
|
|
Screenshare.createIndexAsync({ meetingId: 1 });
|
2017-10-12 05:52:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export default Screenshare;
|