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