mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
audio only seek in listen mode
This patch fixes the following problem: when a user selects audio only option below the video title, On clicking the video chapters, The video plays instead of audio.
This commit is contained in:
parent
f93f52051c
commit
4669be059f
2 changed files with 6 additions and 1 deletions
|
@ -33,6 +33,10 @@ export default {
|
||||||
selectedAutoPlay: Boolean,
|
selectedAutoPlay: Boolean,
|
||||||
selectedAutoLoop: Boolean,
|
selectedAutoLoop: Boolean,
|
||||||
isEmbed: Boolean,
|
isEmbed: Boolean,
|
||||||
|
onlyAudio: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -442,7 +446,7 @@ export default {
|
||||||
|
|
||||||
this.$player = player;
|
this.$player = player;
|
||||||
|
|
||||||
const disableVideo = this.getPreferenceBoolean("listen", false) && !this.video.livestream;
|
const disableVideo = this.getPreferenceBoolean("listen", this.onlyAudio) && !this.video.livestream;
|
||||||
|
|
||||||
this.$player.configure({
|
this.$player.configure({
|
||||||
preferredVideoCodecs: this.preferredVideoCodecs,
|
preferredVideoCodecs: this.preferredVideoCodecs,
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
:sponsors="sponsors"
|
:sponsors="sponsors"
|
||||||
:selected-auto-play="selectedAutoPlay"
|
:selected-auto-play="selectedAutoPlay"
|
||||||
:selected-auto-loop="selectedAutoLoop"
|
:selected-auto-loop="selectedAutoLoop"
|
||||||
|
:only-audio="isListening"
|
||||||
/>
|
/>
|
||||||
<div class="font-bold mt-2 text-2xl break-words" v-text="video.title" />
|
<div class="font-bold mt-2 text-2xl break-words" v-text="video.title" />
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue