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

Add joinRoom, leftRoom, roomCreated, roomEnded Web Hooks #6275

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

lastpeony
Copy link
Contributor

Copy link
Contributor

@mekya mekya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @lastpeony,

Thank you for the implementations.

There are two things that blocks me to merge this PR

  1. Concept of room naming
  2. Backward compatibility

I've added comments for that.

Thank you
Oguz

@@ -911,6 +923,47 @@ public void muxingFinished(final String streamId, File file, long startTime, lon

}

public void notifyRoomHook(String action, String roomId, String myTrackId, boolean playOnly) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the room concept. It's about mainTrack and subTracts. It can be used for multiview streaming or it can be used in conferencing or something else.

I mean change the naming concept from room to tracks

String vodName, String vodId, String metadata) {
logger.info("Running notify hook url:{} stream id: {} mainTrackId:{} action:{} vod name:{} vod id:{}", url, id, mainTrackId, action, vodName, vodId);
if (url != null && !url.isEmpty()) {
JSONObject hookPayload = new JSONObject();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sending JSON is a good idea. On the other hand, it breaks the backward compatibility.

What can you do about migrating to JSON gently by keeping backward compatibility?

Copy link

sonarcloud bot commented Jun 10, 2024

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

Successfully merging this pull request may close these issues.

None yet

3 participants