Fix:Initial audiobook progress sync, Fix:Reset stream on logout

This commit is contained in:
advplyr 2021-11-20 19:25:01 -06:00
parent 6bb8dfeffa
commit f5d455feb1
13 changed files with 157 additions and 142 deletions

View file

@ -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,