0.0.4 • Published 2 years ago
empirica-videocall v0.0.4
Empirica Video Call
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
Usage
import { Call } from "empirica-videocall";
//...
<Call player={player} roomName={"roomname goes here"} />;
Call
expects 2 required props:
player
: the current playerroomName
: an identifier that will create a unique room. The round id is a good choice.
Call
also displays a name for each participant, which you need to set
in the experiment independently of the playerId
: player.set('name', "myPseudonym")
Development
This is best developed using a docker container. With the docker daemon running, type docker-compose up
.
To build the package, run yarn run build
within the container.
On github commit, will build storybook and publish to chromatic.