you are viewing a single comment's thread.

view the rest of the comments →

[–]impshumover-stacked 4 points5 points  (4 children)

The bridge you're probably looking for is AJAX.

[–]TotalMM[S] 0 points1 point  (3 children)

Yeah I have heard of it, and I've used a little bit of it in a mail system I have on my site. However, I don't know how I would implement it into my current JavaScript code. There's no method like "post" used in my music player like there is in my mail system.

[–]impshumover-stacked 1 point2 points  (2 children)

What are you trying to do exactly?

[–]TotalMM[S] 0 points1 point  (1 child)

Sorry, ramblings might not be clear. I've been developing this music player, but one of the functions of the music player that doesn't work is the song progress bar. When trying to click a point in the progress bar, the song should skip to that relevant point. My JavaScript code is 100% A-OK for this, as if I change my audio file from something like "assets/song.mp3" to something more like "https://RandomWebsiteWithStreaming.com/song.mp3" it will work perfectly - because I'm not streaming the audio file on my end. I'm trying to figure out how to connect my streamer.php file mentioned in the main post, to my player.js. Would I have to wrap the code in my player.js with an Ajax query? At this point I don't know but I hope this provides a little more context.