Added channel preference UI for WebRTC Streaming
This commit is contained in:
parent
a07edfc842
commit
e3507b00f8
3 changed files with 42 additions and 2 deletions
|
|
@ -35,6 +35,11 @@ const chatSchema = require('./chatSchema');
|
|||
//Utils
|
||||
const { exceptionHandler, errorHandler } = require('../../utils/loggerUtils');
|
||||
|
||||
/**
|
||||
* "Enum" for emote type property
|
||||
*/
|
||||
const streamMethodEnum = ["webrtc","hls"];
|
||||
|
||||
/**
|
||||
* DB Schema for Documents containing de-hydrated representations of Canopy Stream/Chat Channels
|
||||
*/
|
||||
|
|
@ -71,6 +76,12 @@ const channelSchema = new mongoose.Schema({
|
|||
streamURL: {
|
||||
type: mongoose.SchemaTypes.String,
|
||||
default: ''
|
||||
},
|
||||
streamType: {
|
||||
type: mongoose.SchemaTypes.String,
|
||||
enum: streamMethodEnum,
|
||||
default: streamMethodEnum[0]
|
||||
|
||||
}
|
||||
},
|
||||
permissions: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue