mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add playback subscriber abstraction
This commit is contained in:
parent
2442dc6b52
commit
26f7f281cd
7 changed files with 209 additions and 1 deletions
23
src/apps/stable/features/playback/constants/playerEvent.ts
Normal file
23
src/apps/stable/features/playback/constants/playerEvent.ts
Normal file
|
@ -0,0 +1,23 @@
|
|||
/**
|
||||
* Events triggered by media player plugins.
|
||||
* NOTE: This list is incomplete
|
||||
*/
|
||||
export enum PlayerEvent {
|
||||
Error = 'error',
|
||||
FullscreenChange = 'fullscreenchange',
|
||||
ItemStarted = 'itemstarted',
|
||||
ItemStopped = 'itemstopped',
|
||||
MediaStreamsChange = 'mediastreamschange',
|
||||
Pause = 'pause',
|
||||
PlaybackStart = 'playbackstart',
|
||||
PlaybackStop = 'playbackstop',
|
||||
PlaylistItemAdd = 'playlistitemadd',
|
||||
PlaylistItemMove = 'playlistitemmove',
|
||||
PlaylistItemRemove = 'playlistitemremove',
|
||||
RepeatModeChange = 'repeatmodechange',
|
||||
ShuffleModeChange = 'shufflequeuemodechange',
|
||||
Stopped = 'stopped',
|
||||
TimeUpdate = 'timeupdate',
|
||||
Unpause = 'unpause',
|
||||
VolumeChange = 'volumechange'
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue