Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).
Announcements
Intel Customer Support will be observing the Martin Luther King holiday on Monday, Jan. 17, and will return on Tues. Jan. 18.
For the latest information on Intel’s response to the Log4j/Log4Shell vulnerability, please see Intel-SA-00646

Mix stream issue

david_c_1
Beginner
106 Views

Hi,

I noticed that if I try to mix a stream in the successful callback of its publish api, I get the following error:
 
Invalid stream found in targetStreams
 
To try to fix the problem I use a timeout that is sometimes insufficient (what delay should I set?).
 
Here my code:
 
 
M.conference.publish(M.aStr, { maxAudioBW: 100 }, function(st){
            var mixedStreams = [];
            mixedStreams.push(M.mixStr);
 
            setTimeout(
                              function(){
                                     M.conference.mix(M.aStr, mixedStreams,
                                                 function () {
                                                       M.log(M.INFO, "Success on mix audio share screen ", "");
                                                 }, function (err) {
                                                       M.log(M.INFO, "Failure on mix share screen ", err);
                                                 }
                                       );
                                },500);
});
0 Kudos
1 Reply
Jianjun_Z_Intel
Employee
106 Views

Hi david,

The error message means there is at least one element in mixedStreams is not Woogeen.ExternalStream. Could you please check the type of M.mixStr before calling mix?

Reply