mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-26 13:24:39 +02:00
Fix:Initial audiobook progress sync, Fix:Reset stream on logout
This commit is contained in:
@@ -23,7 +23,6 @@
|
||||
<!-- <span class="material-icons cursor-pointer mx-4" :class="hasDownloadsFolder ? '' : 'text-warning'" @click="$store.commit('downloads/setShowModal', true)">source</span> -->
|
||||
|
||||
<!-- <widgets-connection-icon /> -->
|
||||
<!-- <span class="material-icons" style="font-size: 1.75rem" @click="testCast">menu</span> -->
|
||||
|
||||
<nuxt-link class="h-7 mx-2" to="/search">
|
||||
<span class="material-icons" style="font-size: 1.75rem">search</span>
|
||||
@@ -37,8 +36,6 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
// import MyNativeAudio from '@/plugins/my-native-audio'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -86,10 +83,6 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// testCast() {
|
||||
// console.log('TEST CAST CLICK')
|
||||
// MyNativeAudio.requestSession()
|
||||
// },
|
||||
clickShowSideDrawer() {
|
||||
this.$store.commit('setShowSideDrawer', true)
|
||||
},
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
<div class="top-2 left-4 absolute cursor-pointer">
|
||||
<span class="material-icons text-5xl" @click="collapseFullscreen">expand_more</span>
|
||||
</div>
|
||||
<div v-show="showCastBtn" class="top-3.5 right-20 absolute cursor-pointer">
|
||||
<span class="material-icons text-3xl" @click="castClick">cast</span>
|
||||
</div>
|
||||
<div class="top-3 right-4 absolute cursor-pointer">
|
||||
<span class="material-icons text-4xl" @click="$emit('close')">close</span>
|
||||
</div>
|
||||
@@ -92,6 +95,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
showCastBtn: false,
|
||||
showFullscreen: false,
|
||||
totalDuration: 0,
|
||||
currentPlaybackRate: 1,
|
||||
@@ -158,6 +162,10 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
castClick() {
|
||||
console.log('Cast Btn Click')
|
||||
MyNativeAudio.requestSession()
|
||||
},
|
||||
sendStreamSync(timeListened = 0) {
|
||||
var syncData = {
|
||||
timeListened,
|
||||
|
||||
@@ -414,7 +414,7 @@ export default {
|
||||
duration: String(Math.floor(this.duration * 1000)),
|
||||
series: this.seriesTxt,
|
||||
playlistUrl: this.$server.url + playlistUrl,
|
||||
token: this.$store.getters['user/getToken'],
|
||||
token: this.userToken,
|
||||
audiobookId: this.audiobookId
|
||||
}
|
||||
this.$refs.audioPlayer.set(audiobookStreamData, stream, !this.stream)
|
||||
|
||||
@@ -74,12 +74,12 @@ export default {
|
||||
iconOutlined: true,
|
||||
text: 'Downloads',
|
||||
to: '/downloads'
|
||||
},
|
||||
{
|
||||
icon: 'settings',
|
||||
text: 'Settings',
|
||||
to: '/config'
|
||||
}
|
||||
// {
|
||||
// icon: 'settings',
|
||||
// text: 'Settings',
|
||||
// to: '/config'
|
||||
// }
|
||||
]
|
||||
if (!this.socketConnected) {
|
||||
items = [
|
||||
|
||||
Reference in New Issue
Block a user