Slider volume
This commit is contained in:
parent
7aa93300e5
commit
a98a0dbcdc
@ -6,8 +6,8 @@
|
|||||||
:src="episode.episodeUrl"
|
:src="episode.episodeUrl"
|
||||||
@durationchange="duration = audio.duration"
|
@durationchange="duration = audio.duration"
|
||||||
@loadeddata="loading = false"
|
@loadeddata="loading = false"
|
||||||
@pause="paused = audio.paused"
|
@pause="paused = true"
|
||||||
@play="paused = audio.paused"
|
@play="paused = false"
|
||||||
@seeked="currentTime = audio.currentTime"
|
@seeked="currentTime = audio.currentTime"
|
||||||
@timeupdate="currentTime = audio.currentTime"
|
@timeupdate="currentTime = audio.currentTime"
|
||||||
@volumechange="volume = audio.volume" />
|
@volumechange="volume = audio.volume" />
|
||||||
|
@ -39,3 +39,9 @@ export default {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.pointer {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
@ -16,6 +16,12 @@
|
|||||||
class="pointer"
|
class="pointer"
|
||||||
:size="30"
|
:size="30"
|
||||||
@click="unmute" />
|
@click="unmute" />
|
||||||
|
<input max="1"
|
||||||
|
min="0"
|
||||||
|
step="0.1"
|
||||||
|
type="range"
|
||||||
|
:value="volume"
|
||||||
|
@change="(event) => audio.volume = event.target.value">
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -69,6 +75,11 @@ export default {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input {
|
||||||
|
transform: rotate(270deg);
|
||||||
|
width: 60%;
|
||||||
|
}
|
||||||
|
|
||||||
.pointer {
|
.pointer {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user