Getting Invalid JSON of clientData

Hi Team,

I’m getting invalid JSON of client data.
{“clientData”:“Participant”,“participantId”:“0_nfdk7jdpru8”,“type”:“CAMERA”}%/%{}
Due to this nickname of remote participant not showing correctly.

Hi,

This is a remanent of a bad design decission that was took years ago, and in favor of not going through breaking changes it has remained that way: Share data between users - OpenVidu Docs
If you provide participant metadata through both the client side (with openvidu-browser SDK) and server side (with REST API / Java SDK / Node SDK) then both strings will be separated by string %/%. You must parse it before accessing both JSONs.
We will probably change this with a breaking change soon, becasue this makes no sense at all.

Best regards.

2 Likes