Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
General questions and topics about Xerte Toolkits that don’t fit anywhere else.
  • Page:
  • 1
  • 2

TOPIC:

adding sound onto MCQ intruction box 7 years 2 months ago #4209

  • epikinon
  • epikinon's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 17
  • Thank you received: 1
Hi,

Using OTK 3.3 and trying to add an mp3 into the MCQ instruction box. How can this be done?

Appreciate it.

Alex

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

Last edit: by epikinon.

adding sound onto MCQ intruction box 7 years 2 months ago #4210

  • ronm
  • ronm's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 842
  • Thank you received: 245
The MCQ page type is only a single question so the easiest way to add audio would be to use the narration option and then just upload your audio via that option. However if you're prepared to add a bit of code via source view you can add audio anywhere. e.g.
1. upload the audio via the narration option to get the mp3 on the project folder.
2. Delete the narration option - it won't delete the file from the media folder.
3. In the Instruction text box switch to source view and add a div to hold the player and then script to add the player e.g.
<div id="audioHolder1"></div>
<script>$("#audioHolder1").mediaPlayer({type: "audio",width:"200px",source: FileLocation+ '/media/youraudiofile.mp3'});</script>
HTH
Ron
Xerte developer & trainer
e-learning & m-learning consultant
mitchellmedia.co.uk | xerteacademy.com | learningapps.co.uk
Note: Support here is voluntary and meant for users to support each other.
Need direct commercial support with Xerte? mitchellmedia.co.uk/contact/

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

adding sound onto MCQ intruction box 7 years 2 months ago #4211

  • epikinon
  • epikinon's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 17
  • Thank you received: 1
thank you Ron,

your reply sparks another question. Is it possible to ftp into the project folder?

Alex

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

adding sound onto MCQ intruction box 7 years 2 months ago #4212

  • ronm
  • ronm's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 842
  • Thank you received: 245
If you set up your server to do so yes of course but in normal use that shouldn't be needed and not really advisable - certainly not for upload if that's what you're thinking.
The time ftp access to project folders and indeed the whole installation can be useful is for retrieving and fixing issues or broken projects/xml etc but suffice to say be careful if you go that route.
HTH
Ron
Xerte developer & trainer
e-learning & m-learning consultant
mitchellmedia.co.uk | xerteacademy.com | learningapps.co.uk
Note: Support here is voluntary and meant for users to support each other.
Need direct commercial support with Xerte? mitchellmedia.co.uk/contact/

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

adding sound onto MCQ intruction box 7 years 2 months ago #4213

  • epikinon
  • epikinon's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 17
  • Thank you received: 1
Hi Ron,

ftp seems to be working just fine and filezilla proves amazingly fast!

Thank you!

Alex

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

adding sound onto MCQ intruction box 7 years 2 months ago #4217

  • epikinon
  • epikinon's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 17
  • Thank you received: 1
Hi Ron,
Could I include a second mp3 in my instruction container? Your suggestion for the first one worked. Tried copying and pasting the same script making the necessary changes but no luck.
Any clues?
Thank you!
Alex

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

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

Search