Explore the community Forums Lectora Lectora Questions & Answers hidden player video controls with scripting

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #430477 Score: 0
    Profile photo of Peter Lionberger
    Peter Lionberger
    Member
    beginner
    intermediate
    curious george
    wise owl
    contributor
    @Russell

    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

    #430487 Score: 0
    Profile photo of Tim Gleason
    Tim Gleason
    Member
    beginner
    intermediate
    Group Member
    curious george
    friend finder
    wise owl
    @tgleason9221

    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

     

    #430577 Score: 1
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    307 pts
    @timk

    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”.

    This post has received 1 vote up.
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.