- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Lei,
in the web client ,i want to publish both localStream and shareStream, but publish failed: already published.
how can i do with is problem?
Thanks
- Tags:
- HTML5
- JavaScript*
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
我也有这个问题,麻烦看看。多谢。
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Xi,
Publishing both screen and camera streams are supported. Is there any log you can share with us? It may help us investigate your issue. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks for you replay,
in my web client, publish shareScreen as follow,and log is "ERROR: share stream publish failed: already published". But later I found the shareStream has been published actually. and other client can subscribe this shareStream. maybe have mistake callback message somewhere.
shareButton.onclick = (function() {
conference.shareScreen({
extensionId:'baeihcbakjpmpfkgllienplfpjldpnbe',
resolution: myResolution
}, function(stream) {
conference.publish(stream, {}, function(st) {
L.Logger.info('share stream published:', st.id());
}, function(err) {
L.Logger.error('share stream publish failed:', err);
});
}, function(err) {
L.Logger.error('share screen failed:', err);
});
});
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Look at the shareScreen function description in SDK guide, it will create screen local stream and publish it to MCU server. So no need to publish again in success callback. So your code will double publish the screen screen, and MCU report back already published.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page