background preloader

jQuery webcam plugin - Code is Poetry

jQuery webcam plugin - Code is Poetry
The jQuery webcam plugin is a transparent layer to communicate with a camera directly in JavaScript. As there is native support for webcams in modern browsers, it would be great if you could add this feature to the project and use the flash-version as a fallback for older ones. I don't have time for this project at the moment, so a pull request would be great! Overview This plugin provides three different modes to access a webcam through a small API directly with JavaScript - or more precisely jQuery. jQuery webcam example error: No camera was detected. Available Cameras If you activate the filter with the button on the right side of the picture, methods of my already published jQuery plugin xcolor will be used to distort the colors of the Canvas. General information about the interface The following snippet describes the interface of the webcam API: Config Parameter widthThe width of the flash movie. heightThe height of the flash movie. Callback Interface Save Interface webcam.save('/upload.php');

jQuery Webcam, contrôler une webcam en Javascript De nos jours, les webwares deviennent interactifs et sociaux. Il n’est pas rare que les utilisateurs soient amenés à se servir de leur webcam pour communiquer. Mais l’intégration de fonctionnalités tirant partie d’une webcam n’est pas une chose aisée. jQuery Webcam est un plugin jQuery qui permet de créer une interface transparente pour communiquer avec une caméra directement en Javascript. Le script est construit sur une couche en Flash ou HTML5, qu’il contrôle directement afin d’afficher ou manipuler les images issues de la webcam. Le plugin est capable de streamer les images, d’en faire des captures et de les stocker sur un serveur distant. L’appel est on ne peut plus simple. Bien entendu, les possibilités de personnalisations et de paramétrage sont nombreuses. Un très bon plugin qui permet d’ajouter très rapidement et sans gros développement des fonctionnalités multimédia à son site ou son webware. Téléchargez le plugin jQuery Webcam

Controlando nuestra WebCam con HTML5 Un sencillo ejemplo en el que accedemos a nuestra WebCam lo que nos permitirá convertir nuestro navegador web en una cámara de fotos utilizando únicamente HTML5, JavaScript y Canvas. Esto es posible gracias al desarrollo de la API getUserMedia, la cual aún no es soportada en todos los navegadores. Gracias a getUserMedia podremos acceder no solo al control de nuestra cámara sino también al del microfóno, aunque debemos tener en cuenta que la especificación todavía se encuentra en fase de desarrollo (la última actualización del borrador se dio el 12 de diciembre). El mayor inconveniente es el lento soporte que está recibiendo esta API, lo que siginifica que esta aplicación ni siquiera es compatible con muchos de los navegadores modernos. Respecto a Firefox, a día de hoy la gente de Mozilla aún no ha desarrollado la interfaz de usuario para la solicitud de activación de la cámara/micrófono. En realidad el código es más sencillo de lo que podría parecer.

comment installer une webcam sur un site internet Installer une webcam sur votre site Pour installer une webcam sur un site internet il vous faudra le matériel ci-dessous : - un ordinateur pentium 3 minimum - une webcam pour capturer les images - un logiciel html pour réaliser la page web qui comprendra l'image de la webcam - un hébergeur internet pour stocker les images capturés - le logiciel java d'installé, si vous ne l'avez pas cliquer içi - un logiciel spécialisé de webcam içi "easy free webcam" En admettant que vous ayez le matériel nécessaire on peut passer à la première étape : télécharger easy free webcam sur le site de l'éditeur. Une fois le téléchargement terminé, vous pouvez installer le logiciel et redémarrer ensuite l'ordinateur ! On peut commencer à configurer le logiciel, s'il n'est pas lancé aller dans > démarrer > tous les programmes > easy free webcam Pour configurer le logiciel vous devez aller dans l'onglet "ftp" et remplir les champs comme ci-dessous : après la balise <head> le code suivant : exemple

Capturing Audio & Video in HTML5 Many browsers now have the ability to access video and audio input from the user. However, depending on the browser it might be a full dynamic and inline experience, or it could be delegated to another app on the user's device. On top of that, not every device even has a camera. So how can you create an experience that uses a user generated image that works well everywhere? Start simple and progressively If you want to progressively enhance your experience, you need to start with something that works everywhere. Ask for a URL This is the best supported but least satisfying option. Though, if you want to manipulate the image in any way, things are a bit more complicated. File input You can also use a simple file input element, including an accept filter that indicates you only want image files. This method works on all platforms. <input type="file" accept="image/*" id="file-input"><script> const fileInput = document.getElementById('file-input'); Drag and drop Paste from clipboard if (file ! Tips

