react-use-opentok
is a react hooks library which provide a easy and hook style for @opentok/client
SDK.
The example above shows common features of SDK. You can do connect to a session first, then publish stream
subscribe stream when others join the session.
WARNING: The default apiKey, sessionId, token maybe expired, please use yours by register in OpenTok.
First, you can generate those credentials by Project Tools or OpenTok Playground.
Fill the form and Connect to Session
.