From ba8088b678e1328559c355ea6f9f39148af708f0 Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Sun, 13 Aug 2017 21:48:50 -0700 Subject: [PATCH] videojs: default quality to 480 instead of 1080 --- package.json | 2 +- player/videojs.coffee | 2 +- www/js/player.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 69a1231f..c8091fa4 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "Calvin Montgomery", "name": "CyTube", "description": "Online media synchronizer and chat", - "version": "3.46.0", + "version": "3.46.1", "repository": { "url": "http://github.com/calzoneman/sync" }, diff --git a/player/videojs.coffee b/player/videojs.coffee index 5c294e1e..5e99339e 100644 --- a/player/videojs.coffee +++ b/player/videojs.coffee @@ -9,7 +9,7 @@ sortSources = (sources) -> pref = '2160' idx = qualities.indexOf(pref) if idx < 0 - idx = 2 + idx = 5 # 480p qualityOrder = qualities.slice(idx).concat(qualities.slice(0, idx).reverse()) sourceOrder = [] diff --git a/www/js/player.js b/www/js/player.js index fccd7573..fc4ce1c6 100644 --- a/www/js/player.js +++ b/www/js/player.js @@ -459,7 +459,7 @@ } idx = qualities.indexOf(pref); if (idx < 0) { - idx = 2; + idx = 5; } qualityOrder = qualities.slice(idx).concat(qualities.slice(0, idx).reverse()); sourceOrder = [];