Hi Eric,
yes thanks.
I am trying have the two servers communicate, I installed
socket.io, copied the easyrtc.js file to the Meteor server, and set
easyrtc.setSocketUrl(":8080");
However, Meteor does not allow me to use:
<body onload = "connect();">
So I have to use a template method to run the connect function once it is fully loaded into the DOM:
Template.easyrtcSimple1.created = function(){
connect();
}
But I get the error:
The monitor video id passed to easyApp was bad, saw selfVideoWhat exactly is that referring to (line 5068 in easyrtc.js) ?
easyrtc.js:5137 also throws an error :
if (!_validateVideoIds(monitorVideoId, videoIdsP)) {
throw "bad video element id";
}
In connect(); I use the same app name as you have. Is that ok?
easyrtc.easyApp("easyrtc.audioVideoSimple", "selfVideo", ["callerVideo"], loginSuccess, loginFailure);
I have stripped down the html file and made sure it worked locally on easyrtc server first (after removing the template tag, {{runConnect}} and adding in onload:
<template name = "easyrtcSimple1">
<div id="container">
<div id="main">
<div id="demoContainer">
<div id="connectControls">
<div id="iam">Not yet connected...</div>
<br />
<strong>Connected users:</strong>
<div id="otherClients"></div>
</div>
<div id="videos">
<video autoplay="autoplay" class="easyrtcMirror" id="selfVideo" muted="muted" volume="0" ></video>
<div style="position:relative;float:left;">
<video autoplay="autoplay" id="callerVideo"></video>
</div>
</div>
</div>
</div>
</div>
</template>
Thanks,
Karl