Video lagging with publishing stream with RESTapi

Hello there,

For our JavaScript application, we are currently publishing the streams by sending a GET request like this (without the API):

https://192.168.178.186:8080/janus?gateway_url=https://janus.conf.meetecho.com&gateway_root=/janus&room=1234&room_pin=&username=&token=&publish=1&subscribe=0&hw_vcodec=0&vformat=60&reconnect=1&proxy_host=&proxy_port=80&proxy_password=&proxy_bypass=&action=Start

This works perfectly, and the published streams to that room are very smooth and not laggy at all.

Now, we want to use the RESTapi for publishing the streams, and creating the room.
These are the steps I am currently using the RESTapi:

  1. Create a client
  2. Create a room
  3. Join a room
  4. Publish the media

Are these the correct steps for publishing the media? Right now, when we receive the remote streams, they are very laggy and the UV4L sever becomes very slow.

Please ask UV4L questions on UV4L lists, not here. That’s not the Janus API, so it’s out of scope here.