emby.idonthaveagmail.com
Open in
urlscan Pro
66.181.119.213
Public Scan
Submitted URL: http://emby.idonthaveagmail.com/web/modules/common/qualityoptions.js?v=4.9.0.24
Effective URL: https://emby.idonthaveagmail.com/web/modules/common/qualityoptions.js?v=4.9.0.24
Submission: On October 30 via api from US — Scanned from US
Effective URL: https://emby.idonthaveagmail.com/web/modules/common/qualityoptions.js?v=4.9.0.24
Submission: On October 30 via api from US — Scanned from US
Form analysis
0 forms found in the DOMText Content
define(["exports","./globalize.js"],function(_exports,_globalize){Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0;_exports.default={getVideoQualityOptions:function(options){var maxStreamingBitrate=options.currentMaxBitrate,maxAllowedWidth=options.videoWidth||4096,qualityOptions=[],maxAllowedWidth=(3400<=maxAllowedWidth&&(qualityOptions.push({name:"4K - 200 Mbps",maxHeight:2160,bitrate:2e8}),qualityOptions.push({name:"4K - 160 Mbps",maxHeight:2160,bitrate:16e7}),qualityOptions.push({name:"4K - 140 Mbps",maxHeight:2160,bitrate:14e7}),qualityOptions.push({name:"4K - 120 Mbps",maxHeight:2160,bitrate:12e7}),qualityOptions.push({name:"4K - 100 Mbps",maxHeight:2160,bitrate:1e8}),qualityOptions.push({name:"4K - 80 Mbps",maxHeight:2160,bitrate:8e7}),qualityOptions.push({name:"4K - 60 Mbps",maxHeight:2160,bitrate:60000001}),qualityOptions.push({name:"4K - 40 Mbps",maxHeight:2160,bitrate:40000001})),1440<=maxAllowedWidth?(qualityOptions.push({name:"1080p - 60 Mbps",maxHeight:1080,bitrate:6e7}),qualityOptions.push({name:"1080p - 50 Mbps",maxHeight:1080,bitrate:5e7}),qualityOptions.push({name:"1080p - 40 Mbps",maxHeight:1080,bitrate:4e7}),qualityOptions.push({name:"1080p - 30 Mbps",maxHeight:1080,bitrate:3e7}),qualityOptions.push({name:"1080p - 25 Mbps",maxHeight:1080,bitrate:25e6}),qualityOptions.push({name:"1080p - 20 Mbps",maxHeight:1080,bitrate:2e7}),qualityOptions.push({name:"1080p - 15 Mbps",maxHeight:1080,bitrate:15e6}),qualityOptions.push({name:"1080p - 10 Mbps",maxHeight:1080,bitrate:10000001}),qualityOptions.push({name:"1080p - 8 Mbps",maxHeight:1080,bitrate:8000001}),qualityOptions.push({name:"1080p - 6 Mbps",maxHeight:1080,bitrate:6000001}),qualityOptions.push({name:"1080p - 5 Mbps",maxHeight:1080,bitrate:5000001}),qualityOptions.push({name:"1080p - 4 Mbps",maxHeight:1080,bitrate:4000002})):1200<=maxAllowedWidth?(qualityOptions.push({name:"720p - 10 Mbps",maxHeight:720,bitrate:1e7}),qualityOptions.push({name:"720p - 8 Mbps",maxHeight:720,bitrate:8e6}),qualityOptions.push({name:"720p - 6 Mbps",maxHeight:720,bitrate:6e6}),qualityOptions.push({name:"720p - 5 Mbps",maxHeight:720,bitrate:5e6})):620<=maxAllowedWidth&&(qualityOptions.push({name:"480p - 4 Mbps",maxHeight:480,bitrate:4000001}),qualityOptions.push({name:"480p - 3 Mbps",maxHeight:480,bitrate:3000001}),qualityOptions.push({name:"480p - 2.5 Mbps",maxHeight:480,bitrate:25e5}),qualityOptions.push({name:"480p - 2 Mbps",maxHeight:480,bitrate:2000001}),qualityOptions.push({name:"480p - 1.5 Mbps",maxHeight:480,bitrate:1500001})),1260<=maxAllowedWidth&&(qualityOptions.push({name:"720p - 4 Mbps",maxHeight:720,bitrate:4e6}),qualityOptions.push({name:"720p - 3 Mbps",maxHeight:720,bitrate:3e6}),qualityOptions.push({name:"720p - 2 Mbps",maxHeight:720,bitrate:2e6}),qualityOptions.push({name:"720p - 1.5 Mbps",maxHeight:720,bitrate:15e5}),qualityOptions.push({name:"720p - 1 Mbps",maxHeight:720,bitrate:1000001})),qualityOptions.push({name:"480p - 1 Mbps",maxHeight:480,bitrate:1e6}),qualityOptions.push({name:"480p - 720 kbps",maxHeight:480,bitrate:72e4}),qualityOptions.push({name:"480p - 420 kbps",maxHeight:480,bitrate:42e4}),qualityOptions.push({name:"360p",maxHeight:360,bitrate:4e5}),qualityOptions.push({name:"240p",maxHeight:240,bitrate:32e4}),qualityOptions.push({name:"144p",maxHeight:144,bitrate:192e3}),{name:_globalize.default.translate("Auto"),bitrate:0,selected:options.isAutomaticBitrateEnabled});if(options.enableAuto&&qualityOptions.push(maxAllowedWidth),maxStreamingBitrate){for(var selectedIndex=-1,i=0,length=qualityOptions.length;i<length;i++)-1===selectedIndex&&qualityOptions[i].bitrate<=maxStreamingBitrate&&(selectedIndex=i);var currentQualityOption=qualityOptions[selectedIndex=-1===selectedIndex?qualityOptions.length-1:selectedIndex];options.isAutomaticBitrateEnabled?maxAllowedWidth.autoText=currentQualityOption.name:currentQualityOption.selected=!0}for(var _i=0,_length=qualityOptions.length;_i<_length;_i++){var _option=qualityOptions[_i];_option.maxHeight&&(_option.maxWidth=Math.ceil(16*_option.maxHeight/9))}return qualityOptions},getAudioQualityOptions:function(options){var maxStreamingBitrate=options.currentMaxBitrate,qualityOptions=[],autoQualityOption=(qualityOptions.push({name:"2 Mbps",bitrate:2e6}),qualityOptions.push({name:"1.5 Mbps",bitrate:15e5}),qualityOptions.push({name:"1 Mbps",bitrate:1e6}),qualityOptions.push({name:"512 kbps",bitrate:512e3}),qualityOptions.push({name:"320 kbps",bitrate:32e4}),qualityOptions.push({name:"256 kbps",bitrate:256e3}),qualityOptions.push({name:"192 kbps",bitrate:192e3}),qualityOptions.push({name:"128 kbps",bitrate:128e3}),qualityOptions.push({name:"96 kbps",bitrate:96e3}),qualityOptions.push({name:"64 kbps",bitrate:64e3}),{name:_globalize.default.translate("Auto"),bitrate:0,selected:options.isAutomaticBitrateEnabled});if(options.enableAuto&&qualityOptions.push(autoQualityOption),maxStreamingBitrate){for(var selectedIndex=-1,i=0,length=qualityOptions.length;i<length;i++)-1===selectedIndex&&qualityOptions[i].bitrate<=maxStreamingBitrate&&(selectedIndex=i);var currentQualityOption=qualityOptions[selectedIndex=-1===selectedIndex?qualityOptions.length-1:selectedIndex];options.isAutomaticBitrateEnabled?autoQualityOption.autoText=currentQualityOption.name:currentQualityOption.selected=!0}return qualityOptions}}});