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

nested pages audio

Plus d'informations
il y a 8 ans 5 mois #4972 par mdowless
nested pages audio a été créé par mdowless
I created a LO using Navigators > Slideshow with several nested pages. Inside each nested page, I added the following to the source code:

<div id="audioHolder">&nbsp;
</div>
<script>$("#audioHolder").mediaPlayer({type: "audio",width:"300px",source: FileLocation+ 'media/01.mp3'});</script>

It works fine in the first nested page, but not the subsequent ones. When numbering the audioHolder tag to 1,2,3, etc., the audio player functions but the interface separates into various parts.

Does anyone have a work around for this? Thanks in advance for your comments.

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

Plus d'informations
il y a 8 ans 5 mois #4973 par ronm
Réponse de ronm sur le sujet nested pages audio
Hi
you do need to name each holder uniquely so you were right to try audioHolder1, audioHolder2 etc but try making the width 400px rather than 300px. I think there's a minimum width in which the default audio player and styling and controls will fit.

Here's a quick test showing it working: training.mitchellmedia.co.uk/xot/play.php?template_id=326

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/
Les utilisateur(s) suivant ont remercié: mdowless

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

Plus d'informations
il y a 8 ans 5 mois #4974 par mdowless
Réponse de mdowless sur le sujet nested pages audio
Worked like a charm. Thank you Ron!

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

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