Issues using setConsent on InitiateRecorder

PennController for IBEX Forums Support Issues using setConsent on InitiateRecorder

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #10584
    ssloggett
    Participant

    Hello,

    I’m running into an issue when I try to reset the consent message on the InitiateRecorder trial. Every time I do, I get the following error message at the start of the experiment: “The following error occurred: TypeError: Failed to execute ‘getUserMedia’ on ‘MediaDevices’: At least one of audio and video must be requested”.

    For reference, here’s how the InitiateRecorder trial is currently specified:

    InitiateRecorder("https://my.server/myExperiment/myFile.php",
        "Цей експеримент збирає аудіозаписи. Щойно ви надасте йому доступ до свого пристрою запису, ви отримаєте сповіщення про те, чи записують вас, за допомогою мітки у верхній частині сторінки.")
        .label("init")
        .setConsent("I Consent");

    Oddly, everything seems to work just fine if I don’t try to modify the setConsent() command… Any ideas what might be going on there?

    Thanks very much!

    Shayne

    • This topic was modified 1 year ago by ssloggett.
    #10587
    Jeremy
    Keymaster

    Hello Shayne,

    My bad, the command is .consent, not .setConsent

    Jeremy

    #10589
    ssloggett
    Participant

    Perfect, that works great. Thanks so much!

    Shayne

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.