opentok - Setting width/height for subscriber div elements via properties -
one can set width/height publisher div element via properties: http://www.tokbox.com/opentok/docs/js/reference/tb.html
however, it's not possible same other streams. properties don't have width/height: http://tokbox.com/opentok/webrtc/docs/js/reference/session.html#subscribe
even if set via css, they'll overwritten.
for example, how can 1 make app facetime subscribed video stream larger publisher stream?
you can set subscriber div's height , width passing object width , height attribute session.subscribe
function:
session.subscribe(stream, divid, {width: 320, height: 240});
you style css using parent container , setting subscriber's width/height 100%:
session.subscribe(stream, divid, {width: "100%", height: "100%"});
Comments
Post a Comment