Disabling video controls

PennController for IBEX Forums Support Disabling video controls

This topic contains 2 replies, has 2 voices, and was last updated by Avatar rose 2 weeks, 6 days ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6990
    Avatar
    rose
    Participant

    Hi Jeremy,

    I’m wondering how you can disable all of the controls for a MediaRecorder video element. Right now my code looks like this:

    newMediaRecorder("video")
            .record()
            .print()
            .disable()
        ,
        newFunction( ()=>$(".PennController-video video").removeAttr("controls") ).call()

    The .disable() command only seems to block out the “stop” button, but I’m still able to hit the pause/play button, make the video full screen, and click on the menu button which leads to the “picture in picture” option. I got the newFunction line from someone else who used it to disable all of the video controls in their study, but it doesn’t seem to have changed anything in mine. Do you have any suggestions/solutions for this?

    Thanks!

    • This topic was modified 3 weeks, 2 days ago by Avatar rose.
    #6995
    Jeremy
    Jeremy
    Keymaster

    Hi,

    The element being MediaRecorder and not Video, you need to use .PennController-mediarecorder video as your selector

    Jeremy

    #7007
    Avatar
    rose
    Participant

    That worked. Thank you!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.