opentok-react icon indicating copy to clipboard operation
opentok-react copied to clipboard

How to apply layouts accordingly to the opentok API ?

Open MuhammedKhaled-95 opened this issue 4 years ago • 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

MuhammedKhaled-95 avatar Jun 18 '21 23:06 MuhammedKhaled-95

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

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

aiham avatar Jun 19 '21 00:06 aiham

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 avatar Nov 05 '21 17:11 brayanL

@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

enricop89 avatar Nov 08 '21 10:11 enricop89