mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-06-20 20:05:44 +02:00
55 lines
No EOL
688 B
JavaScript
55 lines
No EOL
688 B
JavaScript
const DownloadStatus = {
|
|
PENDING: 0,
|
|
READY: 1,
|
|
EXPIRED: 2,
|
|
FAILED: 3
|
|
}
|
|
|
|
const SyncStatus = {
|
|
UNSET: 0,
|
|
SUCCESS: 1,
|
|
FAILED: 2
|
|
}
|
|
|
|
const CoverDestination = {
|
|
METADATA: 0,
|
|
AUDIOBOOK: 1
|
|
}
|
|
|
|
const BookCoverAspectRatio = {
|
|
STANDARD: 0,
|
|
SQUARE: 1
|
|
}
|
|
|
|
const PlayMethod = {
|
|
DIRECTPLAY: 0,
|
|
DIRECTSTREAM: 1,
|
|
TRANSCODE: 2,
|
|
LOCAL: 3
|
|
}
|
|
|
|
const PlayerState = {
|
|
IDLE: 0,
|
|
BUFFERING: 1,
|
|
READY: 2,
|
|
ENDED: 3
|
|
}
|
|
|
|
const Constants = {
|
|
DownloadStatus,
|
|
SyncStatus,
|
|
CoverDestination,
|
|
BookCoverAspectRatio,
|
|
PlayMethod,
|
|
PlayerState
|
|
}
|
|
|
|
export {
|
|
PlayMethod,
|
|
PlayerState,
|
|
BookCoverAspectRatio
|
|
}
|
|
|
|
export default ({ app }, inject) => {
|
|
inject('constants', Constants)
|
|
} |