Comments (14)
Thanks for checking in. Not yet, but I hope to tackle this or next week. I'll update here when there's news.
from kinectron.
Ok good to know. I'll take a look at this before the end of the week.
from kinectron.
Thanks for checking in. This is still not working. This is an issue with Chrome and Firefox blocking insecure connections to the local network. I have researched a number of solutions for this, but haven't yet found anything that will work as Chrome and Firefox are intentionally blocking this type of connection.
If you happen to be working with both the p5 web editor and the Kinectron server on the same computer, you can use 127.0.0.1 as the IP address in the web editor and it will work.
let kinectronIpAddress = "127.0.0.1";
from kinectron.
I just pushed release 0.3.4 with a fix for this. I've added an option to access the Kinectron server with ngrok. It works by creating an https tunnel to the Kinectron server at your localhost port 9001 (127.0.0.1:9001).
Ngrok uses a public url. This means that in addition to https, which is what the p5 Web Editor requires, you now have a Kinectron server that can be accessed from anyone on the internet.
Opening the Kinectron server to the internet does mean that anyone with the url could possibly exploit security vulnerabilities in the Kinectron server and its dependencies. (I'm not saying there are vulnerabilities, but there may be...) If you're just using this for local development the risk of exploitation should be very low because ngrok creates a unique alphanumeric url that changes each time the server is run. (This is good for safety, although will be a bit annoying as the developer bc you need to replace the public address in the client every time you restart the server. ) So there is little likelihood that someone with malicious intent would be able to find you. If you'll be publicly sharing your public Kinectron url, you'd be opening yourself up to higher risk (although still relatively low).
Instructions are here: "Create an Instance of Kinectron." But essentially all you do is click the button for "Create Public Address" and then use that address in the client when creating an instance of Kinectron instead of the ip address.
let kinectron = new Kinectron("46b028e5c8ec.ngrok.io");
I'm going to close this issue for now, but please feel free to comment and let me know how if it is working for you, etc. Thanks!
from kinectron.
Hi, I have exactly the same problem.
thanks!
from kinectron.
Can you provide more information about the problem? Are you getting any errors in the console on either the server or the client? Sending a screenshot of the server interface and open console could also help.
from kinectron.
Hi!
The kinectron server is geeting feed and doesn´t show any error messages. The p5.js online editor doesn't get any data and doesn't show any message. It doesn't print either the console.log() message.
I have tried this same example using a local web server for chrome and works perfect.
thanks for answering!
J
from kinectron.
If you look in Chrome's console (not the p5 editor console) do you see any errors?
It looks like this is an issue with the p5 web editor specifically. I'll be able to take a look into it later this month. For now can you use your local web server and Chrome?
from kinectron.
Hi!
Yes, it shows several errors.
I´ll keep using a local server.
thanks for answering!
from kinectron.
I have an app that was running for several months and lost the ability to connect after a Chrome update. I was getting warnings similar to the ones above about RTCIceServer.url and onaddstream being deprecated. I downgraded to Chrome v64 and my app gained connectivity again.
from kinectron.
It looks like the main issue here is the mixed content error, which I'm getting in both Firefox and Chrome. I will dig into how to resolve this, but I surfaced a lot of other issues while digging into this.
In Chrome, Peerjs is not firing connection.open on the application side when it receives a peer connection. This is preventing the peer connection from ever sending data between app and client. This is a known issue , but it may have been addressed in recent Peerjs updates.
I need to double check that PeerJS is being kept up to date in dependencies. But long term we need to move off of Peerjs entirely because it's not being maintained consistently. I will touch base with @js6450 about options and open a new issue for this.
Also, the NYU kinectron bundle link is getting a CORS error again. Need to fix with @vanevery. Long term, I will update all example links to jsdelivr and check that development pipeline is changed to keep jsdelivr link up to date.
For RTCIceServer warning, need to look back at #9
from kinectron.
I just published a new release of Kinectron server and application, which solves many of the connectivity issues between the server and the client.
The new server is available at https://github.com/kinectron/kinectron/releases/tag/0.2.0 and the client is at:
https://cdn.jsdelivr.net/gh/kinectron/[email protected]/client/dist/kinectron-client.js
Note that the changes will only work with a local server (like SimpleHTTPServer), not from the p5 online editor, which I hope to have running again in the next few weeks.
from kinectron.
Curious if there was an update with this working in the web editor? No rush just noticed it is still getting the Mixed Content err.
from kinectron.
Any updates on this? I noticed this is still not working, thought I would check in ...
from kinectron.
Related Issues (20)
- RGB framerate slowing on upgrade to kinect2
- Uncaught Error: The specified module could not be found. HOT 7
- change branch name to main
- colored_point_cloud HOT 7
- Run/Start parameters for Kinectron-Server
- linux support?
- web socket connection in kinectron-client.js fail
- Body SDK Broken on Windows 11 in App
- Upgrade to kinect-azure 0.0.10 remove setTimeout for switching cameras
- How to draw depth image to canvas? HOT 2
- p5 record example does not record HOT 1
- Point cloud example running very slow HOT 1
- rgbd does not broadcast HOT 10
- Peerjs/ Packer / Empty array causes error in packer for Azure Kinect body tracking
- Latency on Windows Kinect raw depth feed HOT 2
- Review new azure examples HOT 2
- Skeleton (Tracked Bodies), All Bodies, Key Not Working on Azure Kinect HOT 5
- RBGD stream for Azure Kinect HOT 5
- Update p5 editor code for windows skeleton example
- adding IR feed to "multifeed" mode HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kinectron.