I'm trying to build a HTML5 website that can be controlled through Kinect v2, meaning navigation through pages, pushing buttons, playing videos, etc. I was able to start this project with Kinect v1 using Zigfu but the requirements of the project changed and now I have to use the Kinect v2. Zigfu is not compatible with Kinect v2.
Do you have any other suggestions, what should I use in order to achieve this?
Thanks
I think this is not possible, as the only way you can use the JavaScript API for kinect v2 is in a winJS store app. You could try to embed a web browser on the app. Check this:
https://social.msdn.microsoft.com/Forums/en-US/c285b9ae-a8d3-4ed7-bcf6-0b05b03deebf/developing-with-javascript-vs-wpf-c?forum=kinectv2sdk
You may use HTML5 Web Socket to make data communication between kinect and your website. When you can access kinect data from your browser, you can easily design your desired control logic with the data. I've used this web socket server to develop a project. You may check this. There's a Test site inside it, which shows real time color data and body data in a web page from kinect.
Related
I'm currently working on an application that uses the Phonegap/Cordova framework to display an online and an offline version of a website. If you're not familiar w/ this framework, it offers a simple way of creating multi-platform applications by displaying local files in a full-screen webview.
When launching the application, the Javascript integrated in the local files of the application detects if Internet access if available, and redirects the user to either another local webpage containing a full-screen iFrame of the live website, or a reduced offline version of the website (contained in the local files of the app) if no Internet connection is detected.
I would like to detect when the user logs in using the various forms on the website (being displayed inside the iFrame), but I have no way of knowing which page the user is on, or interact w/ the website content at all because of the same-origin policy.
Would it be possible though to make the Javascript from the local page (which contains the iFrame) interact w/ the Javascript from the remote page (which is being displayed in the iFrame)? This way, I would be able to obtain the login information, and save it for later use (obviously not w/o using a token system), but also it would help for another planned feature (trigger the guidance system).
Thank you.
Look into HTML5 communication, it's pretty simple and sounds like it fits your needs
http://stevehanov.ca/blog/index.php?id=109
https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage
Hello I am making a web application in which users will have to upload images they take to twitter using an integrated twitter image sharing button or function. I have looked at the TwitPic API, which does namely that, but according to their website (https://blog.twitpic.com/2014/10/twitpics-future/) they are basically discontinuing the it.
My Question is if there is an API or way in which I can have users share their image to twitter from within a browser window (so that i can be done via mobile devices as well)?
So far I have just used the twitter button creator and created a normal tweet share, but it does not support image sharing or I cannot seem to figure out how to make it support image sharing.
Yes, take a look at the Twitter documentation for uploading images.
Every modern Twitter library will be able to do this for you.
I am trying to use the hosted SoundCloud JS SDK in a node-webkit desktop app.
It seems like a lot of links in the API use //... instead of http://... and node-webkit gets confused because of this. It tries to find the resource at file://... I want to be able to stream music into a custom player using the SDK's streaming features.
How can I do one of these:
Trick node-webkit into looking at http:// instead of file://
Use JavaScript to stream music without the SDK into my own player with JavaScript
Should I just download and edit the SDK and include it in the app?
I would really love to use the SDK because it makes my life simpler.
Hmm, yeah I guess this was never thought of at the time. Personally, I'd go with 'forking' and specifying the urls (I'd also choose 'https').
This question may be not related to exact software stack, framework or language.
For my current project, we are using AngularJS to build the front-end that has a constant entrance page to load real data and render, which is easy for CDN and good for fast loading speed from browser side. But for some social feature, such architect may result in some problem. For example, when you paste your interested link to Facebook portal to share, Facebook will grab your page and show up a preview. If a landing page is empty, such preview won't work.
(I heard that Google+ recently support rendering javascript logic at server side before send back a preview, but obviously it's not a common support for other similar services. Google.com also supports indexing js based one-page application.)
Is there a better solution to solve this problem gracefully rather than fallback to have dynamic page which includes real data? Have I missed something in understanding this problem?
========
... I was even thinking of that, for requests that identified as FB request (like user agent), redirect it to a special gateway that wrapping sth like PhantomJS, fetch the page, render it server-side, and send back a DOM tree snapshot as content for FB to generate preview. But I also doubt that it's a good direction. : (
We are in the same situation. The simple solution is to use Open Graph meta tags in the pages your server will serve to Facebook scrapers.
Basically you need to do server-side what your web app is doing client-side. Amount of work highly depends on your hosting technology (MVC makes it super easy), your URI format and the APIs you use.
You will find some explanations here:
https://developers.facebook.com/docs/plugins/share-button/
Open graph introduction:
http://ogp.me/
I am fairly new to the development world. I need to built an app writing javascript on Titanium that should run on iOS as well as Android using a single codebase. I am currently targeting iPhones at the moment. The app is about a shop that is into selling traditional clothes and letting interested people know about the collection that they have. Any idea about the architecture that i should decide. Since it is quite logical that the user will update his collection of clothing frequently how should i go about it? Should i give him the client application that will run on his pc that he will make use of to update his changes? Will Appstore accept such apps? Any other points i need to know as i need to start the development asap.
I think the best solution will be an App with Web as backend. Means you can put the data in Web, and your app used particular URL's for fetching the required data in the form of XML and JSON.
Your app will parse the data and display it on the view.
If there is new images in the server, your app will download it to the iOS device.
Another option is an app which deals with HTML pages. Means you need to display the page on a web view. If you need to update the data, you can update it on the server. Also it can be of two type
Your app will load the page from remote server, using the url
Your app will download the page to iOS device and display it from there, until a new change occurs.
If you are interested in HTML and CSS, PhoneGap is another cross platform, that can also help you.
for rapid devlopment you can use python django... in your case you can use Django-tastypie for backend will be good choice.since using django you can develop it in quick time and the tastypie has api services which can used easily for retrieval and sending data
you can go through this
http://django-tastypie.readthedocs.org/en/latest/