Howdy, Stranger!

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

Music loop (Harlowe) ?

Anyone know how to get a MP3 to loop?

Right now it is:
<audio src = "audio/Rise of the Empire.mp3" autoplay=1&loop=1>

It still plays but doesn't repeat, is there a repeat functionality within Twine?

Comments

  • The audio element is part of HTML5, and not specific to Twine.

    Your existing audio element is incorrect, which is why the autoplay and loop properties are not working. Try either of the following, they are two ways to write the same thing:
    <audio src="audio/Rise of the Empire.mp3" autoplay loop>
    
    <audio src="audio/Rise of the Empire.mp3" autoplay="1" loop="1">
    

  • Thanks, it works fine, and is useful for presenting the Story perhaps at a job interview or somewhere =)
Sign In or Register to comment.