Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
24 Views

when will the onStreamAdded be invoked?

I am building my app with p2p webrtc

I was looking at my signal channel for the communication between the two devices.

I notice that "onAccepted" side sends "sdp offer" and about 7 ice candidates (with both video and audio) the "accept" replied with "sdp answer "and 2 candidates.

I notice that the answer side did not send any video candidates. Is it normal? If not, any idea where I should look to try to fix it?

If it is expected, should the onStreamAdded be invoked? I am not seeing it getting triggered. 

Tags (2)
0 Kudos
1 Reply
Highlighted
Employee
24 Views

Hi zhen,

if you would like to send video streams to the peer, please call API publish.

onStreamAdded will be triggered when the peer sends a stream.

0 Kudos