-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
AudioBridge stop_all_files api #3403
base: master
Are you sure you want to change the base?
AudioBridge stop_all_files api #3403
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies for the late reply, I'm catching up with pending activities after the summer holidays. I've added a couple of notes inline.
json_object_set_new(event, "room", | ||
string_ids ? json_string(audiobridge->room_id_str) : json_integer(audiobridge->room_id)); | ||
json_object_set_new(event, "file_id", json_string(p->annc->id)); | ||
janus_audiobridge_notify_participants(p, event, TRUE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you passing TRUE
here? That's notify_source_participant
, which should be FALSE
in this case because the janus_audiobridge_participant
instance you're passing to the function is an announcement, and so not a real participant with a Janus API session we can notify about stuff.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @lminiero
-
stop_file
audiobridge sendsannouncement-stopped
event.
https://github.com/keremcadirci/janus-gateway/blob/65a23f56da9788bd4d2a733f5f1f613ff0ff489d/src/plugins/janus_audiobridge.c#L5668 -
play_file
results withannouncement-started
How should we continue? Should we change stop_file
and play_file to FALSE
too
My own preference is to leave TRUE
since in we want to notify participants about these events
meetecho#3403 stop_all_files, refactor
The continuation of the PR #3392
This is a cleaner PR with all #3392 commits are merged into a single commit.
All Conflicts are solved