Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC:

I would like to add a sound effect when turning the cards 1 month 3 weeks ago #9214

  • Jonathan Smith
  • Jonathan Smith's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 49
  • Thank you received: 13
Dear Imed

As a follow-up to what Ron has written about ways of adding audio, I'd also recommend looking at this Xerte wiki page xerte.org.uk/wiki/doku.php?id=workingwithaudio .

I'm also attaching a PDF guide on working with audio which I developed for a course on authoring in Xerte for language teachers that I ran earlier in the year.

Finally, there is also a way to make words or phrases clickable objects, so that when a learner clicks on them some audio autoplays, without player controls displaying. Here's an example;
languagehub.uk/xerte/play.php?template_id=310#page3
This involves inserting and editing a bit of code through Source view, and is quite time-consuming to do. I will post to the Xerte Forum separately about this.

I hope this is helpful

Best wishes

Jonathan Smith
Freelance English teacher and Xerte enthusiast
Attachments:

Please Log in or Create an account to join the conversation.

I would like to add a sound effect when turning the cards 1 month 3 weeks ago #9216

  • Jonathan Smith
  • Jonathan Smith's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 49
  • Thank you received: 13
Hi Imed

I have posted separately on how to make words or phrases links which autoplay audio on click.

www.xerte.org.uk/index.php/en/forum/docu...aying-audio-on-click

Jonathan
The following user(s) said Thank You: IMED

Please Log in or Create an account to join the conversation.

I would like to add a sound effect when turning the cards 1 day 20 hours ago #9290

  • IMED
  • IMED's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 11
  • Thank you received: 0
Hello,

Where exactly should I insert these codes in Xerte for them to work on the memory game page?
Here is the code I would like to include:


<audio id="click">
<source src="yourinstalladdress/USER-FILES/projectidusernameNottingham/media/click.mp3" type="audio/mpeg" />
</audio>

$(".card").click(function(){
$('audio#click')[0].play();
});


Thank you in advance for your help!
Attachments:

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Moderators: alimcnronm
Time to create page: 0.043 seconds
Copyright © 2024 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search