@yunzhoukit/react-core
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

Yunzhou React Core

Install

npm install --save @yunzhoukit/react-core @yunzhoukit/yunzhou-client

Using hooks

The provided components make use of two hooks: useRoom and useParticipant, they will help you manage internal Yunzhou callbacks and map them into state variables that are ready-to-use from React components.

Using the connect function returned by useRoom will ensure that callbacks are registered automatically and the other state variables are updated when changes take place in the room.

Rendering video and audio

When building your custom UI, it's helpful to use track renderers that are provided in this library. AudioRenderer and VideoRenderer would render an audio and video track, respectively.

Readme

Keywords

none

Package Sidebar

Install

npm i @yunzhoukit/react-core

Weekly Downloads

0

Version

1.1.4

License

Apache-2.0

Unpacked Size

133 kB

Total Files

18

Last publish

Collaborators

  • yunzhou2024