From cbe250fabf700de36a19b3fa910f8911b822b0fa Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Sun, 13 May 2018 13:49:25 +0200 Subject: [PATCH] All thigns related to player element have been moved to PlayerData (or at least most of them). --- js/lib/EdgeDetect.js | 20 ++-- js/lib/PlayerData.js | 205 +++++++++++++++++++++++++++++++++++++++++ js/lib/PlayerDetect.js | 173 ---------------------------------- js/lib/VideoData.js | 2 + js/modules/PageInfo.js | 48 ++++++++-- js/uw.js | 46 ++------- 6 files changed, 266 insertions(+), 228 deletions(-) create mode 100644 js/lib/PlayerData.js delete mode 100644 js/lib/PlayerDetect.js diff --git a/js/lib/EdgeDetect.js b/js/lib/EdgeDetect.js index 0a51ad9..358d700 100644 --- a/js/lib/EdgeDetect.js +++ b/js/lib/EdgeDetect.js @@ -1,3 +1,13 @@ +var EdgeDetectPrimaryDirection = { + VERTICAL: 0, + HORIZONTAL: 1 +} + +var EdgeDetectQuality = { + FAST: 0, + IMPROVED: 1 +} + class EdgeDetect{ constructor(ardConf){ @@ -575,14 +585,4 @@ class EdgeDetect{ } } -} - -var EdgeDetectPrimaryDirection = { - VERTICAL: 0, - HORIZONTAL: 1 -} - -var EdgeDetectQuality = { - FAST: 0, - IMPROVED: 1 } \ No newline at end of file diff --git a/js/lib/PlayerData.js b/js/lib/PlayerData.js new file mode 100644 index 0000000..390e8d8 --- /dev/null +++ b/js/lib/PlayerData.js @@ -0,0 +1,205 @@ +if(Debug.debug) + console.log("Loading: FullScreenDetect.js"); + +/* sprejme