PileOfMeatballs

Twine Audio Question

Recommended Posts

Hi!,

 

I originally posted this in the Winter Wizard Jam thread but it's probably more appropriate here as it's a coding/bug/WTF question.  I’m making a Stanley Parable inspired game with reactive narration modeled on the nihilistic and defeatist world view of Nick Breckon.     

 

Since my game design experience is limited to a couple of twine games, I’m keeping things as simple as possible.  

 

I’m making it in Twine but I’m having some trouble with the HTML5 <audio> tag. When I load the "published" .html file into Chrome, it will only play the first second of the voice over before it stops playing.  Audio files are in the same folder as the exported .html file. Same problem occurs in Chrome and Firefox.  I tried the tags in a clean html file and the audio played just fine so I assume the <audio> tag is causing Twine to have a stroke.  I’d appreciate any suggestions on how to deal with this.  

 

<audio autoplay>

<source src="voiceover.mp3" type="audio/mpeg">

<source src="voiceover.ogg" type="audio/ogg">

</audio>

 

Thanks for your input.

 

Thom

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now