Skip to content

Commit

Permalink
Merge pull request video-dev#2144 from itsjamie/playlist-loader-types…
Browse files Browse the repository at this point in the history
…cript

* Playlist-loader rename.

* Playlist Loader conversion to TypeScript.

* Change responseType to string

* Typo fix for destory -> destroy.

* Change networkDetails type to "unknown".
  • Loading branch information
itsjamie authored Feb 26, 2019
2 parents e8a4085 + a3f95fc commit 7e0c599
Show file tree
Hide file tree
Showing 4 changed files with 263 additions and 121 deletions.
6 changes: 3 additions & 3 deletions src/controller/stream-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import { BufferHelper } from '../utils/buffer-helper';
import Demuxer from '../demux/demuxer';
import Event from '../events';
import { FragmentState } from './fragment-tracker';
import Fragment, { ElementaryStreamTypes } from '../loader/fragment';
import PlaylistLoader from '../loader/playlist-loader';
import { ElementaryStreamTypes } from '../loader/fragment';
import { PlaylistLevelType } from '../types/loader';
import * as LevelHelper from './level-helper';
import TimeRanges from '../utils/time-ranges';
import { ErrorDetails } from '../errors';
Expand Down Expand Up @@ -483,7 +483,7 @@ class StreamController extends BaseStreamController {
}

getBufferedFrag (position) {
return this.fragmentTracker.getBufferedFrag(position, PlaylistLoader.LevelType.MAIN);
return this.fragmentTracker.getBufferedFrag(position, PlaylistLevelType.MAIN);
}

get currentLevel () {
Expand Down
Loading

0 comments on commit 7e0c599

Please sign in to comment.