Howdy, Stranger!

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

Audio with Harlow

Hi there,

I'm stuck, although I searched all the forum and the internet. I try to implement sound in one episode, using this code:
<audio autoplay="autoplay" controls="controls">  
   <source src="http://.../music.ogg"; />
   <source src="http://.../music.m4a"; /> 
   <source src="http://.../music.mp3"; />  
</audio>

But it's not working. The player is there, but it can't be controlled and sound isn't played. I'm using Twine 2 on OSX 10.10.4

Can anybody help me?
Thanks!

Comments

  • Well...when I use this it's working:

    <audio autoplay>
    <source src="http://.../piano1.mp3"; type="audio/mpeg" />
    <source src="http://.../piano1.ogg"; type="audio/ogg" />
    Your Browser doesn't support HMTL5.
    </audio>

    -> Maybe the mime-types need to be added.
  • thx for answering your own question. It helped me make my first sound output in twine possible.

    What i consider interesting: playing Sound from online sources such as Youtube, while not open the video anywhere, but simply adding the background sound to a story. Is that legal, is that possible, does anyone know how?
  • I used this to insert a video:
    <video src=" autoplay width="641" height="271">
    </video>

    But the video stays black. Any help?
  • @CX3
    It is generally better to create your own "Ask a Question" if you need information about a topic, instead of resurrecting someone else's (semi-related) old thread.

    Also if you need to include code in your comment, like that youtube video element, then please wrap that code in either a code or a quote tag which can be accessed via the C or the Talk Balloon buttons in the above tool-bar.

    The How To Embed A YouTube Video video explains how do what you want using an iframe element.
    Instead of pasting the iframe element into a blog comment field, you paste it into the Twine Passage you want it to appear in.
  • CX3CX3
    edited February 2016
    Thx for the Feedback.

    Okay next time i will open a new question.



Sign In or Register to comment.