mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-04 10:14:36 +02:00
Fix: temp fix for aac codec error by forcing aac encode #172, Change: Failed streams will close the stream and show error
This commit is contained in:
parent
8316a8c18b
commit
ac72ec1317
6 changed files with 52 additions and 12 deletions
|
@ -194,6 +194,13 @@ export default {
|
|||
console.error('No Audio Ref')
|
||||
}
|
||||
},
|
||||
streamError(streamId) {
|
||||
if (this.stream && (this.stream.id === streamId || streamId === 'n/a')) {
|
||||
this.terminateStream()
|
||||
this.$store.commit('clearStreamAudiobook', this.stream.audiobook.id)
|
||||
this.stream = null
|
||||
}
|
||||
},
|
||||
sendStreamSync(syncData) {
|
||||
var diff = syncData.currentTime - this.lastServerUpdateSentSeconds
|
||||
if (Math.abs(diff) < 1 && !syncData.timeListened) {
|
||||
|
|
|
@ -134,6 +134,10 @@ export default {
|
|||
streamReset(payload) {
|
||||
if (this.$refs.streamContainer) this.$refs.streamContainer.streamReset(payload)
|
||||
},
|
||||
streamError({ id, errorMessage }) {
|
||||
this.$toast.error(`Stream Failed: ${errorMessage}`)
|
||||
if (this.$refs.streamContainer) this.$refs.streamContainer.streamError(id)
|
||||
},
|
||||
audiobookAdded(audiobook) {
|
||||
this.$store.commit('audiobooks/addUpdate', audiobook)
|
||||
},
|
||||
|
@ -327,6 +331,7 @@ export default {
|
|||
this.socket.on('stream_progress', this.streamProgress)
|
||||
this.socket.on('stream_ready', this.streamReady)
|
||||
this.socket.on('stream_reset', this.streamReset)
|
||||
this.socket.on('stream_error', this.streamError)
|
||||
|
||||
// Audiobook Listeners
|
||||
this.socket.on('audiobook_updated', this.audiobookUpdated)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "audiobookshelf-client",
|
||||
"version": "1.6.16",
|
||||
"version": "1.6.17",
|
||||
"description": "Audiobook manager and player",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue