Hey everyone,
I'm trying to get audio playing using Twine 2, using the Sugarcube 2 story format. I've got all my code in place, but no audio is playing and there's no error being thrown. Its probably a typically stupid blind noob error I'm making, but here we go.
Just to clarify, I'm testing my audio in my story using "Publish to File" and opening it in Firefox, because I'm using the desktop version of Twine 2. The audio is stored in .mp3 form upon Dropbox in a publicly accessible folder.
Anyway, this bit of code is stored in a passage I've named StoryInit, where I'm caching all my audio.
<<cacheaudio "youre a fool" "dropbox link here">>
And then later on I try to call it in a separate passage in my story using...
<<audio "youre a fool" play loop>>
It doesn't play. There's no errors. What could I possibly be doing wrong?
Comments
The value of the dl query attribute determines whether Dropbox serves up the file's landing page or the file itself—a value of 0 gets the landing page, while 1 gets the file.
The file name is the same as everything I'm referencing in my story, so I'm not sure what the error means.
Until I can get a fix out, you may use the following workaround. Append the following query attribute to your Dropbox URLs. Where {FILE_EXTENSION} is the period-prefixed extension of the file in question. For example: You get the idea. Just make sure to append it to the URL, it must come last.
So, with the dl query attribute change, and using the following URL as an example:
Pretty cool that I managed to find a bug, but also a bit frustrating trying to overcome it on my own for so long, haha. Glad I came here.
Thanks for the help.