HT204433: About HTML widget creation in iBooks Author

Learn about About HTML widget creation in iBooks Author
Bitmancer

Q: Has anyone implemented a "horn button" this way to play a short sound on a page?

I have found unrelated articles about making small <audio> snippets, but using the "simple transport controls" Start/Pause/Stop/Rewind buttons. The best example I can imagine for what I must provide, is a "horn button". Click it and it beeps.

 

Has anyone got the code working for this in iBA? (As an HTML widget)

iBooks Author, iOS 5

Posted on Dec 26, 2012 1:33 PM

Close

Q: Has anyone implemented a "horn button" this way to play a short sound on a page?

  • All replies
  • Helpful answers

  • by baruchsienna,Helpful

    baruchsienna baruchsienna Jan 3, 2013 12:23 PM in response to Bitmancer
    Level 1 (5 points)
    Jan 3, 2013 12:23 PM in response to Bitmancer

    If you have an image (like a button) that you want to play a short sound (without the transport controls), use the widget inspector and click on the interaction panel: you'll see a choice: display audio as: scrubber, button, image. Select button, or image if you want a custom image, and you're all set. Hope this works for you.

  • by Bitmancer,

    Bitmancer Bitmancer Jan 3, 2013 1:38 PM in response to baruchsienna
    Level 1 (0 points)
    Jan 3, 2013 1:38 PM in response to baruchsienna

    That's what I thought. I selected image. Both Macs running 10.8, same iBA release.

     

    When I shipped the .iba to the authors for testing, after they published it and sent it to their iPad, it did not work. My immediate assumption was that I did something wrong.