2019-09-07 00:50:31 +08:00
|
|
|
import { Meteor } from 'meteor/meteor';
|
|
|
|
|
2021-10-20 04:35:39 +08:00
|
|
|
const collectionOptions = Meteor.isClient ? {
|
|
|
|
connection: null,
|
|
|
|
} : {};
|
|
|
|
|
|
|
|
const VideoStreams = new Mongo.Collection('video-streams', collectionOptions);
|
2019-09-07 00:50:31 +08:00
|
|
|
|
|
|
|
if (Meteor.isServer) {
|
|
|
|
// types of queries for the video users:
|
|
|
|
// 2. meetingId
|
|
|
|
|
|
|
|
VideoStreams._ensureIndex({ meetingId: 1 });
|
|
|
|
}
|
|
|
|
|
|
|
|
export default VideoStreams;
|