opentok-web-samples icon indicating copy to clipboard operation
opentok-web-samples copied to clipboard

Steams are not posted to specified id stated?

Open meljason opened this issue 3 years ago • 0 comments

I currently have a tag in HTML of

<div id='screen-preview'></div>

Then I am implementing a sharing screen feature using this:

publisher = OT.initPublisher(
					'screen-preview',
					{
						videoSource: 'screen',
						subscribeToAudio: false,
						insertMode: 'append',
						fitMode: 'contain',
						width: '100%',
						height: '100%',
					}

However, only the publisher is posting the screenshared to the tag "screen-preview". But the subscribers see the screen share in a different child which is created automatically and not under "screen-preview".

How do I get the subscribers to see the screenshare under the "screen-preview" tab?

meljason avatar Mar 23 '21 15:03 meljason