Page 1 of 1

Struggling to Get PlayStream to Play My Own Files

Posted: Tue May 03, 2022 10:13 pm
by margru
I've gotten back into coding some of my own stuff into Maptool recently, but I've come across an issue I just can't wrap my head around. I've gotten the PlayStream function to play files from my local machine before, and it works with most online sounds I could find. I even pulled a dropbox link from one of the other posts about PlayStream to test it out. Yet, when I use my own link, which should as far as I can tell work perfectly fine, Maptool does nothing. Am I missing something?

Here's the working code:

Code: Select all

[H: Music ="https://dl.dropboxusercontent.com/s/4fuvrqduf6jle2w/16TheMandragora.mp3?dl=0")]

[H: execFunction("playStream",json.append("[]",Music, 1,0.8),0,"all")]
However, when I change the Music variable to this, it doesn't work:

Code: Select all

[H: Music ="https://dl.dropboxusercontent.com/s/nfb0o6tfd250rw9/Strut%20Your%20Stuff%20-%20Instrumental.mp3?dl=0")]

Re: Struggling to Get PlayStream to Play My Own Files

Posted: Wed May 04, 2022 1:45 am
by aliasmask
I tried to run it in MT and nothing came out. So, I downloaded it and re-encoded it, uploaded to my dropbox and it works fine. I'm thinking the original encoding is for 130 kbps and I converted to the standard 128 kbps using this site: https://online-audio-converter.com/

So, I guess MT is picky with the encoding.