This package contains a React component for a video call in Empirica. It is designed to mirror the Empirica Chat API to the extent possible
This module uses the Jitsi open source video-conferencing platform.
Add to your Empirica project with:
meteor npm install --save empirica-videocall
import { Call } from "empirica-videocall";
//...
<Call player={player} roomName={"roomname goes here"} />;
Call
expects 2 required props:
playerName
: a handle that will be displayed as the player's name to other participantsroomName
: an identifier that will create a unique room. The round id is a good choice.
This is best developed using a docker container. With the docker daemon running, type docker-compose up
.
This will launch storybook with the component, and changes to the component will be reflected in storybook. You can view the storybook at http://localhost:6006
To build the package, run yarn run build
within the container.
On github commit, will build storybook and publish to chromatic.