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

TOPIC:

nested pages audio 6 years 2 months ago #4972

  • mdowless
  • mdowless's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
  • Thank you received: 0
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"> 
</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.

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

nested pages audio 6 years 2 months ago #4973

  • ronm
  • ronm's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 842
  • Thank you received: 245
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/
The following user(s) said Thank You: mdowless

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

nested pages audio 6 years 2 months ago #4974

  • mdowless
  • mdowless's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
  • Thank you received: 0
Worked like a charm. Thank you Ron!

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

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

Search