Skip to content

Commit

Permalink
create an interface for abr controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
lpommers committed Aug 16, 2022
1 parent 79895a4 commit 49674f0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/types/component-api.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
import EwmaBandWidthEstimator from '../utils/ewma-bandwidth-estimator';

export interface ComponentAPI {
destroy(): void;
}

export interface AbrComponentAPI extends ComponentAPI {
nextAutoLevel: Number;
clearTimer(): void;
readonly bwEstimator?: EwmaBandWidthEstimator;
}

export interface NetworkComponentAPI extends ComponentAPI {
startLoad(startPosition: number): void;
stopLoad(): void;
Expand Down

0 comments on commit 49674f0

Please sign in to comment.