ソースを参照

Updated embedded music player to load audio faster

Toby Chui 3 年 前
コミット
7151370716
1 ファイル変更6 行追加1 行削除
  1. 6 1
      web/Music/embedded.html

+ 6 - 1
web/Music/embedded.html

@@ -232,6 +232,10 @@
 		var songInfo = [];
 		var songList = [];
 
+		if (playingFileInfo.filepath != undefined){
+			player.src = "../media?file=" + playingFileInfo.filepath;
+		}
+
 		ao_module_agirun("Music/functions/getMeta.js", {
 			file: encodeURIComponent(playingFileInfo.filepath)
 		}, function(data){
@@ -240,7 +244,8 @@
 				if (data[i][0] == playingFileInfo.filename){
 					songInfo = data[i];
 					//Set the audio element src
-					player.src = "../media?file=" + encodeURIComponent(data[i][1]);
+					//player.src = "../media?file=" + encodeURIComponent(data[i][1]);
+
 					//Update window title
 					ao_module_setWindowTitle(data[i][0]);