main #19

Merged
artem merged 39 commits from main into dev 2023-09-22 14:13:12 +02:00
Showing only changes of commit 6b6d3fd3f0 - Show all commits

View File

@ -119,8 +119,12 @@ export default {
methods: {
play() {
if (this.audio.paused) {
this.audio.play();
},
pause() {
if (!this.audio.paused) {
this.audio.pause();
}
},
durationChanged() {
@ -244,10 +248,10 @@ export default {
if ("mediaSession" in navigator) {
let me = this;
navigator.mediaSession.setActionHandler("play", function () {
me.togglePlaying();
me.play();
});
navigator.mediaSession.setActionHandler("pause", function () {
me.togglePlaying();
me.pause();
});
navigator.mediaSession.setActionHandler("seekto", function (details) {
if (details.fastSeek && "fastSeek" in me.audio) {