Closed daronco closed 7 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
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:
meeting_id
).publish_ended
includes most of the information of a recording, such as the metadata, the playback options, etc. Some things should be changed in this event:name
,startTime
,endTime
,size
,rawSize
. These should all have the same values returned bygetRecordings
.length
(that is also returned bygetRecordings
).link
tourl
, because this is how it's returned bygetRecordings
. This is minor and I'm not sure how it will work with the rest of the code that uses this event.