UNPKG

rtc-glue

Version:

A simple library for writing WebRTC applications an in HTML-centric way

22 lines (20 loc) 546 B
<html> <head> <!-- configure the signalling to use the test rtc.io public signaller --> <meta name="rtc-signalhost" content="http://rtc.io/switchboard/"> <style type="text/css"> video { max-width: 320px; } </style> </head> <body> <!-- video for our local capture --> <video id="main" rtc-capture="camera:0"></video> <video id="secondary" rtc-capture="camera:1"></video> <!-- remote container for our frient --> <video rtc-peer rtc-stream="main" muted></video> <!-- make magic happen --> <script src="../dist/glue.js"></script> </body> </html>