Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we call a function when some body go out from the room? #17

Closed
cod3r0k opened this issue Aug 14, 2020 · 4 comments
Closed

Can we call a function when some body go out from the room? #17

cod3r0k opened this issue Aug 14, 2020 · 4 comments

Comments

@cod3r0k
Copy link

cod3r0k commented Aug 14, 2020

Dear All, How can we detect that anybody is not in the room (with hooks)? E.g. how can we get the duration of each user entrance? also some body maybe have loss internet connection. I want to call some function when anybody's connection is destroyed

@SamuelWei
Copy link
Contributor

SamuelWei commented Aug 14, 2020

You could pull the api and check the attendees lists. See https://docs.bigbluebutton.org/dev/api.html#getmeetinginfo
The duration of an attendee could be calulated by pulling the attendees list every x Minutes. Next create a model for meeting_attendees and with start and end datetime. If a new user is detected set start to now, and once a user is not in the list anymore, set end date.

You could also try to implement something like that with https://docs.bigbluebutton.org/dev/webhooks.html I once tried it and did't have a lot of success, but you can try. As far as I know this api isn't supporting hooks, right @joisarjignesh ?

@joisarjignesh
Copy link
Owner

@SamuelWei only Hooks create and destroy wrap into laravel based not fully testing just added here.

@joisarjignesh
Copy link
Owner

@cod3r0k as you said by @SamuelWei follow the instruction.

@cod3r0k
Copy link
Author

cod3r0k commented Aug 14, 2020

You could pull the api and check the attendees lists. See https://docs.bigbluebutton.org/dev/api.html#getmeetinginfo
The duration of an attendee could be calulated by pulling the attendees list every x Minutes. Next create a model for meeting_attendees and with start and end datetime. If a new user is detected set start to now, and once a user is not in the list anymore, set end date.

You could also try to implement something like that with https://docs.bigbluebutton.org/dev/webhooks.html I once tried it and did't have a lot of success, but you can try. As far as I know this api isn't supporting hooks, right @joisarjignesh ?

Thank you @SamuelWei , you mean that we must use Scheduling (https://laravel.com/docs/7.x/scheduling) in Laravel for that?

@SamuelWei only Hooks create and destroy wrap into laravel based not fully testing just added here.
Thanks @joisarjignesh but I didn't get what you say.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants