Add:iOS device settings for jump forward/backward

This commit is contained in:
advplyr 2022-07-02 18:29:41 -05:00
parent 39b137c7f1
commit b5c6acc2bc
11 changed files with 108 additions and 31 deletions

View file

@ -687,7 +687,6 @@ export default {
})
},
onPlaybackClosed() {
console.log('Received onPlaybackClosed evt')
this.endPlayback()
},
onPlaybackFailed(data) {
@ -717,14 +716,18 @@ export default {
},
mounted() {
this.updateScreenSize()
screen.orientation.addEventListener('change', this.screenOrientationChange)
if (screen.orientation) {
screen.orientation.addEventListener('change', this.screenOrientationChange)
}
document.body.addEventListener('touchstart', this.touchstart)
document.body.addEventListener('touchend', this.touchend)
document.body.addEventListener('touchmove', this.touchmove)
this.$nextTick(this.init)
},
beforeDestroy() {
screen.orientation.removeEventListener('change', this.screenOrientationChange)
if (screen.orientation) {
screen.orientation.removeEventListener('change', this.screenOrientationChange)
}
if (this.playbackSession) {
console.log('[AudioPlayer] Before destroy closing playback')
@ -752,7 +755,6 @@ export default {
--cover-image-height: 0px;
--cover-image-width-collapsed: 60px;
--cover-image-height-collapsed: 60px;
--test-var: 100px;
}
.bookCoverWrapper {
box-shadow: 3px -2px 5px #00000066;

View file

@ -108,12 +108,12 @@ export default {
text: 'Local Media',
to: '/localMedia/folders'
})
items.push({
icon: 'settings',
text: 'Settings',
to: '/settings'
})
}
items.push({
icon: 'settings',
text: 'Settings',
to: '/settings'
})
return items
},
currentRoutePath() {