Register for our next webinar, 5 Keys to Unlock Storytelling in Your eLearning, where you'll learn how to unlock the magic of storytelling in your eLearning development to increase learner engagement and retention! Join Andrew Townsend, our Campaign Marketing Manager, on Thursday, December 3, 2020 at 11:00 AM MDT.

Be The First On Your Block to Rock Lectora® 21!


Apply for exclusive early access to the latest version of Lectora® Desktop v21. Seating is limited so apply now!

In need of help with your eLearning? Feel free to ask a question of the community! You can also visit our Knowledge Base or, if you're in need of immediate assistance, submit a case to our Customer Success team.

Audio On/Off Button Lectora and issues in IE8

slaineslaine Community Member Posts: 1
Hi there,

I am working on a project which required an audio on/off button so the user could toggle between full audio mode or just text.

I implemented it so I have an action that was calling a javascript function which then referenced the audio object and used the actionMute() function. This works fine in Firefox/IE9 etc but in IE8 when the button is clicked I get a javascript error relating to the trivantis-inline.js file

Object doesn't support this property or method[/CODE], which seems to relate to this line of code:-

[CODE]this.flsPlayer.sendEvent('MUTE', 'true');[/CODE]

Does anyone know of an easy way to implement an audio on/off solution that will work across the main versions of the major browsers?

Help much appreciated.[CODE]Object doesn't support this property or method[/CODE], which seems to relate to this line of code:-

this.flsPlayer.sendEvent('MUTE', 'true');[/CODE]

Does anyone know of an easy way to implement an audio on/off solution that will work across the main versions of the major browsers?

Help much appreciated.[CODE]this.flsPlayer.sendEvent('MUTE', 'true');[/CODE]

Does anyone know of an easy way to implement an audio on/off solution that will work across the main versions of the major browsers?

Help much appreciated.

Comments

  • blankgmblankgm Community Member Posts: 18
    I would say that any answer you are given depends upon your definition of "easy".

    We implement this through user interaction (in your case you use a button, in ours we use a check box) and a variable (Audio) which is set when the user selects sound to be On or Off.

    On each page instead of just placing an audio file with an auto play set, we use an Action item which is set to play the audio on page load if the Variable Audio is set to TRUE.

    This form of implementation works across all browsers as the determination to play, or not, is made by Lectora and not through HTML which then has to be interpreted by the browser.

    Also depending on which version of Lectora you are using you could have significant issues with IE.  We tell our users to avoid IE.
  • theav-atortheav-ator Community Member Posts: 69
    Given that the original post is from 2013, I hope he figured something out.

    However, for new people finding the post, in Lectora V16 there is an action for Mute Media and one for Unmute Media. So he could just create 2 small buttons, one to mute, one to unmute and set his audio as the target. Then you just have a simple button with 1 action that works on a page by page basis.

    You could even set the global level early in the course to make all pages muted or unmuted (as @blankgm had explained in the previous post) and then use this functionality on a page level to override that setting.
  • mforster6400mforster6400 Community Member Posts: 1
    Just to note, muting is not the same as pausing. It is confusing to the learner if they press "Auto Play Off," then turn it on 1 minute later and have no idea what the voice over is talking about.

    I programmed an on/off toggle with two actions that first pauses the audio, then changes an "autoplay" variable that is programmed throughout the course that tells the course to OnShowPlay the audio if and only if the autoplay variable is = 1. Else nothing. Pressing the "Auto Play On" toggle with play the audio and also set the autoplay=0.

    Maybe that's useful? I know it's not javascript, but I found it to be a simple solution.
Sign In or Register to comment.

So You Wanna Be An eLearning ROCKSTAR?

We're all fans of eLearning here! Want to become an eLearning ROCKSTAR? Just click on one of the buttons below to start your rocking journey!

Be The First On Your Block to Rock Lectora® 21!


Apply for exclusive early access to the latest version of Lectora® Desktop v21. Seating is limited so apply now!