diff options
author | Chris Xiong <chirs241097@gmail.com> | 2021-11-23 00:36:02 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2021-11-23 00:36:02 +0800 |
commit | d8b53507757ef7008a44812e8fbd3376eacba0e2 (patch) | |
tree | 515d7f4926ee2b2877e734e6a92f81e7acc61cd3 /libs/music/player.d/pcm.js | |
parent | aefc8e8dbe12d716bb1b46ea2d6281c79958b6cd (diff) | |
download | web-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.js | 2 |
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. |