Javascript: Rafraichissement d' image. | CommentCaMarche Crée une page HTML dans laquelle tu places le codeci-dessous. Crée deux images dans le même répertoire que cette page. Nommes-les "green.gif" et "red.gif". Pour changer la source d'une image, donne un id à ta balise image: <img id="img_01" /> et utilises la fonction suivante Javascript pour la modifier: document.all("img_01").src="uneimage.gig" où "img_01" est l'id de l'image et "uneimage.gif" est le fichier contenant l'image à afficher. <html> <head> <title>Untitled</title> <script> var firstImage; var secondImage; function loadImages(){ firstImage=new Image(); firstImage.src="red.gif"; secondImage=new Image(); secondImage.src="green.gif"; } function showImages(){ document.all("img_01").src=firstImage.src; } loadImages(); </script> </head> <body> <img id="img_01" onMouseOver="javascript:this.src=secondImage.src" onMouseOut="javascript:this.src=firstImage.src"/> <script>showImages();</script> </body> </html> ;-) HackTrack

Acceder a webcam y micrófono con HTML5 En este artículo te expondré una de las características de HTML5 más potentes: la capacidad de acceder a dispositivos como webcam y micrófono. El ejemplo que usaré es uno de los que expuse en uno de mis seminarios y que forma parte de los ejemplos de HTML5 y CSS3 para descargar aunque explicado en detalle. Ver ejemplo completo Funciona 100% en Chrome El ejemplo pretende que recojamos el audio y vídeo de nuestro dispositivo y los mostremos en un elemento video de HTML5. No es demasiado práctico pero servirá para comprender el funcionamiento. <! Acceso a dispositivos con HTML5 HTML5 nos permite acceder, siempre que el navegador lo permita, a dispositivos como webcam y micrófono a través del método getUserMedia. Como ves comprobamos que cada motor (webkit, microsoft, gecko) puede tener su propio método getUserMedia. navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia; Rating: 8.3/10 (9 votes cast)

jQuery API Real-time synchronous multiplayer 3D gaming with HTML5 - The Artillery Blog by Ian Langworth 14 May 2012 Six weeks ago we set out to see if we could build a real-time, “twitch” 3D game in the browser using HTML5. We built a few games and were pleasantly surprised with what we achieved. You can test one of our creations here: Air Hockey Graphics WebGL has pretty good browser support at the moment, and three.js is an essential library because of the WebGL boilerplate it handles for you. Many of the examples make use of stats.js and dat.GUI for monitoring the frame rate and adjusting settings, which are good tools to include when developing your game. dat.GUI was especially helpful in fine-tuning our latency compensation algorithm and tweaking the game’s appearance, such as light strength and other material properties. We bought the air hockey, mallet and puck models from TurboSquid, and getting them into the browser was easy thanks to three.js’s Blender exporter plugin, which exports Blender scenes as JSON. Networking Of course, latency complicates this process.

Javascript - Manipulation des contrôles clavier | CommentCaMarche Cette astuce a pour but de vous faire découvrir la (ou du moins une) manière de contrôler les évènements clavier en javascript. Cela vous permettra de contrôler/attribuer les/des comportements particuliers à certaines touches du clavier. Techniques pré-requises Avant toute chose, les domaines suivants doivent vous être familiers: Evènements du clavier Voici la liste des évènements possible d'un clavier en javascript. onkeypress : lorsqu'une touche est activée onkeydown : lorsqu'une touche est enfoncée onkeyup : lorsqu'une touche est 'relevée' Pour de plus amples renseignements sur les évènements et leur gestion, vous pouvez consulter la rubrique javascript event Il faut bien noter la différence entre, d'une part 'onkeypress', et d'autre part 'onkeydown' et 'onkeyup' ! Attention cependant, tous les objets HTML ne comprennent pas ces fonctions de type écouteur, pour cela, renseignés vous sur le net avant de vous plonger dans votre code. L'objet 'event' Javascript Page web Fonction applyKey

Building HTML5 Metro Games For Windows 8 About two months ago I did one of my HTML5 game development workshops at Microsoft’s NYC office. It was a huge success with over 100 registered attendees. One of the highlights of my workshop was showing people just how easy it is to build an HTML5 game for Win8 in just a few minutes. Metro HTML5 Apps One of the most exciting aspects of development for Windows 8 is the ability to build a native app using nothing but HTML and JS. As you can see, there are now three pillars for building Win8 apps: C++/XAML, C#/XAML and JS/HTML. In addition to the power of running HTML5 games natively on Win8, Visual Studio 11 also got a huge update to help support building JS applications. Getting Up And Running One of the advantages I had over starting from scratch when it came to making an HTML5 Metro game was the Impact game framework. Once I had a basic Impact game ready to go, it was incredibly easy to get it set up in Visual Studio. Optimization Unfortunately this wasn’t an easy fix. MS-Specific Hacks

Related: