background preloader

Programming

Facebook Twitter

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. La única estructura necesaria en HTML es la siguiente: <! 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. Perfecto, ahora pedimos acceso al dispositivo: Rating: 8.3/10 (9 votes cast) Te puede interesar: 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. 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). Podéis encontrar toda la documentación oficial en la página de W3C. 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. jQuery webcam plugin. 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. Thus, it is possible to bring the image on a Canvas (callback mode), to store the image on the server (save mode) and to stream the live image of the Flash element on a Canvas (stream mode). 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 Config Parameter. 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. It has a clean API, built-in functionality, and community support, but documentation is sparse. However, there are so many examples that you’ll inevitably find one which shows how to build what you’re trying to do. 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.

Networking JavaScript Lessons learned. 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. By leveraging the Impact game framework, it is easy and fun to build a Metro game with very little modification to the core source code. I figured I would go through what I did before the workshop to get Super Resident Raver, a modified version of the game I show people how to build in my workshops and book, running on Win8. 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.

Getting Up And Running Once I had a basic Impact game ready to go, it was incredibly easy to get it set up in Visual Studio. Optimization and. 10 cool HTML5 games and how to create your own. Thanks to Apple dropping support for Flash on iOS, HTML5 has gained a lot of traction and is getting very popular. For games, HTML5 (understand canvas and a lot of javascript) is slowly replacing Flash on online gaming websites and mobile games. I have done in this post a selection of cool and popular HTML5 games, maybe it will give you some motivation to create your own. 10 cool HTML games A list of pretty cool games, make sure to check out the source to understand how they work. 1.

Control two characters at the same time and try to let them meet. 2. Defend your planet against incoming meteorites. 3. Addicting simple game where you race with a stick figure in levels designed by other users. 4. Your hero has fallen into a sinkhole and has a broken arm. 5. Not exactly a game, but a game emulator that gives you access to old games that you’ve probably missed. 6. A shoot-em-up with cool isometric 3D graphics. 7. A game created by Kevin Roast. 8. 9.

A pretty entertaining tower defence game. HTML5 Multiplayer Game Development. Building a 3D engine in HTML5. Boxbox - javascript physics made easy. What is boxbox? Boxbox is a fun and simple framework for making games with the box2d physics engine. no, i mean really, what is it boxbox is a framework for box2dweb, a JavaScript port of box2dflash, an ActionScript port of box2d, a C++ library. The box2d physics engine is hard to use for a beginner.

Further, its C++ style API doesn't make sense to JavaScript programmers. boxbox tries to solve both problems while adding its own sugar along the way. features simple API work with entities rather than fixtures, bodies, and shapes attach events to entities rather than the whole world reuse common configuration among similar entities built in canvas rendering with image support demos. RequireJS. Closure Tools. What is the Closure Compiler? The Closure Compiler is a tool for making JavaScript download and run faster. Instead of compiling from a source language to machine code, it compiles from JavaScript to better JavaScript. It parses your JavaScript, analyzes it, removes dead code and rewrites and minimizes what's left.

It also checks syntax, variable references, and types, and warns about common JavaScript pitfalls. How can I use the Closure Compiler? You can use the Closure Compiler as: An open source Java application that you can run from the command line. To get started with the compiler, see "How do I start" below. What are the benefits of using Closure Compiler?

Efficiency. Grunt: The JavaScript Task Runner. HTML5 Game Starter Kit for Windows 8. Hildebrando.html. Windows Phone Dev Center. Windows Phone Dev Center. Home | MS OpenTech. Windows Phone Dev Center. Learn to develop for Windows Phone 8 in one weekend with Channel 9. You can never have too many hobbies. You also shouldn’t be living life not accomplishing goals you’ve set for yourself in concrete or passing. Learning how to develop is rewarding in and of itself. But once you learn how to develop there isn’t much standing between you and apps you want to use that don’t exist yet. Odds are you’re reading this on a Windows Phone device, so why not combine all these little things and learn how to develop apps for Windows Phone 8? You can with this new beginners series on Channel 9. Channel 9 is Microsoft’s community site for developers.

If you want to develop for Windows Phone 8 there’s a new series called Windows Phone 8 Development for Absolute Beginners. Before we bake a cake, we need to make sure we have all the ingredients. Other than that, you’ll basically need to be on a machine that has Windows 8 installed. The video series on Channel 9 is presented was put together by Bob Tabor, Clint Rutkas, and Larry Lieberman. Ready, set, learn. Windows Phone: Maximizing App Revenue | Build 2013. Channel9's Absolute Beginner Series - Download: Windows Phone 8. Creating a New Cocos2d-x Project for Windows Phone 8. This article explains how to create a new Cocos2d-x project for Windows Phone 8. Archived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

