Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

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

Open
MuhammedKhaled-95 opened this issue Jun 18, 2021 · 3 comments
Open

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

MuhammedKhaled-95 opened this issue Jun 18, 2021 · 3 comments

Comments

@MuhammedKhaled-95
Copy link

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
Copy link
Contributor

aiham commented Jun 19, 2021

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

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

@brayanL
Copy link

brayanL commented Nov 5, 2021

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
Copy link
Contributor

@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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants