Hello everybody,
I’ve updated openvidu from 2.15 to 2.20. I’ve browser app and native app, the browser app works good but native app that uses REST API to interact with openvidu, has issues.
The issue is related to deprecated method “…/api/tokens” that I also tryed to update to the new “… /api/sessions/<SESSION_ID>/connection”.
The response that I receive missing some parts of token content.
Token that I expect (from DOCS):
That reference does define the token property as a String. It is not an object with fixed properties, so you cannot relay on it not changing over time.
Some attributes available in the token in older versions of OpenVidu were moved to the JSON RPC response of “joinRoom” operation: OpenVidu Server RPC protocol - OpenVidu Docs
You are not supposed to need the TURN credentials information associated to an OpenVidu user, but if you want you will have them available at the hidden property Openvidu.iceServers, only after successfully calling Session.connect: