Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
For the latest information on Intel’s response to the Log4j/Log4Shell vulnerability, please see Intel-SA-00646
1136 Discussions

Can screen-sharing function pass Audio stream from PC to remote peer ?

利军_赵_
Beginner
778 Views
Hi, All:
Can screen-sharing function in webrtc SDK  pass Audio stream from PC to remote peer ?
 
JavaScript
$('#target-screen').click(function(){
Woogeen.LocalStream.create({
video:{
device:"screen",
resolution:"hd1080p",
frameRate: 10
}
}, function(err, stream){
if (err) {
return L.Logger.error('create LocalStream failed:', err);
}
localStream = stream;
p2p.publish(localStream,$('#target-uid').val()); // Publish local stream to remote client
});
});
0 Kudos
1 Solution
Jianjun_Z_Intel
Employee
778 Views

It's possible to capture audio along with desktop sharing. Please create a LocalStream with { video: {device: 'screen'}, audio: true}. You can add other properties if you like. Also, please make sure you're using the latest Chrome extension provided in 3.4 release package.

View solution in original post

9 Replies
Jianjun_Z_Intel
Employee
779 Views

It's possible to capture audio along with desktop sharing. Please create a LocalStream with { video: {device: 'screen'}, audio: true}. You can add other properties if you like. Also, please make sure you're using the latest Chrome extension provided in 3.4 release package.

View solution in original post

利军_赵_
Beginner
778 Views

Jianjun Z. (Intel) wrote:

It's possible to capture audio along with desktop sharing. Please create a LocalStream with { video: {device: 'screen'}, audio: true}. You can add other properties if you like. Also, please make sure you're using the latest Chrome extension provided in 3.4 release package.

Thanks , it works well now with your advitise.

Can you help to answer the other topic ? https://software.intel.com/en-us/forums/intel-collaboration-suite-for-webrtc/topic/738114

 

qian_e_
Beginner
778 Views

Jianjun Z. (Intel) wrote:

It's possible to capture audio along with desktop sharing. Please create a LocalStream with { video: {device: 'screen'}, audio: true}. You can add other properties if you like. Also, please make sure you're using the latest Chrome extension provided in 3.4 release package.

你好!我用下面的方法尝试推桌面共享流,但还是听不到声音,不知道有什么建议吗?感谢

