Screen-sharing tab in Chrome plug-in

Hello. In the example, the captured video is first drawn to the localVideo div element, and then, via the session.createStream().publish () is passed to the server. We need to translate the captured video from the browser tab from the chrome plug-in (without opening any additional pages in the browser, only press "Play" icon). Tell me, please, how can this be done.
 

Max

Administrator
Staff member
Hello
In the example, the captured video is first drawn to the localVideo div element, and then, via the session.createStream().publish () is passed to the server.
This is correct.
We need to translate the captured video from the browser tab from the chrome plug-in (without opening any additional pages in the browser, only press "Play" icon).
Sorry, it is bit unclear.
When you do
Code:
session.createStream().publish ()
you don't open any additional pages.
1. First user presses 'publish'. His / her stream is published to server.
2. Second user presses 'play' on another page (Player).
Could you clarify your requirements?
 
Top