Hi, I am using Twine 2 and Sugarcube 2.
My story contains some audio, and everything works fine including playback of audio, but when I add the "Timed" macro, it never plays. The code is really simple:
<<timed 7s>><<audio "purplerain" play volume 1.0>><</timed>>
It works on my PC , but on Ipad/Iphone it does not work. I have tried Safari, Google Chrome and Firefox on the Ipad with the same result.
I am hosting all files on my website, not that I think that should have anything to do with it...
If it is well known that the timed macro doesn't work on IOS, does anyone know of a working replacement?
Best regards
Kenneth
Comments
What to do about I don't know.
So I have no idea where the problem lies...
That said, all is not lost. Once playback has been initiated by direct end user action it should remain authorized for the lifetime of the element, so you just need a way to force the authorization.
I don't know how much audio or how pervasive delayed playback is within your project, however, you could do something like the following.
1. Create a new passage, tag it with widget, and then paste something like the following into it: NOTE: If your project uses a significant amount of audio, you may need to limit that to just the tracks you intend to delay.
2. Assuming you have single link which leads from the starting passage into the rest of your project, do something like the following for that link:
3. You'll also likely need to do something like the following to force the authorization when loading a save: (Twine 2: goes in Story JavaScript; Twine 1: goes in script-tagged passage)
Thanks again
/Kenneth