Skip to content
This repository has been archived by the owner on Apr 23, 2023. It is now read-only.

Latest commit

 

History

History
 
 

web

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Web Example

import {Parsec} from './parsec.js';

const client = new Parsec(videoElement, (event) => {
    // Process 'connect' and 'exit' events here
});

client.connect(sessionId, peerId);

The constructor takes an HTML5 <video> element and can take an optional second callback argument that can receive events such as connect and exit.

You'll need Node.js to run the development server. This project was tested with node 8.12.0 LTS.

node server.js

The development server will be running at localhost:9000.