mirror of
https://github.com/janishutz/musickitjs-v3-types.git
synced 2026-10-09 05:06:22 +02:00
feat: basic initial types
This commit is contained in:
1 parent
850db4e487
commit
abbd0b48c5
9 files changed
+845
-1
No files matched your search
Vendored
+36
@@ -0,0 +1,36 @@
|
||||
declare namespace MusicKit {
|
||||
/**
|
||||
* The bitrate to choose for playback. HIGH is 256kbps, STANDARD is 64kbps
|
||||
*/
|
||||
enum PlaybackBitrate {
|
||||
'HIGH',
|
||||
'STANDARD'
|
||||
}
|
||||
|
||||
/**
|
||||
* State of the player. See https://js-cdn.music.apple.com/musickit/v3/docs/iframe.html?id=reference-javascript-musickit--page&viewMode=story&args=#playbackstates
|
||||
*/
|
||||
enum PlaybackStates {
|
||||
'none',
|
||||
'loading',
|
||||
'playing',
|
||||
'paused',
|
||||
'stopped',
|
||||
'ended',
|
||||
'seeking',
|
||||
'waiting',
|
||||
'stalled',
|
||||
'completed'
|
||||
}
|
||||
|
||||
enum PlayerRepeatMode {
|
||||
'all',
|
||||
'none',
|
||||
'one'
|
||||
}
|
||||
|
||||
enum PlayerShuffleMode {
|
||||
'on',
|
||||
'off'
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user