Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).
1152 Discussions

when will the onStreamAdded be invoked?

Zhen_L_
Beginner
422 Views

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. 

0 Kudos
1 Reply
He_Z_Intel
Employee
422 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
Reply