diff --git a/src/schemas/channel/channelSchema.js b/src/schemas/channel/channelSchema.js
index b6df0b1..8bfa484 100644
--- a/src/schemas/channel/channelSchema.js
+++ b/src/schemas/channel/channelSchema.js
@@ -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: {
diff --git a/src/views/partial/channelSettings/settings.ejs b/src/views/partial/channelSettings/settings.ejs
index ec740eb..b077763 100644
--- a/src/views/partial/channelSettings/settings.ejs
+++ b/src/views/partial/channelSettings/settings.ejs
@@ -17,7 +17,11 @@ along with this program. If not, see