Hey Vibhor,
I'm using Vivaldi and Chrome to 'test' my easyrtc app and get the same issue (mostly). All calls between Vivaldi-Vivaldi and Chrome-Chrome are working fine, but calls Vivaldi-Chrome doesn't.
Currently my streamacceptor looks like this:
function streamacceptor(id, stream, name) {
const container = document.getElementById('container')
const video = document.createElement('video')
container.appendChild(video)
easyrtc.setVideoObjectSrc(video, stream)
}
Just did some 'testing' and found out that, if I add a console.log(some rubbish) at the first line of my function, it works as expected. Moving this console.log to another position within that function will lead back to the incorrect working acceptor...
In my setup the 'caller' has two video streams, which will be displayed (or not) at the receiving client like follows:
- console.log as first line -> both streams are shown
- console.log as last line -> first stream is shown, no more calls of streamacceptor
- console.log somewhere within the function -> first stream is shown, no more calls of streamacceptor
- no console.log -> no streamacceptor calls
- adding a semicolon at first line of code -> first stream is shown, no more calls of streamacceptor
- adding const x=name at first line -> both streams are shown
Perhaps you can try this...eh...workaround(?) 'til someone shows us our mistake or confirms this as a bug.
Greetings,
Thomas