General questions and topics about Xerte Toolkits that don’t fit anywhere else.

adding sound onto MCQ intruction box

Plus d'informations
il y a 9 ans 6 mois - il y a 9 ans 6 mois #4209 par epikinon
adding sound onto MCQ intruction box a été créé par epikinon
Hi,

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

Appreciate it.

Alex
Dernière édition: il y a 9 ans 6 mois par epikinon.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 9 ans 6 mois #4210 par ronm
Réponse de ronm sur le sujet adding sound onto MCQ intruction box
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.
Code:
<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/

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 9 ans 6 mois #4211 par epikinon
Réponse de epikinon sur le sujet adding sound onto MCQ intruction box
thank you Ron,

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

Alex

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 9 ans 6 mois #4212 par ronm
Réponse de ronm sur le sujet adding sound onto MCQ intruction box
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/

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 9 ans 6 mois #4213 par epikinon
Réponse de epikinon sur le sujet adding sound onto MCQ intruction box
Hi Ron,

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

Thank you!

Alex

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 9 ans 6 mois #4217 par epikinon
Réponse de epikinon sur le sujet adding sound onto MCQ intruction box
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

Connexion ou Créer un compte pour participer à la conversation.

Modérateurs: ingdon
Temps de génération de la page : 0.149 secondes
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo