Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Describe videoroom plugin flow
  1. OUT: Join
{request: "join", room: 1234, ptype: "publisher", display: "a"}

Создается participant (с типом publisher) и добавляется в комнату.

g_hash_table_insert(videoroom->participants, janus_uint64_dup(publisher->user_id), publisher);
  1. OUT: Configure
{request: "configure", audio: true, video: true} + offer

Отвечаем на offer через event. Также создаем новый offer, который в дальнейшем будет отдавать подписчикам.

participant->sdp = offer_sdp;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.