0 votes
by (170 points)
closed by

My audio works fine in relative links when I play the files from my hard drive, but I can't play them from url links.

So, this is how I do it:

In StoryInit passage I cahce the audio file:

<<cacheaudio "hello" "https://www.dropbox.com/s/39fhuve41gwiowo/Hello.mp3?dl=0">>

In the passage that's supposed to play the file I have:

<<audio "hello" play>>

As I wrote above, it works if I change the link to a relative path on my computer, but it doesn't work with url links.

Is there something I'm doing wrong? Or maybe I'm sharing the file on dropbox in a wrong way? (it is stored in Public folder)

Thanks in advance!

closed with the note: The question has been answered.

1 Answer

+2 votes
by (68.6k points)

The URL you're attempting to use leads to a landing page, not the file itself.  Change the dl=0 on the end of the URL to dl=1.  For example:

<<cacheaudio "hello" "https://www.dropbox.com/s/39fhuve41gwiowo/Hello.mp3?dl=1">>

 

by (170 points)
Thank you very much. It works perfectly :)
...