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
|
|
|
|
|
2023-03-20 20:23:39 +08:00
|
|
|
VideoStreams.createIndexAsync({ meetingId: 1 });
|
2019-09-07 00:50:31 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export default VideoStreams;
|