diff options
author | William Lahti <wilahti@gmail.com> | 2018-07-10 08:47:56 -0700 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-07-10 17:47:56 +0200 |
commit | 999417328bde0e60cd59318fc1c18672356254ce (patch) | |
tree | 22673fcbd4dc333e3362912b2c813e97a41c765f /client/src/standalone/player/definitions.ts | |
parent | 0b755f3b27190ea4d9c301ede0955b2736605f4c (diff) | |
download | PeerTube-999417328bde0e60cd59318fc1c18672356254ce.tar.gz PeerTube-999417328bde0e60cd59318fc1c18672356254ce.tar.zst PeerTube-999417328bde0e60cd59318fc1c18672356254ce.zip |
Ability to programmatically control embeds (#776)
* first stab at jschannel based player api
* semicolon purge
* more method-level docs; consolidate definitions
* missing definitions
* better match peertube's class conventions
* styling for embed tester
* basic docs
* add `getVolume`
* document the test-embed feature
Diffstat (limited to 'client/src/standalone/player/definitions.ts')
-rw-r--r-- | client/src/standalone/player/definitions.ts | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/client/src/standalone/player/definitions.ts b/client/src/standalone/player/definitions.ts new file mode 100644 index 000000000..6920672a7 --- /dev/null +++ b/client/src/standalone/player/definitions.ts | |||
@@ -0,0 +1,18 @@ | |||
1 | |||
2 | export interface EventHandler<T> { | ||
3 | (ev : T) : void | ||
4 | } | ||
5 | |||
6 | export type PlayerEventType = | ||
7 | 'pause' | 'play' | | ||
8 | 'playbackStatusUpdate' | | ||
9 | 'playbackStatusChange' | | ||
10 | 'resolutionUpdate' | ||
11 | ; | ||
12 | |||
13 | export interface PeerTubeResolution { | ||
14 | id : any | ||
15 | label : string | ||
16 | src : string | ||
17 | active : boolean | ||
18 | } \ No newline at end of file | ||