Featured Categories
-
Lectora®
Lectora® is the most trusted authoring tool in the world. Rock out your creativity! Author courses any way you like. Lectora adheres to best practices for Accessibility and Web Content Accessibility Guidelines (WCAG), offers responsive authoring for eLearning, and publishes to any LMS (Learning Management System).
-
CenarioVR®
Experience virtual reality through CenarioVR®, our training and virtual reality (VR) authoring software that allows you to create immersive learning in minutes! No coding required!
-
Rockstar Learning Platform®
Our Rockstar Learning Platform® has all the features you’ll love. Help your employees be better at their jobs, more valuable to your company, and most effective in servicing your customers.
-
The Training Arcade®
Level up your learner engagement with the Training Arcade®! The Training Arcade is a library of fun, mobile-ready, casual games that can be rapidly customized with your content to create effective gaming!
-
ELB Learning Content
Did you know that our AssetLibrary™ has over 120 million engaging, interactive, and awe-inspiring templates and assets to help you become an eLearning Rockstar®?
Changing playback speed of Audio or Video

Comments
-
Guess you know the answer. Using javascript ;-) And some library to get that done.
Here is a sample i did quite a while ago about spritesheets. In it a character running. Several buttons below it. Among them 2, 1 to slowdown speed and 1 to make him run faster. Click multiple times to see the effect.
http://community.trivantis.com/shared-content/spritesheet-setup-in-lectora/
Similar technique(s) will work for video offcourse. As the Lectora mediaplayer is based upon the Mediaelement.
http://www.mediaelementjs.com/
It should be possible to enhance Lectoras mediaplayer with javascript or add existing Mediaelement plugins to a project. There is for example a plugin to give the player an extra button to set the playbackspeed.
https://github.com/mediaelement/mediaelement-plugins/blob/master/docs/speed.md
Sounds like a interesting option. I got no clue how to add a plugin to an existing mediaelement. HTML5 video has default the playbackRate property.
https://www.w3schools.com/tags/av_prop_playbackrate.asp
For audio you offcourse need something else.
You could for example use this audio library.
http://community.trivantis.com/shared-content/fade-audio-in-lectora/
Checking the documentation for Buzz
http://buzz.jaysalvat.com/documentation/sound/
you quickly find that there is a speed property. So you can speedup/slowdown audio with Buzz.
Set the playback speed where 1 is normal speed, 2 is double speed, etc.
mySound.setSpeed(2);
Enough said i guess. With Javascript you can ;-)
Kind regards,
Math -
Checking the default Lectora17 mediaplayer you find a tag called playbackRate in that file ( trivantis-mep.min.js )
"playbackRate:-1,defaultPlaybackRate:-1"
Because that is a minified javascript its quite hard to change anything inthere. You could get the mep.js from Mediaelement.com add/change things inthere and replace the trivantis-mep.min.js with that file.. should work..
Just downloaded both Mediaelement and the plugins i mentioned. There are definately some good samples inthere of working players with speedup/speeddown options. So standalone it works. Now get it working in Lectora ;-)
Might give that a try this week... -
Terrific. Thanks a lot Math!
Where do you find the information about the mediaplayer etc.? I would not need to bother you/the community then (maybe ;-) )
I don't mind Javascript in this case (or ever actually except in a few special cases - depending on who is using it). The main problem I have with JS is that it is a client-side language and is a huge security risk when you are trying to protect people's work). It would be better to write in PHP but you would lose at least both functionality and flexibility.
thanks again! -
These 2 links you should find all needed for Mediaelement.
http://www.mediaelementjs.com/
https://github.com/mediaelement/mediaelement-plugins/blob/master/docs/speed.md
Noticed it can also be used for audio playing. Not sure whether Lectora uses it for both ( i do suspect it does ). I have something i need to test/try with an audioplayer anyway. So i probably doublecheck whether mediaelement.js is used for both video and audio and do some digging...seeing if i can extend the player in L16 and 17.
Regards,
Math
PS. adding a suggestion for the developers. Make it possible to extend/override scripts like this in an easy way -
wheels Community Member, Administrator, Moderator, Rockstar Manager Posts: 702 eLearning ROCKSTAR Admin TeamWe are looking into adding this as an option, but as Math says it can be done in JavaScript.
I am attaching a Lectora Online Package file which can be imported into either Online or Desktop which shows an example of how you can use scripting to slow down or speed up playback.
Hope this helps!
- Joe
Categories
- 35.9K All Categories
- 110 ✫ Announcements
- 33.2K Lectora®
- 31.1K Lectora Discussions
- 29K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 36 Lectora Accessibility User Group (LAUG)
- 27 ELB Learning Content
- 27 ELB Learning Content Discussions
- 346 CenarioVR®
- 205 CenarioVR Discussions
- 141 CenarioVR Feature Requests
- 44 Rockstar Learning Platform®
- 41 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 48 ReviewLink®
- 48 ReviewLink Discussions
- 7 The Training Arcade®
- 7 The Training Arcade Discussions
- 938 All Things eLearning
- 39 eLearning Development
- 546 Learning Management System (LMS) Integration
- 333 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products