-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix youtube url regexp, typo in error and mock formatting
- Loading branch information
Showing
3 changed files
with
20 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,29 @@ | ||
import {BaseProvider, PlayerStates} from '../core/esl-media-provider'; | ||
|
||
export class BaseProviderMock extends BaseProvider { | ||
public bind(): void { | ||
} | ||
public bind(): void {} | ||
|
||
public get duration(): number { | ||
return 0; | ||
} | ||
public get duration(): number { | ||
return 0; | ||
} | ||
|
||
public get currentTime(): number { | ||
return 0; | ||
} | ||
public get currentTime(): number { | ||
return 0; | ||
} | ||
|
||
public get defaultAspectRatio(): number { | ||
return 0; | ||
} | ||
public get defaultAspectRatio(): number { | ||
return 0; | ||
} | ||
|
||
protected pause(): void | Promise<any> { | ||
} | ||
protected pause(): void | Promise<any> {} | ||
|
||
protected play(): void | Promise<any> { | ||
} | ||
protected play(): void | Promise<any> {} | ||
|
||
protected stop(): void | Promise<any> { | ||
} | ||
protected stop(): void | Promise<any> {} | ||
|
||
protected seekTo(pos?: number): void | Promise<any> { | ||
} | ||
protected seekTo(pos?: number): void | Promise<any> {} | ||
|
||
public get state() { | ||
return PlayerStates.UNINITIALIZED; | ||
} | ||
public get state() { | ||
return PlayerStates.UNINITIALIZED; | ||
} | ||
} |