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

Mix stream issue

david_c_1
Beginner
167 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
167 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