mconf / bigbluebutton

BigBlueButton is an open source web conferencing system for distance education
www.bigbluebutton.org
40 stars 33 forks source link

Add missing information to redis events for recordings #336

Closed daronco closed 7 years ago

daronco commented 8 years ago

The events related to recordings that are published to redis are currently not enough for an integration to recreate all the information of a recording just by listening to these events using the webhooks. If the integration uses the getRecordings API call, it will receive more data.

The idea is that an integration should have all information it currently has if it calls getRecordings by just listening to the recording events using the webhooks.

What should be added/changed is:

pedrobmarin commented 8 years ago

About your considerations:

Besides those considerations I made the changes you needed. Now recording events will also have the external_meeting_id:

1474475244.995001 [0 127.0.0.1:60210] "publish" "bigbluebutton:from-rap" "{\"header\":{\"timestamp\":15605269,\"name\":\"archive_ended\",\"current_time\":1474475244,\"version\":\"0.0.1\"},\"payload\":{\"success\":true,\"step_time\":755,\"external_meeting_id\":\"random-6778996\",\"meeting_id\":\"50f637b658dcfebf958f6c1cf2326dc6c62a3c7e-1474475168797\"}}"

and publish_ended will look like this:

1474475255.162613 [0 127.0.0.1:60210] "publish" "bigbluebutton:from-rap" "{\"header\":{\"timestamp\":15615437,\"name\":\"publish_ended\",\"current_time\":1474475255,\"version\":\"0.0.1\"},\"payload\":{\"success\":true,\"step_time\":830,\"playback\":{\"format\":\"presentation\",\"link\":\"http://10.0.3.221/playback/presentation/0.9.0/playback.html?meetingId=50f637b658dcfebf958f6c1cf2326dc6c62a3c7e-1474462703710\",\"processing_time\":8126,\"duration\":6654,\"size\":167577},\"metadata\":{\"meetingId\":\"random-6778996\",\"meetingName\":\"random-6778996\"},\"download\":{},\"raw_size\":470689,\"start_time\":1474462703710,\"end_time\":1474462726979,\"workflow\":\"presentation\",\"external_meeting_id\":\"random-6778996\",\"meeting_id\":\"50f637b658dcfebf958f6c1cf2326dc6c62a3c7e-1474462703710\"}}"

And let's discuss about the results and considerations. Here is the link to the branch with the modifications https://github.com/pedrobmarin/bigbluebutton/tree/recording-events-improvments