You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have you tested a more recent version of Janus too?
No -- but the code region of interest is the same, it looks like.
Was this working before?
I don't think so, but I haven't gone through all the past versions of Janus.
Additional context
The problem is that the Janus Streaming Plugin doesn't send an event to event handlers for the "started" event, when a user is watching. It does give an event to the client, but not to eventhandlers.
I can't remember if there was a reason why we're not sending that event already, but where you added would be where I would have put it too. I'll have a quick look at the code, and push a commit if I don't seen problems.
Done in the commit above. I also fine tuned the existing "starting" event, since it may have already "started" at that point (as the regular event already reflected).
What version of Janus is this happening on?
I'm currently using this version (from version.c):
I think the issue is here, which is in the latest version of the code.
https://github.com/meetecho/janus-gateway/blob/b98e3bb91bd728ce21f6fd56519a303f2775f755/src/plugins/janus_streaming.c#L5606C1-L5615C41
Have you tested a more recent version of Janus too?
No -- but the code region of interest is the same, it looks like.
Was this working before?
I don't think so, but I haven't gone through all the past versions of Janus.
Additional context
The problem is that the Janus Streaming Plugin doesn't send an event to event handlers for the "started" event, when a user is watching. It does give an event to the client, but not to eventhandlers.
Interestingly, the Streaming Plugin does send an event to the event handlers (and the client) for the "starting" event.
https://github.com/meetecho/janus-gateway/blob/b98e3bb91bd728ce21f6fd56519a303f2775f755/src/plugins/janus_streaming.c#L6629C1-L6637C5
I was able to make it work by simply copy and pasting a snippet similar to the "starting" event but for "started":
at this line:
janus-gateway/src/plugins/janus_streaming.c
Line 5614 in b98e3bb
I'm not sure if this is the best solution, but it seems to work, and I can now know when the media stream has started.
Is it possible to update the code so event handlers will be notified for both "starting" and "started" (not just "starting", as it currently does)?
Thanks!
The text was updated successfully, but these errors were encountered: