summaryrefslogtreecommitdiff
path: root/libs/music/player.d/pcm.js
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2021-11-23 00:36:02 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2021-11-23 00:36:02 +0800
commitd8b53507757ef7008a44812e8fbd3376eacba0e2 (patch)
tree515d7f4926ee2b2877e734e6a92f81e7acc61cd3 /libs/music/player.d/pcm.js
parentaefc8e8dbe12d716bb1b46ea2d6281c79958b6cd (diff)
downloadweb-d8b53507757ef7008a44812e8fbd3376eacba0e2.tar.xz
Make pcm.cgi more compliant with the current pcm api.
Also try to fix some shit (may break it even more).
Diffstat (limited to 'libs/music/player.d/pcm.js')
-rw-r--r--libs/music/player.d/pcm.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/music/player.d/pcm.js b/libs/music/player.d/pcm.js
index 575b7f7..0efe849 100644
--- a/libs/music/player.d/pcm.js
+++ b/libs/music/player.d/pcm.js
@@ -100,7 +100,7 @@ const AUDIO_URL='//filestorage.chrisoft.org/music/ogg/';
// FIXME: trigger this when audio doesn't finished load will cause play promise error.
this.audio.pause();
this.currentIndex = i;
- this.audio.src = AUDIO_URL + this.data[i].fileName + '.ogg';
+ this.audio.src = AUDIO_URL + this.data[i].fileName;
this.audio.load();
this.audio.play();
window.history.replaceState("","Useless Title","#/"+this.path+this.data[i].fileName+"/"); // title seems be fucked.