ShellBanner
System:Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686
Software:Apache. PHP/5.3.6-13ubuntu3.10
ID:uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
Safe Mode:OFF
Open_Basedir:OFF
Freespace:24.87 GB of 70.42 GB (35.32%)
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,

/ http/ root/ hls/ tests/ unit/ controller/ - drwxr-xr-x

Directory:
Viewing file:     abr-controller.js (1.24 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
import AbrController from '../../../src/controller/abr-controller';
import EwmaBandWidthEstimator from '../../../src/utils/ewma-bandwidth-estimator';
import Hls from '../../../src/hls';

describe('AbrController', function () {
  it('should return null if _bwEstimator is not specified', function () {
    let hls = new Hls();
    expect(hls.abrController._bwEstimator).to.be.null;
  });

  it('should return correct next auto level', function () {
    let hls = new Hls({ maxStarvationDelay: 4 });
    hls.levelController._levels = [
      { bitrate: 105000, name: '144', details: { totalduration: 4, fragments: [{}] } },
      { bitrate: 246440, name: '240', details: { totalduration: 10, fragments: [ {} ] } },
      { bitrate: 460560, name: '380', details: { totalduration: 10, fragments: [ {} ] } },
      { bitrate: 836280, name: '480', details: { totalduration: 10, fragments: [ {} ] } },
      { bitrate: 2149280, name: '720', details: { totalduration: 10, fragments: [ {} ] } },
      { bitrate: 6221600, name: '1080', details: { totalduration: 10, fragments: [ {} ] } }
    ];
    let abrController = new AbrController(hls);
    abrController.bwEstimator = new EwmaBandWidthEstimator(hls, 15, 4, 5e5);
    expect(abrController.nextAutoLevel).to.equal(0);
  });
});
Command:
Quick Commands:
Upload:
[Read-Only] Max size: 100MB
PHP Filesystem: <@ Ú
Search File:
regexp
Create File:
Overwrite [Read-Only]
View File:
Mass Defacement:
[+] Main Directory: [+] Defacement Url:
LmfaoX Shell - Private Build [BETA] - v0.1 -; Generated: 1.2374 seconds