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

Screen Share Error 4.1 MCU

Naresh_R_1
New Contributor I
1,308 Views

Dear Team,

I am getting below error when we are using screen-cast, attached screen shot

audio/video is inconsistent with tracks presented in the media stream

image.jpg

Thanks

Naresh

0 Kudos
6 Replies
Qiujiao_W_Intel
Employee
1,308 Views

According to the error description, it may caused by publish audio/video option is not aligned with created stream track, like created local stream is video only but you publish with audio and video enabled, please check publish option and create stream option first.

0 Kudos
Faheem
Beginner
1,198 Views

I have posted a question 8 days ago on this forum about owt-javascript-client but no one answers it plz help me.

link to my question is 

https://community.intel.com/t5/Intel-Collaboration-Suite-for/Unable-to-publish-localstream-using-owt-client-javascript-on-owt/td-p/1267346

0 Kudos
yt__xia
Beginner
1,308 Views

@Qiujiao W. (Intel) 您好:

 1.   点击浏览器里面的停止屏幕共享应该用什么事件监听呢,之前 3.5 应该用的  removestream,现在看文档使用  pub 的 ended事件,但是没有效果。

 2.  使用nwjs 直接调用 chrome navigator.webkitGetUserMedia 打开屏幕共享(共享预览已经打开了),应该怎么传入流参数到sdk中呢?因为 nwjs 貌似无法传入extension 扩展插件ID无法使用。

0 Kudos
Qiujiao_W_Intel
Employee
1,308 Views

For share screen event, it is defined in mediastream of w3c https://www.w3.org/TR/mediacapture-streams/#mediastream , here is an example on how to use it:

function mediaStreamEvent(localStream) {
    localStream.mediaStream.getTracks().forEach(track => {
        track.onended = function () {
            console.log(`localStream ${localStream.id} ${track.kind} ended`);
        }
    })
}
 

0 Kudos
Jayaram_Kurapati
Beginner
1,308 Views

Hi, Now you can share your screen using 'navigator.mediaDevices.getDisplayMedia(displayMediaOptions) '. Here is the link https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia. Capture the stream with "getDisplayMedia" method and publish the stream, it works.
 

Thank You.

0 Kudos
Hao__Feng
Beginner
1,308 Views

Have you solved it? I have the same question and I don't know how to solve it.

Below it's my code.

 

navigator.mediaDevices.getDisplayMedia().then(stream => {
 const publishStream = new Owt.Base.LocalStream(
          stream, new Owt.Base.StreamSourceInfo(Owt.Base.AudioSourceInfo.MIC, 
          Owt.Base.VideoSourceInfo.SCREENCAST), {
            username: this.username
          }
        );
this.conference.publish(publishStream).then();
})

 

0 Kudos
Reply