Google Groups

Re: Adding Background music to stories


Delyth Angharad Oct 11, 2012 1:46 AM
Posted in group: Tweecode / Twine
There's a post on it here -  https://groups.google.com/forum/?fromgroups=#!searchin/tweecode/music/tweecode/KkQgqv6c9AY/p3xiMU_DRwcJ 

When I added the background track to http://welshpixie.com/bakerstreet I did it by pasting this into the output HTML file:

<div id="player">
<object type="application/x-shockwave-flash" data="player_mp3_mini.swf" width="100" height="20" autoplay="1">
    <param name="movie" value="player_mp3_mini.swf" />
    <param name="autoplay" value="1" />
    <param name="bgcolor" value="#000000" />
    <param name="FlashVars" value="mp3=MindTheGap.mp3&amp;autoplay=1" />
</object>
</div>

And then of course providing the swf file and the track in the same location as wherever you're hosting the story. The player has a pause button and can be positioned wherever you want on the page. Not sure it'll play .ogg though.

On Thursday, October 11, 2012 8:18:01 AM UTC+2, zoe quinn wrote:
I'm wondering if anyone has any advice on to add background music to a story. Ideally there should be a mute button in the sidebar, and being able to throw it in .ogg format would be perfect. I know I can't just throw it in a passage because it'll just change any time you go to the next one, so I was hoping there was a better way to do this.

Thanks so much!