NC talk API call / WebRTC which order

Hi all,

I’m developing an application that makes calls via Nextcloud talk using the API. Although there is an API description available, it is a bit unclear which steps need to be taken and in which order, to setup/start/make the call.

Can anybody help me shine a light on this?

Thanks!

So quick summary:

  1. Join the room
  2. Create a connection to signaling and implement the same behaviour as all other clients
  3. Join the call

Thanks, I’m already in the room.

So I do:

  1. ocs/v2.php/apps/spreed/api/v2/signaling/settings ← retrieves the turn servers, tickets, etc
  2. ocs/v2.php/apps/spreed/api/v3/room/65iy5qiq/participants/active ← retrieves the users in the room
  3. ocs/v2.php/apps/spreed/api/v2/signaling/room ← returns failure
  4. ocs/v2.php/apps/spreed/api/v3/call/room ← status 200 but no call is taking place

So I guess I’m missing something / doing something wrong here.

So I’ve tried with the web client and sniffed the traffic. I redid all the requests with curl to see what happens and where it fails.

My call to:

  1. /ocs/v2.php/apps/spreed/api/v2/signaling/{room}
  2. /ocs/v2.php/apps/spreed/api/v3/room/{room}

Both seem to fail with the following message:

“ocs”:{“meta”:{“status”:“failure”,“statuscode”:404,“message”:null},“data”:[{“type”:“usersInRoom”,“data”:[]}]}}

Anybody any idea why?

Did anyone manage to do this? I was trying the same scenario but couldn’t succeed.
Thanks!