feat: channel avatar and restream options

This commit is contained in:
Ante Brähler
2024-11-20 23:16:20 +00:00
parent 938b2bba87
commit 4708632005
12 changed files with 79 additions and 34 deletions

View File

@@ -7,6 +7,7 @@ const ChannelSocketHandler = require('./socket/ChannelSocketHandler');
const channelController = require('./controllers/ChannelController');
const streamController = require('./controllers/StreamController');
const ChannelService = require('./services/ChannelService');
dotenv.config();
@@ -23,7 +24,9 @@ app.use('/channels', apiRouter);
const PORT = 5000;
const server = app.listen(PORT, () => {
console.log(`Server listening on Port ${PORT}`);
//streamController.start();
if(ChannelService.getCurrentChannel().restream) {
streamController.start();
}
});