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.
Question
dmitry027
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
Top Posters For This Question
1
1
Popular Days
Nov 24
1
Nov 26
1
Top Posters For This Question
Burak 1 post
dmitry027 1 post
Popular Days
Nov 24 2022
1 post
Nov 26 2022
1 post
Popular Posts
Burak
Hi @dmitry027, Thanks for your good question which forced me to check the code and understand the scenario well. Actually a few information for the broadcast (stream id and stream name) is p
1 answer to this question
Recommended Posts