Missing easyrtc.js, naming incosistencies #411
-
Hi, In "examples/basic-audio.html", the file with path : <script src="/easyrtc/easyrtc.js"></script> can not be found. I guess that you refer to "/server/easyrtc-server.js" Uncaught TypeError: this.easyrtc is undefined from two lines of networked-aframe.js networked-aframe.js line 217 > eval:65:7 Uncaught TypeError: this.easyrtc is undefined networked-aframe.js line 217 > eval:198:27 Uncaught TypeError: this.easyrtc is undefined |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, the example works as intended. The file is used when you run The You need to access the example via the server, so http://localhost:8080/basic-audio.html |
Beta Was this translation helpful? Give feedback.
Hi, the example works as intended.
server/easyrtc-server.js
is the server part, you shouldn't include it in a script tag.The file is used when you run
npm run dev
ornpm start
The
easyrtc-server.js
file is a node app with the express framework that define several routes including/easyrtc/easyrtc.js
defined by the open-easyrtc library.The
/easyrtc/easyrtc.js
route is defined here. TheapiPublicFolder
that is/easyrtc
is defined hereYou need to access the example via the server, so http://localhost:8080/basic-audio.html
The
/easyrtc/easyrtc.js
script will download the open-easyrtc lib through the node server dynamically.