- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
- HTML5
- JavaScript*
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page