Changing playback speed of Audio or Video
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.
Similar technique(s) will work for video offcourse. As the Lectora mediaplayer is based upon the Mediaelement.
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.
For audio you offcourse need something else.
You could for example use this audio library.
Checking the documentation for Buzz
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.
Checking the default Lectora17 mediaplayer you find a tag called playbackRate in that file ( trivantis-mep.min.js )
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 ;-) )
These 2 links you should find all needed for Mediaelement.
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.
PS. adding a suggestion for the developers. Make it possible to extend/override scripts like this in an easy way
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!
- 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