-
Notifications
You must be signed in to change notification settings - Fork 3
/
TwitchPlayerEvent.ts
45 lines (45 loc) · 1.02 KB
/
TwitchPlayerEvent.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/**
* Provides a list of subscribable Twitch player events.
*/
export enum TwitchPlayerEvent {
/**
* The video player is ready for API commands.
*/
VIDEO_READY = 'video.ready',
/**
* The video started playing. This callback receives an object with a sessionId property.
*/
VIDEO_PLAY = 'video.play',
/**
* Video or stream ends.
*/
ENDED = 'ended',
/**
* Player is paused. Buffering and seeking is not considered paused.
*/
PAUSE = 'pause',
/**
* Player just unpaused, will either start video playback or start buffering.
*/
PLAY = 'play',
/**
* Player playback was blocked. Usually fired after an unmuted autoplay or unmuted programmatic call on `play()`.
*/
PLAYBACK_BLOCKED = 'playbackBlocked',
/**
* Player started video playback.
*/
PLAYING = 'playing',
/**
* Loaded channel goes offline.
*/
OFFLINE = 'offline',
/**
* Loaded channel goes online.
*/
ONLINE = 'online',
/**
* Player is ready to accept function calls.
*/
READY = 'ready'
}