Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

How do i get cached audio to play?

Heya,

I'm new to twine, So apologies if i say a bunch of dumb stuff.
I'm trying to get one track to play with sugarcube 2.0 in the twine app.
I made a passage called StoryInit in which i placed

<<cacheaudio "song" "media/audio/song.mp3">>

Then in the start passage i put

<<audio "song" play>>

When i play in twine i get

Error: <<audio>>: no track by ID: song

What am I missing?

Thanks for any help.

Comments

  • edited March 2016
    Oh, Sorry, immediately fixed it after asking this.
    I was using a link from one drive as the audio, which works when you put it in javascript. But guess not if you want to cache it, which makes sense. I'm a dumb.

    Any ideas of ways to still use the one drive link but be able to have more control over it with macros? i.e. stopping and starting it?

    thanks

  • I was able to create URL's to directly access images stored on the OneDrive website by using the Embed </> option but using the same option on a MP3 file resulted in a iframe element which would not help you with caching.

    If you were able to extract/create a URL which directly accesses an audio file I would be interested in knowing the steps you used to do so.
Sign In or Register to comment.