Jump to content
  • 0

Missing stream metaData on the client side


dmitry027
 Share

Question

Hello, everyone.

My use case is the following: I want to specify some meta data for the stream when I create it on the server side via REST API, so I can use it on the client side later.

My steps are:

1. Create stream on the server side of my app via REST API by calling POST /v2/broadcasts/create with body {"metaData":"somestreammetadata"}.Then pass streamId of created stream to the client side.

2. On the client side use streamId obtained on previous step to join the conference room by calling WebRTCAdaptor::joinRoom(roomName, streamId). Then start publishing by calling WebRTCAdaptor::publish(streamId).

What I expect:

When other participants of the conference receive stream info via "roomInformation" event, I see "metaData" that was set on stream creation.

What I actually see:

When other participants of the conference receive stream info via "roomInformation" event, I see that "metaData" value is null.

On the other hand, when I call REST API method GET /v2/broadcasts/{id}, I see correct value in "metaData" field of the stream.

What am I doing wrong?

Link to comment
Share on other sites

  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share


×
×
  • Create New...