Struggling to Get PlayStream to Play My Own Files

Thoughts, Help, Feature Requests, Bug Reports, Developing code for...

Moderators: dorpond, trevor, Azhrei

Forum rules
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior. :)
Post Reply
margru
Kobold
Posts: 1
Joined: Tue Jan 12, 2021 4:05 pm

Struggling to Get PlayStream to Play My Own Files

Post 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")]

User avatar
aliasmask
Deity
Posts: 8780
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

Re: Struggling to Get PlayStream to Play My Own Files

Post 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.

Post Reply

Return to “MapTool”