hidden player video controls with scripting

russell
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

Comments

  • tgleason9221
    tgleason9221 Community Member Posts: 8
    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

     
  • timk
    timk Community Member Posts: 1,176 ☆ Superstar ☆
    The player controls are in a DIV with the class "mejs-controls".

    $(“.mejs-controls”).css(“visibility”,”hidden”);

    is code to make them invisible. You can delete it or change "hidden" to "visible".
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!