Skip to content

Instantly share code, notes, and snippets.

View EricDavies's full-sized avatar

Eric Davies EricDavies

View GitHub Profile
@EricDavies
EricDavies / demo_arun.html
Created May 12, 2015 15:59
javascript for disconnecting and reconnecting when using easyrtc.easyApp
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!--skip-->
<title>EasyRTC Demo: Simple Video+Audio</title>
<link rel="stylesheet" type="text/css" href="/easyrtc/easyrtc.css" />
<!--hide-->
<link rel="stylesheet" type="text/css" href="css/landing.css" />
<link rel="stylesheet" type="text/css" href="css/demo_audio_video_simple.css" />
@EricDavies
EricDavies / captureTest.html
Created March 20, 2015 23:07
test of Ians screencapture
<html>
<head> screen test </head>
<body>
My iframe<br>
<iframe width="900px" height="900px" src="https://dev-b.tawk.com/embed/eric2">iframe not supported </iframe><br>
end of my iframe
</html>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!--skip-->
<title>EasyRTC Demo: Simple Video+Audio</title>
<link rel="stylesheet" type="text/css" href="/easyrtc/easyrtc.css" />
<!--hide-->
<link rel="stylesheet" type="text/css" href="css/landing.css" />
<link rel="stylesheet" type="text/css" href="css/demo_audio_video_simple.css" />
@EricDavies
EricDavies / demo_audio_video.html
Created October 8, 2014 15:58
Demonstration of connecting/disconnecting working
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!--skip-->
<title>EasyRTC Demo: Audio and Video</title>
<link rel="stylesheet" type="text/css" href="/easyrtc/easyrtc.css" />
<!--hide-->
<link rel="stylesheet" type="text/css" href="css/landing.css" />
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!--skip-->
<title>EasyRTC Demo: Simple Video+Audio</title>
<link rel="stylesheet" type="text/css" href="/easyrtc/easyrtc.css" />
<!--hide-->
<link rel="stylesheet" type="text/css" href="css/landing.css" />
<link rel="stylesheet" type="text/css" href="css/demo_audio_video_simple.css" />
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<meta charset="UTF-8">
<title>Zoran test</title>
var selfEasyrtcid = "";
function connect() {
easyrtc.setRoomOccupantListener(convertListToButtons);
easyrtc.connect("easyrtc.audioVideo", loginSuccess, loginFailure);
}
function clearConnectList() {
var selfEasyrtcid = "";
var connectTime;
function connect() {
easyrtc.setRoomOccupantListener(convertListToButtons);
easyrtc.easyApp("easyrtc.audioVideo", "selfVideo", ["callerVideo"], loginSuccess, loginFailure);
easyrtc.setOnHangup(function(easyrtcid, slot) {
easyrtc.updatePresence("chat", "");
});
}
@EricDavies
EricDavies / gist:8307801
Created January 7, 2014 22:07
example code for duplicated room data bug
<html>
<head>
<script src="/socket.io/socket.io.js"></script>
<script type="text/javascript" src="/easyrtc/easyrtc.js"></script>
<script type="text/javascript">
var initme = function() {
var roomName = 'ballroom';
console.log("entered init");
var connectSuccess = function(myId) {
@EricDavies
EricDavies / gist:6132815
Created August 1, 2013 16:08
Demonstration of using idToName
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="/socket.io/socket.io.js"></script>
<script type="text/javascript" src="/easyrtc/easyrtc.js"></script>
</head>
<body>
Your name: <input type="text" id="userName" />