This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>MSE Demo</title> | |
</head> | |
<body> | |
<h1>MSE Demo</h1> | |
<div> | |
<video controls width="80%"></video> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Peer = require('simple-peer'); | |
var io = require('socket.io-client'); | |
var debug = require('debug')('client'); | |
var socket = io.connect(); | |
var peers = {}; | |
var useTrickle = true; | |
socket.on('connect', function() { | |
debug('Connected to signalling server, Peer ID: %s', socket.id); | |
}); |