Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-80625

Plugin mod_bigbluebuttonbn: Wrong API parameter

XMLWordPrintable

    • MOODLE_403_STABLE
    • MOODLE_403_STABLE, MOODLE_404_STABLE
    • MDL-80625-401
    • MDL-80625-403
    • MDL-80625-404
    • MDL-80625-master
    • Hide

      Initial setup

      To enable recording ready notification the BBB server should be able to contact the Moodle server. In most case (development environment) the default BBB server is not able to do that.

      Best is to use ngrok:

      • Download ngrok (https://ngrok.com/download)
      • Launch ngrok:
      • Setup you site so it will answer ngrok:
        • $CFG->wwwroot = 'https://xxx.ngrok-free.app';
          $CFG->sslproxy = true;

        • Launch local PHP server on 8081: 
          • php -S localhost:8081

      Normally you should be able to view your moodle instance on the external url (https://xxx.ngrok-free.app)

       

      Also to receive the recording ready notification you will need to setup the email system. Best is to use mailcatcher.

      • Add to config.php:
        • $CFG->smtphosts = 'localhost:1025';
      • Run mailcatcher:
        • mailcatcher

      Test

      1. Login as admin
      2. Go to Site Administration >  Plugins > BigblueButton > Experimental features > Register live sessions bigbluebuttonbn_meetingevents_enabled (checked)
      3. Go to Extended capabilities > check Send recording available notification (bigbluebuttonbn_recordingready_enabled)
      4. Create a course C1 and BBB instance B1
      5. In B1, join a session
      6. Click on the "Start recording" button to create a recording
      7. End the session by using "End meeting for all"
      8. Run cron so that recording can be processed and the notification task runs
      9. Check the recording ready message is received via email 
      Show
      Initial setup To enable recording ready notification the BBB server should be able to contact the Moodle server. In most case (development environment) the default BBB server is not able to do that. Best is to use ngrok: Download ngrok ( https://ngrok.com/download) Launch ngrok: ngrok http 8081 Take a note of the external url: https://xxx.ngrok-free.app Setup you site so it will answer ngrok: $CFG->wwwroot = 'https://xxx.ngrok-free.app'; $CFG->sslproxy = true; Launch local PHP server on 8081:  php -S localhost:8081 Normally you should be able to view your moodle instance on the external url ( https://xxx.ngrok-free.app)   Also to receive the recording ready notification you will need to setup the email system. Best is to use mailcatcher . Add to config.php: $CFG->smtphosts = 'localhost:1025'; Run mailcatcher: mailcatcher Test Login as admin Go to Site Administration >  Plugins > BigblueButton > Experimental features > Register live sessions bigbluebuttonbn_meetingevents_enabled (checked) Go to Extended capabilities > check Send recording available notification (bigbluebuttonbn_recordingready_enabled) Create a course C1 and BBB instance B1 In B1, join a session Click on the "Start recording" button to create a recording End the session by using "End meeting for all" Run cron so that recording can be processed and the notification task runs Check the recording ready message is received via email 

      There is a mistake in:  

       

      // line: 468
      // mod/bigbluebuttonbn/classes/meeting.php 
       
      $metadata['bn-recording-ready-url'] = $this->instance->get_record_ready_url()->out(false);

       

      But there is no parameter `bn-recording-ready-url` defined in BBB-API document. The correct code must be:

       

      // correct:
      $metadata['bbb-recording-ready-url'] = $this->instance->get_record_ready_url()->out(false); 

       

       

       

        1. image-2024-01-16-11-22-32-564.png
          54 kB
          Mohammad Azadi
        2. image-2024-02-13-09-42-11-992.png
          66 kB
          Mohammad Azadi
        3. noemail1.png
          229 kB
          Kim Jared Lucas
        4. image.jpg
          42 kB
          Kim Jared Lucas
        5. image-2024-06-27-12-23-43-158.png
          39 kB
          Laurent David
        6. image-2024-06-27-12-24-09-740.png
          96 kB
          Laurent David
        7. image-2024-06-27-12-24-39-371.png
          74 kB
          Laurent David

            shamiso.jaravaza Shamiso Jaravaza
            moh.azadi Mohammad Azadi
            Laurent DAVID Laurent DAVID
            Amaia Anabitarte Amaia Anabitarte
            Laurent David Laurent David
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 16 minutes
                3h 16m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.