-
Notifications
You must be signed in to change notification settings - Fork 3
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
Janus ID should be u64 ? #158
Comments
Hey - Thanks for raising this! Actually you're right it should be u64, but I think I found what's wrong. As you said
|
Janus is expecting a positive JSON_INTEGER |
Indeed, it expects positive i64. I was a bit concerned that you encountered some bugs around the fact that json integers are limited to 2^53 precision (https://stackoverflow.com/a/16810116), but this limitation is more related when interfacing with javascript from what I understand. |
I've created a Let me know what do you think |
Looks good to me. Thanks for looking into that quickly ;) |
In commit 7e97c4a janus ID were downgraded to u32 but to me this looks wrong.
For instance, audio room ID are u64 https://github.com/meetecho/janus-gateway/blob/master/src/plugins/janus_audiobridge.c#L1477. But it looks like most (all ?) plugins tracks ID using u64.
The json type used for ID is json_int_t (https://jansson.readthedocs.io/en/latest/apiref.html#c.json_int_t) which is "long long" so still 64bit.
What did justify this downgrade to u32 ? In the commit it says that e2e tests revealed that, but in my experience (limited to the streaming plugin), u64 works just fine.
Thanks
The text was updated successfully, but these errors were encountered: