bigbluebutton-Github/record-and-playback/core/scripts/post_scripts
2014-04-29 10:33:23 -05:00
..
post_archive.rb post scripts for record and playback 2014-04-24 19:08:06 -05:00
post_phase_tools.rb post scripts for record and playback 2014-04-24 19:08:06 -05:00
post_process.rb post scripts for record and playback 2014-04-24 19:08:06 -05:00
post_publish.rb post scripts for record and playback 2014-04-24 19:08:06 -05:00
Readme.md post scripts for record and playback 2014-04-24 19:08:06 -05:00

Post Scripts

Post scripts allow you to manage your media files after each phase of Record and Playback (Archive, Process, Publish). For more info about record and playback phases see record and playback documentation.

You may want to use post scripts to:

  • Send you an email after a recording is published.
  • Make a backup in other server after your recording is archived or published.
  • Send a text message after a recording is published.
  • Compress media files and make them public available for download after it is archived.

Each post script has access to:

  • The directory of the [archived | processed | published] files.
  • The meeting ID via the string "meeting_id"
  • The metadata sent via the hash "post_metadata". See how to send metadata.

Example

You want to receive an email after a recording is published.

  1. Open post_publish.rb and get the metadata you sent email = post_metadata["email"]

  2. Send the email using the metadata you retrieved and the meeting ID message = "The recording #{meeting_id} has been published" send_email(message, email)

  3. Create a recorded meeting sending your email as metadata: meta_postpublishemail="johndoe@example.com"