opentok / opentok-react

React components for OpenTok.js
https://www.npmjs.com/package/opentok-react
MIT License
107 stars 105 forks source link

How to stream system audio along with screenshare #229

Open athulms1988 opened 2 years ago

athulms1988 commented 2 years ago

Hi, I am developing a live video sharing website like twitch.tv. There are two requirements

  1. Publish Cam + Microphone
  2. Publish screen + system audio.

Publish cam and microphone is working fine. And I am able to stream Screen with no audio. But my requirement is to stream system audio along with screen share. Basically if the user is playing a video file in his video player application, subscribers should be able to view the video along with the audio of that videos.

Right now if the publisher is not using any headphone, the system audio will get captured in his microphone and get streamed via the Cam + Microphone. But if the publisher is using headphone, the system audio will not get captured in his microphone. So I need a solution for capturing the system audio and screenshare together