Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
1 View

Mix stream issue

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);
});
Tags (2)
0 Kudos
1 Reply
Highlighted
1 View

Hi david,

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?

0 Kudos