Woogeen.LocalStream.create({

            video: {

              device: 'screen',

              resolution: myResolution,

              extensionId: 'lafaooeojkcadiliheobbkkpkbnmdhgh'

            },

            audio: true

          }

leo_a_
Beginner
778 Views

 

 

 

 

利军 赵. wrote:

Quote:

Jianjun Z. (Intel) wrote:

 

It's possible to capture audio along with desktop sharing. Please create a LocalStream with { video: {device: 'screen'}, audio: true}. You can add other properties if you like. Also, please make sure you're using the latest Chrome extension provided in 3.4 release package.

 

 

Thanks , it works well now with your advitise.

Can you help to answer the other topic ? https://software.intel.com/en-us/forums/intel-collaboration-suite-for-we...

 

 

你好, 我最近也在用v3.4的JS SDK的Screen Sharing, 我设置为hd720p,5-20帧..在接收端显示发现画面很卡..特别是Share端播放视频的时候, 720p的情况下,FPS可能就3-5帧.  请问你设置为1080p,10fps, Screen Sharing的时候能达到这个标准吗?

Zhenqi_C_Intel
Employee
778 Views

leo a. wrote:

关于share的流卡的问题:你在创建stream的时候不要指定frameRate参数。

 

 

Quote:

利军 赵. wrote:

 

Quote:

Jianjun Z. (Intel) wrote:

 

It's possible to capture audio along with desktop sharing. Please create a LocalStream with { video: {device: 'screen'}, audio: true}. You can add other properties if you like. Also, please make sure you're using the latest Chrome extension provided in 3.4 release package.

 

 

Thanks , it works well now with your advitise.

Can you help to answer the other topic ? https://software.intel.com/en-us/forums/intel-collaboration-suite-for-we...

 

 

 

 

你好, 我最近也在用v3.4的JS SDK的Screen Sharing, 我设置为hd720p,5-20帧..在接收端显示发现画面很卡..特别是Share端播放视频的时候, 720p的情况下,FPS可能就3-5帧.  请问你设置为1080p,10fps, Screen Sharing的时候能达到这个标准吗?

Zhenqi_C_Intel
Employee
778 Views

qian e. wrote:

3.4release:

分享流时,在弹出的对话框的左下角,你能看到 “share audio”的选择框吗? 如果有,这个流就能采集到声音;如果没有这个流就没有声音。

如果你分享的是桌面,应该能采集到系统的声音。

如果你分享的是chrome tab,应该能采集到 这个tab的声音(前提是你的这个tab有声音)。

3.5relase

windows上暂时不支持share system audio。但是chrome tab的声音是能share的。

Quote:

Jianjun Z. (Intel) wrote:

 

It's possible to capture audio along with desktop sharing. Please create a LocalStream with { video: {device: 'screen'}, audio: true}. You can add other properties if you like. Also, please make sure you're using the latest Chrome extension provided in 3.4 release package.

 

 

你好!我用下面的方法尝试推桌面共享流,但还是听不到声音,不知道有什么建议吗?感谢
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Monaco; color: #f4f4f4; background-color: #000000; background-color: rgba(0, 0, 0, 0.85)}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Monaco; color: #c33720; background-color: #000000; background-color: rgba(0, 0, 0, 0.85)}
span.s1 {font-variant-ligatures: no-common-ligatures}
span.s2 {font-variant-ligatures: no-common-ligatures; color: #34bbc8}
span.s3 {font-variant-ligatures: no-common-ligatures; color: #c33720}
span.s4 {font-variant-ligatures: no-common-ligatures; color: #f4f4f4}

Woogeen.LocalStream.create({

            video: {

              device: 'screen',

              resolution: myResolution,

              extensionId: 'lafaooeojkcadiliheobbkkpkbnmdhgh'

            },

            audio: true

          }

leo_a_
Beginner
778 Views

你好, 3.5 release windows暂时不支持share system audio, 请问mac上支持在屏幕分享到时候share system audio吗?

 

Zhenqi C. (Intel) wrote:

Quote:

qian e. wrote:

 

3.4release:

分享流时,在弹出的对话框的左下角,你能看到 “share audio”的选择框吗? 如果有,这个流就能采集到声音;如果没有这个流就没有声音。

如果你分享的是桌面,应该能采集到系统的声音。

如果你分享的是chrome tab,应该能采集到 这个tab的声音(前提是你的这个tab有声音)。

3.5relase

windows上暂时不支持share system audio。但是chrome tab的声音是能share的。

Quote:

Jianjun Z. (Intel) wrote:

 

It's possible to capture audio along with desktop sharing. Please create a LocalStream with { video: {device: 'screen'}, audio: true}. You can add other properties if you like. Also, please make sure you're using the latest Chrome extension provided in 3.4 release package.

 

 

你好!我用下面的方法尝试推桌面共享流,但还是听不到声音,不知道有什么建议吗?感谢
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Monaco; color: #f4f4f4; background-color: #000000; background-color: rgba(0, 0, 0, 0.85)}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Monaco; color: #c33720; background-color: #000000; background-color: rgba(0, 0, 0, 0.85)}
span.s1 {font-variant-ligatures: no-common-ligatures}
span.s2 {font-variant-ligatures: no-common-ligatures; color: #34bbc8}
span.s3 {font-variant-ligatures: no-common-ligatures; color: #c33720}
span.s4 {font-variant-ligatures: no-common-ligatures; color: #f4f4f4}

Woogeen.LocalStream.create({

            video: {

              device: 'screen',

              resolution: myResolution,

              extensionId: 'lafaooeojkcadiliheobbkkpkbnmdhgh'

            },

            audio: true

          }

 

 

Kumar__Nitin1
Beginner
772 Views

Jianjun Z. (Intel) wrote:

It's possible to capture audio along with desktop sharing. Please create a LocalStream with { video: {device: 'screen'}, audio: true}. You can add other properties if you like. Also, please make sure you're using the latest Chrome extension provided in 3.4 release package.

 

In the latest version, v4.3 isn't it working like this? can't we capture audio along with screen sharing? 

When I try with AudioTrackConstraints as "mic" and VideoTrackConstraints as "screen-cast" I get the following error "Cannot capture video from screen cast while capture audio from other source" ...

 

is anyone facing a similar issue?

 

Jianjun_Z_Intel
Employee
778 Views

Hi Nitin,

The MediaStreamFactory only provides basic functions to create MediaStreamTrack and MediaStream. If you want to create a MediaStream with an audio track from mic and a video track from desktop sharing, please create a MediaStream by standard getUserMedia APIs and pass it to LocalStream's constructor.

Reply