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%"}); 

here's example of making large subscriber might you.


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -