mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-03 17:54:54 +02:00
Rename StreamContainer to MediaPlayerContainer
This commit is contained in:
parent
6111e8f0da
commit
44135b3fed
2 changed files with 15 additions and 15 deletions
|
@ -7,7 +7,7 @@
|
|||
<Nuxt :key="currentLang" />
|
||||
</div>
|
||||
|
||||
<app-stream-container ref="streamContainer" />
|
||||
<app-media-player-container ref="mediaPlayerContainer" />
|
||||
|
||||
<modals-item-edit-modal />
|
||||
<modals-collections-add-create-modal />
|
||||
|
@ -129,23 +129,23 @@ export default {
|
|||
this.$eventBus.$emit('socket_init')
|
||||
},
|
||||
streamOpen(stream) {
|
||||
if (this.$refs.streamContainer) this.$refs.streamContainer.streamOpen(stream)
|
||||
if (this.$refs.mediaPlayerContainer) this.$refs.mediaPlayerContainer.streamOpen(stream)
|
||||
},
|
||||
streamClosed(streamId) {
|
||||
if (this.$refs.streamContainer) this.$refs.streamContainer.streamClosed(streamId)
|
||||
if (this.$refs.mediaPlayerContainer) this.$refs.mediaPlayerContainer.streamClosed(streamId)
|
||||
},
|
||||
streamProgress(data) {
|
||||
if (this.$refs.streamContainer) this.$refs.streamContainer.streamProgress(data)
|
||||
if (this.$refs.mediaPlayerContainer) this.$refs.mediaPlayerContainer.streamProgress(data)
|
||||
},
|
||||
streamReady() {
|
||||
if (this.$refs.streamContainer) this.$refs.streamContainer.streamReady()
|
||||
if (this.$refs.mediaPlayerContainer) this.$refs.mediaPlayerContainer.streamReady()
|
||||
},
|
||||
streamReset(payload) {
|
||||
if (this.$refs.streamContainer) this.$refs.streamContainer.streamReset(payload)
|
||||
if (this.$refs.mediaPlayerContainer) this.$refs.mediaPlayerContainer.streamReset(payload)
|
||||
},
|
||||
streamError({ id, errorMessage }) {
|
||||
this.$toast.error(`Stream Failed: ${errorMessage}`)
|
||||
if (this.$refs.streamContainer) this.$refs.streamContainer.streamError(id)
|
||||
if (this.$refs.mediaPlayerContainer) this.$refs.mediaPlayerContainer.streamError(id)
|
||||
},
|
||||
libraryAdded(library) {
|
||||
this.$store.commit('libraries/addUpdate', library)
|
||||
|
@ -247,7 +247,7 @@ export default {
|
|||
this.multiSessionCurrentSessionId = null
|
||||
this.$toast.dismiss('multiple-sessions')
|
||||
}
|
||||
if (this.$refs.streamContainer) this.$refs.streamContainer.sessionClosedEvent(sessionId)
|
||||
if (this.$refs.mediaPlayerContainer) this.$refs.mediaPlayerContainer.sessionClosedEvent(sessionId)
|
||||
},
|
||||
userMediaProgressUpdate(payload) {
|
||||
this.$store.commit('user/updateMediaProgress', payload)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue