Disabling video controls

PennController for IBEX Forums Support Disabling video controls

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6990
    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 2 years, 11 months ago by rose.
    #6995
    Jeremy
    Keymaster

    Hi,

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

    Jeremy

    #7007
    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.