opentok-web-samples
opentok-web-samples copied to clipboard
Steams are not posted to specified id stated?
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?