[web-src] add fast skip fwd/back on now playing

Conflicts:
	web-src/src/pages/PageNowPlaying.vue
This commit is contained in:
whatdoineed2do/Ray 2019-04-24 23:02:51 +01:00 committed by chme
parent b298fc1170
commit cb6b1919a8
2 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,25 @@
<template>
<a v-on:click="play_skip_back">
<span class="icon"><i class="mdi mdi-replay"></i></span>
</a>
</template>
<script>
import webapi from '@/webapi'
export default {
name: 'PlayerButtonSkipBack',
props: [ 'when_ms' ],
methods: {
play_skip_back: function () {
if (this.$store.state.player.state !== 'stop') {
webapi.player_seek(this.when_ms - 10000)
}
}
}
}
</script>
<style>
</style>

View File

@ -0,0 +1,25 @@
<template>
<a v-on:click="play_skip_fwd">
<span class="icon"><i class="mdi mdi-flip-h mdi-replay"></i></span>
</a>
</template>
<script>
import webapi from '@/webapi'
export default {
name: 'PlayerButtonSkipFwd',
props: [ 'when_ms' ],
methods: {
play_skip_fwd: function () {
if (this.$store.state.player.state !== 'stop') {
webapi.player_seek(this.when_ms + 10000)
}
}
}
}
</script>
<style>
</style>