This article was created for cocos2d-x v2.0.3 beta port for Windows Phone. While the approach for creating new projects remains similar, newer integrations you should follow the official cocos2d-x instructions at cocos2d-x environment setup Introduction Cocos2d-x is a very popular 2D game framework. You can download the Cocos2d-x Windows Phone 8 variant from their website. You can import the Cocos2d-x project to Visual Studio, but soon you'll notice that the whole framework is actually built inside a HelloWorld application. Setting up the project Download the Cocos2d-x Windows Phone 8 version. Cocos2d-x Application Structure. Porting Cocos2d-x Games for Windows Phone 8. This article shows how to port existing Cocos2d-x games for Windows Phone 8 with an example game.

Note that it uses the instructions in Creating a New Cocos2d-x Project for Windows Phone 8, which explain how to add Cocos2d-x to your Windows Phone 8 project and prepare a "bare bones template" suitable for creating a new game of copying in the resources of the game you want to port. Introduction This article will demonstrate how to port existing Cocos2d-x games to Windows Phone 8 by porting the game Tweejump. Tweejump is a platform jumper game, where you have to tilt your phone to control the character. Currently the Cocos2d-x port for WP8 doesn't have support for accelerometer sensor, but we'll be adding that support to the game by ourselves.

TweeJump in Github License: The code is released under the MIT License. All images are copyrighted by Sergey Tikhonov. You can download the TweeJump project windows phone 8 project from Preparation Adding the code. Download. Issues Tracker Password Forgot? Download Cocos2d-x Written in C++ and OpenGL ES 1.1/2.0, runs on iOS, Android, BlackBerry, Bada, Marmalade, Windows, Windows Phone, Linux and more. Download v3.0 Download v2.2.3 Looking for an older version? Cocos2d-JS Include Cocos2d-html5 and Cocos2d-x javascript binding.

Download v3.0alpha2 Download v2.2.3 Download Builder Looking for an older version? CocoStudio A game development tool kit based on Cocos2d-x, containing UI Editor, Animation Editor, Number Editor, Number Cruncher, and Scene Editor. Download v1.3.0.1 V1.3.0.1 + Cocos2DX 2.2.3 V1.3.0.1 + Cocos2D-X 3.0 Looking for an older version? Copyright © 2010 - 2013 Cocos2d-x.org Follow us: Design principles. Microsoft ist bei der Technologie in vielen Bereichen und mit einer Vielzahl von Produkten schon lange führend. Vor Kurzem führten dann Veränderungen dazu, dass das Design noch stärker in den Mittelpunkt rückte. Auslöser dieser Veränderungen waren ansteckende, aufregende Ideen basierend auf einem soliden Fundament, umfassenden Möglichkeiten und dem Gefühl, dass alles andere einfach antiquiert erschien. Die Grundlagen dieser Veränderungen waren der Ausgangspunkt unserer Microsoft-Designprinzipien.

Grundlagen des modernen Designs Es erscheint zwar angebracht zu sein, unser modernes Design als "flaches Design" zu bezeichnen, aber dabei würde ein Großteil der Tiefe, des Charakters und des Hintergrunds verloren gehen. Unsere Designsprache basiert auf drei unterschiedlichen Säulen. Bauhaus: Ab 1919 fördert diese Ikone der Designschulen eine mitreißende Designphilosophie: radikale Reduktion auf die Kernfunktionen, Beseitigung überflüssiger Zusätze und Schönheit durch Einfachheit. Windows Store App Design – Windows Dev Center. Envisioning Plan up front to create a winning vision and design a fluid, responsive app. Visual identity Define and deliver a powerful visual experience for your brand and your app. Guidelines Browse the comprehensive list of UX guidelines for layout, controls, user interactions, text, and more. Downloads Get the templates for Adobe Illustrator, Adobe Photoshop, Balsamiq, and PowerPoint.

Color Reflect your app's personality with the colors you choose. Edges Swipe from the edges to access commands, navigation, charms, and apps. Live tiles Invite users into your app with a fresh, alive, up-to-date tile. What's new in Windows Phone 8. Speech Enabled Calculator For Windows Phone 8. How do our favorite tech companies make money? Nokia Developer - Your idea. Our tools. Mod 01a: Introducing Windows Phone 8 Development | P1.

JavaScript API for Office. MPP Viewer. Chuleta de comandos para Git. DevDocs. Blakeembrey/code-problems.