Added channel preference UI for WebRTC Streaming

This commit is contained in:
rainbow napkin 2026-07-06 21:28:55 -04:00
parent a07edfc842
commit e3507b00f8
3 changed files with 42 additions and 2 deletions

View file

@ -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: {