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

1 answer to this question

Recommended Posts

 Share

×
×
  • Create New...