From a8f1e48157e16b19a5af193aa6b0cba7f667ac96 Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Sat, 22 Jul 2017 10:43:18 -0700 Subject: [PATCH] ffmpeg: remove bitrate and codec warning Browsers which don't support CyTube's limited subset of generally-supported codecs probably aren't worth warning about. 1Mbps is way too low of a threshold to warn about bandwidth, but even if the threshold for warning were raised, it's probably still not that useful. --- src/channel/playlist.js | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/channel/playlist.js b/src/channel/playlist.js index 5afda666..b67c2418 100644 --- a/src/channel/playlist.js +++ b/src/channel/playlist.js @@ -926,28 +926,6 @@ PlaylistModule.prototype._addItem = function (media, data, user, cb) { }); } - /* Warn about high bitrate for raw files */ - if (media.type === "fi" && media.meta.bitrate > 1000) { - user.socket.emit("queueWarn", { - msg: "This video has a bitrate over 1000kbps. Clients with slow " + - "connections may experience lots of buffering.", - link: data.link - }); - } - - /* Warn about possibly unsupported formats */ - if (media.type === "fi" && media.meta.codec && - media.meta.codec.indexOf("/") !== -1 && - media.meta.codec !== "mov/h264" && - media.meta.codec !== "flv/h264") { - user.socket.emit("queueWarn", { - msg: "The codec " + media.meta.codec + " is not supported " + - "by all browsers, and is not supported by the flash fallback layer. " + - "This video may not play for some users.", - link: data.link - }); - } - var item = new PlaylistItem(media, { uid: self._nextuid++, temp: data.temp,