opentok / opentok-react

React components for OpenTok.js
https://www.npmjs.com/package/opentok-react
MIT License
107 stars 105 forks source link

How to apply layouts accordingly to the opentok API ? #198

Open MuhammedKhaled-95 opened 3 years ago

MuhammedKhaled-95 commented 3 years ago

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 3 years ago

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

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

brayanL commented 2 years ago

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/

enricop89 commented 2 years ago

@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