hidden player video controls with scripting

russell
Community Member Posts: 28
Hi,
I inherited a course that uses some scripting to play a video. The video plays without showing the play/pause button. I would like to change the script to show the controls but I don't know if this is the script that controls that?
Here's the script:
<table width="268">
<tbody>
<tr>
<td width="268">attachMediaPlayer("videoDiv","media/osj_launch.mp4",980,640,"no");</td>
</tr>
<tr>
<td>$(".mejs-controls").css("visibility","hidden");</td>
</tr>
</tbody>
</table>
Can anyone tell me if this script hides the controls and if so, how to change it so that the player controls are visible?
Thanks,
Peter
I inherited a course that uses some scripting to play a video. The video plays without showing the play/pause button. I would like to change the script to show the controls but I don't know if this is the script that controls that?
Here's the script:
<table width="268">
<tbody>
<tr>
<td width="268">attachMediaPlayer("videoDiv","media/osj_launch.mp4",980,640,"no");</td>
</tr>
<tr>
<td>$(".mejs-controls").css("visibility","hidden");</td>
</tr>
</tbody>
</table>
Can anyone tell me if this script hides the controls and if so, how to change it so that the player controls are visible?
Thanks,
Peter
Comments
-
Hi Peter,
In attachMediaPlayer you can try changing "no" to "yes". You may just get lucky
Otherwise, take a look here:
https://www.mediaelementjs.com
Categories
- 35.8K All Categories
- 108 ✫ Announcements
- 33.1K Lectora®
- 31.1K Lectora Discussions
- 28.9K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 36 Lectora Accessibility User Group (LAUG)
- 22 ELB Learning Content
- 22 ELB Learning Content Discussions
- 321 CenarioVR®
- 188 CenarioVR Discussions
- 133 CenarioVR Feature Requests
- 41 Rockstar Learning Platform®
- 38 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 47 ReviewLink®
- 47 ReviewLink Discussions
- 5 The Training Arcade®
- 5 The Training Arcade Discussions
- 934 All Things eLearning
- 36 eLearning Development
- 546 Learning Management System (LMS) Integration
- 332 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products