opentok/opentok-react

How to apply layouts accordingly to the opentok API ?

Opened this issue · 3 comments

How do I apply the different representation for the React version using the Opentok API
The API allows you to set the layout to different modes like "Picture in Picture, Best Fit, Vertical/Horizontal Presentations "
How do we achieve the same behaviour in the react version?
I would be grateful if you can assist me 💯

@aiham @gasi @janjakubnanista @msach22

aiham commented

Those options are for archive layouts. Archives are controlled via the REST API, not JavaScript.

See https://tokbox.com/developer/rest/#start_archive

it's possible to use the rest API and opentok-react components together? I'm trying to change the default layout to a Horizontal Presentation layout.
https://tokbox.com/developer/guides/archive-broadcast-layout/

@brayanL yes, archiving layouts are independent from the client-side (whatever you use plain JS, React or any framework). You use RestAPI from the Server Side