Skip to main content

Setup

Use npm or yarn to add the package to your JavaScript project.

$ npm i --save eyeson

You can start your own video conferencing app with a few lines of JavaScript:

import eyeson from 'eyeson';

eyeson.onEvent(event => {
if (event.type === 'accept') {
// Note: Some iOS devices might require video to have autoplay attribute set.
const video = document.querySelector('video');
video.srcObject = event.remoteStream;
video.play();
}
});
eyeson.start('<access-key>');

Media options

The start function can also take an optional object with media settings.

eyeson.start('<access-key>', {
audio: true,
video: true,
eco: false,
audioPassthrough: false
});

Example implementation

You can find an example implementation on GitHub
https://github.com/eyeson-team/react-web-gui-example