Comments (10)
Yes this is a known issue in Chrome with Peerjs. 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. I am working on resolving this, but in the meantime it seems to not be an issue in Firefox. Please use Firefox for your client side for now.
from kinectron.
I tried it know in Firefox, but it seems I have the same probleme in there!
from kinectron.
Please post any errors you are getting in the browser JS console.
from kinectron.
RTCIceServer.url is deprecated! Use urls instead. kinectron.js:1736
RTCIceServer.url is deprecated! Use urls instead. kinectron.js:1761
RTCIceServer.url is deprecated! Use urls instead. kinectron.js:1779
Der Orientierungssensor sollte nicht mehr verwendet werden. p5.js:55419:23
Der Bewegungssensor sollte nicht mehr verwendet werden. p5.js:55419:23
RTCIceServer.url is deprecated! Use urls instead. kinectron.js:722
onaddstream is deprecated! Use peerConnection.ontrack instead. kinectron.js:797
My peer ID is: 5a3au39y9z6t7o86 kinectron.js:3061:13
My code is from Getting Started: API
from kinectron.
Many of these are warning and shouldn't be keeping the code from running. Can you send a screenshot so I can see what is actually an error (red) versus a warning (yellow). Some of these are in German I think so I'm not sure what they are.
Are you working in the p5 online editor or from your local host?
Are there any errors in the server application console?
from kinectron.
I am working from my localhost and I have no errors!
from kinectron.
Can you post your code? Are you getting errors on the server application (the electron application)?
from kinectron.
`// Create a p5 canvas (learn more at p5js.org)
var myCanvas = null;
// Declare kinectron
var kinectron = null;
function setup() {
// Create a p5 canvas
myCanvas = createCanvas(500, 500);
// Set background color
background(0);
// Initialize Kinectron
initKinectron();
}
function initKinectron() {
// Define and create an instance of kinectron
kinectron = new Kinectron("10.18.250.25");
// Connect with server over peer
kinectron.makeConnection();
// Request all tracked bodies and pass data to your callback
kinectron.startTrackedBodies(drawSkeleton);
}
// The incoming "body" argument holds the Kinect skeleton data
function drawSkeleton(body) {
// Clear the background
background(0, 20);
// Draw a circle at the location of each joint
for(var i = 0; i < body.joints.length; i++) {
// Get the joint
var joint = body.joints[i];
// Set the drawing color
fill(100);
// Map Kinect joint data to canvas size; Draw the circle
ellipse(joint.depthX * myCanvas.width, joint.depthY * myCanvas.height, 15, 15);
}
}
`
from kinectron.
Thanks for posting your code. This appears to be an issue with the peerjs library that is responsible for sending data between the server and the browser. I am working to find a solution and will post here when it's resolved.
from kinectron.
Hi @Diji19
I just published a new release of Kinectron server and application. I believe this should fix the problems that you are having.
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.
Please re-open the issue if it doesn't work for you.
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.