]> git.example.dev Git - binbsis50-sm.git/commitdiff
updated: mime type, hopefully things work now? main
author2weiEmu <saalbach.robert@outlook.de>
Mon, 22 Jun 2026 12:14:09 +0000 (14:14 +0200)
committer2weiEmu <saalbach.robert@outlook.de>
Mon, 22 Jun 2026 12:14:09 +0000 (14:14 +0200)
public/js/index.js

index 740b9cedee60a27a4deeec0bd95ea910c60d8b03..2e89b531f55a58774851ea2792a26bbf50329b4b 100644 (file)
@@ -7,6 +7,8 @@ function sleep(ms) {
 
 /**
  * SONG FILE LIST SECTION
 
 /**
  * SONG FILE LIST SECTION
+ * I think the issue here is that it takes forever to create 1000 elements worth of files, instead
+ * we should do that bit by bit, if the download still blocks for too long, we change that next.
  */
 let songFileList = []
 let innerSongFileList = document.getElementById("innerSongFileList")
  */
 let songFileList = []
 let innerSongFileList = document.getElementById("innerSongFileList")
@@ -51,7 +53,7 @@ function NewSongFileElement(songFileName) {
 
        let audioSource = document.createElement("source")
        audioSource.src = "binb.sis50.nl/static/songs/" + songFileName // TODO: hardcoded
 
        let audioSource = document.createElement("source")
        audioSource.src = "binb.sis50.nl/static/songs/" + songFileName // TODO: hardcoded
-       audioSource.type = "audio/m4a"
+       audioSource.type = "audio/mp4"
 
        audioPreview.appendChild(audioSource)
 
 
        audioPreview.appendChild(audioSource)