Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).
Announcements
Intel Customer Support will be observing the Martin Luther King holiday on Monday, Jan. 17, and will return on Tues. Jan. 18.
For the latest information on Intel’s response to the Log4j/Log4Shell vulnerability, please see Intel-SA-00646

Screen Share Error 4.1 MCU

Naresh_R_1
New Contributor I
438 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
438 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.

Faheem
Beginner
328 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...

yt__xia
Beginner
438 Views

@Qiujiao W. (Intel) 您好:

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

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

Qiujiao_W_Intel
Employee
438 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`);
        }
    })
}
 

Jayaram_Kurapati
Beginner
438 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.

Hao__Feng
Beginner
438 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();
})

 

Reply