What’s new for Windows 8 Devs Part 3 Lewis Benge Devices & Integration Team TBWA\Digital Arts Network DEV216.

Slides:



Advertisements
Similar presentations
TouchDevelop Create apps ON your phone! Peli de Halleux (Senior Software Developer) Microsoft Research.
Advertisements

BrightAuthor v3.7 software and BrightSign XD v4.7 firmware
TouchDevelop Chapter 5-7 Chapter 5 Audio Chapter 6 Camera, Graphics and Video Chapter 7 Sensors Mengfei Ren.
Lesson 01: The Digital Experience  Transition from traditional devices to multipurpose digital devices. Wired phones move to cell phones and now smart.
Teaching and Learning with Technology  Allyn and Bacon 2002 Digital Technologies in the Classroom Chapter 4 Teaching and Learning with Technology.
INPUT, OUTPUT, And STORAGE DEVICE
Never miss a moment! Photosequence in Windows 8.1 Preview. Building an app using Capture APIs. Camera controls in Windows 8.1 Preview. Adding custom.
Audio Basic Concepts. Audio in Multimedia Digital Audio: Sound that has been captured or created electronically by a computer In a multimedia production,
Programming with touchdevelop touchdevelop introduction Disclaimer: This document is provided “as-is”. Information and views expressed in this document,
COMPUTER CONCEPTS Computer Information Systems. COURSE COMPETENCIES Explain the functions of computer system components. Describe the information processing.
Windows 8 Tips & Tricks for XAML based Windows Store App Ronnie Saurenmann Microsoft
Discovering Computers: Chapter 1
Microsense Webcast Streaming Solutions
One App for All Coding for different iOS variants Mike Oliver iOS Team Lead
DeVry University Donelle Vance. GRAB - The Cross Platform iPhone, iPad & Android Phone Sharing Application August 2011.
Android Application Development. Agenda  Android Business Model  Why Android  Android application market space  Market Segments & Target customers.
Droid by Motorola with Google. 2 Droid / Google Experience Gmail –Is not required to purchase Google experience devices, but should be activated to experience.
Input Devices Image Capture Devices, Sound Capture Devices, Remote Controls PREPARED & PRESENTED BY: FAHAD AHMAD KHAN.
Parts of a Computer.
Introduction ‘Have you ever played video games before? Look at the joystick movement. When you move the joystick to the left, the plane on the TV screen.
 Captures screen activity and synchronized audio.  Allows you to share info with people not able to attend session.  Customers can view recording at.
Session 1.1. Windows Phone Topics Session 1.1 Windows Phone The Windows Phone Device.
Advanced Windows 8 Apps Using JavaScript Jump Start Exam Prep Advanced Windows 8 Apps Using JavaScript Jeremy Foster Microsoft Developer Evangelist.
Digital Literacy.
Windows 8 empowers you to build apps that can seamlessly adapt to your customer’s environment using sensors and location.
CHAPTER 2 Input & Output Prepared by: Mrs.sara salih 1.
Python for S60 SmartPhones PostPC Workshop Fall 2006 Amnon Dekel.
Muhammad Tehseen Qureshi.  What is input?  Input device is any hardware component that allows users to enter data and instructions  Data or instructions.
Creating apps that use video and audio
CS378 - Mobile Computing What's Next?. Fragments Added in Android 3.0, a release aimed at tablets A fragment is a portion of the UI in an Activity multiple.
TouchDevelop Create apps for all your devices
Integrate your game with Windows platform Vladimir Kolesnikov Technical Evangelist
Using Referral Marketing. Iphone 3G is the latest Iphone, and, using referral marketing, they’re available free.
Wireless iPhone uses quad-band GSM, the global standard for wireless communications. It also supports Cingular’s EDGE network, b/g Wi-Fi, and Bluetooth.
CamRanger CamRanger is a stand-alone device that connects to select Canon and Nikon DSLR cameras with a provided USB cable. It creates an ad-hoc WiFi network.
Take a leap towards the most promising technology
Chapter 5 Input By: Matthew D McCoog What Is Input? Any data or instructions entered into the memory of a computer.
Research For Both Hardware And Software Required In Digital Graphics. By Joanne Hocking.
Digital Technologies in the Classroom Chapter 4 Teaching and Learning with Technology.
Creating Multimedia Interaction with Windows Media Technologies 7.
UX design for Google Glass Alena Kovárová PeWe Seminar
Your Metro style app, video and audio, Part 1
COMPUTER PARTS AND COMPONENTS INPUT DEVICES
Input By Hollee Smalley. What is Input? Input is any data or instructions entered into the memory of a computer.
KSU EDCI 763: ID Fall 2010 Harris Instructional Design Statement of Purpose, Needs Analysis, and Task Analysis.
AgileZoom 1.3 interactive portfolios you can share Getting Started (swipe left to advance)
Computer main parts BY: JUAN DAVID MAYA STUDENT OF SYSTEM CESDE.
COMPUTER BASICS Lesson 2: Input Devices
Easy programmatic access to the file system, file type associations, and new system UI controls for opening files Simple integration with the file.
Multimedia Capture & storage. Introduction A rich set of API for recording of audio & video. A developer has two choices  launch the built-in app using.
Functions and Features: Advantages : Disadvantages and Limitations : Price:
A CCELEROMETER. Accelerometers are devices that can measure acceleration, but in smartphones, they're able to detect changes in orientation and tell the.
The ambient light sensor in a smart phone is what measures how bright the light is. It’s the phones software that adjusts the brightness in the display.
Chapter 2 HAEDWAER.
Digital Literacy: Computer Basics
What is Input?  Input  Processing  Output  Storage Everything we enter into the computer to do is Input.
IPad Basic Training Everything you wanted to know but were afraid to ask a 3-year-old.
By Mulco Dan Theoretical Lyceum « Orizont » Durlesti February 2014.
Understanding Mobile Devices, Interactions, and Tools Lesson 1.
JavaScript 사용현황 김민철. Table of contents  1. Mobile  WAC  PhoneGap  AppsPresso  2. TV  Samsung Smart TV  KT IPTV  3. 기타  node.js 2.
Exploring Microsoft Windows 8 Chapter 1 Getting Started with Windows 8 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.
Building Windows Phone 7 Games and Applications Yes, yes! “Games and Applications” and not “Applications and Games” Content is under NDA – please do no.
Advanced Windows 8 App Development Using JavaScript Jump Start Exam Prep M2: Hardware and Sensors Michael Palermo Microsoft Technical Evangelist.
2N IP Intercoms Advanced Settings 2017.
Accessing the device native APIs
Windows Phone 8.1 New Features
Mobile Operating Systems and Connectivity
Integrating with the Windows Device Experience
Architecting and integrating sensor drivers
Using connected devices in Metro style apps
Presentation transcript:

What’s new for Windows 8 Devs Part 3 Lewis Benge Devices & Integration Team TBWA\Digital Arts Network DEV216

Camera

Snap a picture, record video and audio. Capture Windows.Media. Input and output audio devices such as Bluetooth. Devices Work with audio playlists. Playlists Stream media to a television or audio system. PlayTo Use PlayReady or other content protection systems. Protection Convert music or video to other formats or resolutions, trim, or make effects permanent. Transcoding Insert or remove well-known video effects. VideoEffects CameraCaptureUI MediaCapture Camera Capture UI  Similar to ‘pick’ photos or videos from the file system  Built-in camera control with pre-defined user workflow Media Capture API  You control every pixel on screen  Custom User Experience and workflow

You control every pixel on screen Custom User Experience and workflow Enumerate cameras Support various formats: MP4, WMV, M4A, MP3, WMA (Additional formats possible through extensions) Allow various encoding settings Media Capture Built-in camera control with pre-defined user workflow Similar to ‘pick’ photos or videos from the file system Specify quality of capture Set Timers Adjust settings, including IHV settings CameraCaptureUI

demo

Accessing Camera and Mic from your app // Application manifest capabilities required to access camera and microphone

Using the camera to snap a photo (JS) // Step 1: Invoke the camera capture UI for snapping a photo var captureUI = new Windows.Media.Capture.CameraCaptureUI(); captureUI.captureFileAsync(Windows.Media.CameraCaptureUI.Mode.photo). then(function(capturedItem) { if (capturedItem) { // Step 2: Display the photo document.getElementById(“imagedisplay”).src = URL.createObjectURL(capturedItem); } else { document.getElementById(“message”).innerHTML = “User didn’t capture a photo”; } });

Using the camera to record a video (JS) // Step 1: Invoke the camera capture UI for record a video var captureUI = new Windows.Media.Capture.CameraCaptureUI(); captureUI.captureFileAsync(Windows.Media.CameraCaptureUI.Mode.video). then(function(capturedItem) { if (capturedItem) { // Step 2: Display the video document.getElementById(“videoplayback”).src = URL.createObjectURL(capturedItem); } });

demo

Starting preview on a function initializeMediaCapture() { // Step 1: create Media Capture object var mediaCaptureMgr = new Windows.Media.Capture.MediaCapture(); mediaCaptureMgr.initializeAsync().then( function (op) { // Step 2: Update the source of document.getElementById(“preview").src = URL.createObjectURL(mediaCaptureMgr, false); // Step 3: Start displaying the camera feed document.getElementById(“preview").play(); }); }

Recording a video Windows.Storage.KnownFolders.videosLibrary.createFileAsync("cameraCapture.mp4", Windows.Storage.CreationCollisionOption.generateUniqueName).then(function (newFile) { storageFile = newFile; encodingProfile= Windows.Media.MediaProperties.MediaEncodingProfile.createMp4( Windows.Media.MediaProperties.VideoEncodingQuality.auto); mediaCaptureMgr.startRecordToStorageFileAsync(encodingProfile, storageFile).then( function (result) { // recording, eventually stop it. // mediaCaptureMgr.stopRecordAsync(); }, errorHandler); }, errorHandler);

Capture Audio Windows.Storage.KnownFolders.videosLibrary.createFileAsync("cameraCapture.m4a", Windows.Storage.CreationCollisionOption.generateUniqueName).then(function (newFile) { storageFile = newFile; encodingProfile = Windows.Media.MediaProperties.MediaEncodingProfile.createM4a( Windows.Media.MediaProperties.AudioEncodingQuality.auto); mediaCaptureMgr.startRecordToStorageFileAsync(encodingProfile, storageFile).then( function (result) { //recording, eventually stop it.. mediaCaptureMgr.stopRecordAsync(); }, errorHandler); }, errorHandler);

Ambient Light Sensor Motion Sensor Fusion (Accelerometer, Magnetometer, Gyroscope) Windows Location Provider GPS (If mobile broadband hardware is present) Tablet and convertible standard equipment:

Location

Declare the need for Geolocation // Application manifest capabilities required // to access Geolocation in your app

GeoLocation using Windows API var loc; loc = new Windows.Devices.Geolocation.Geolocator(); //One-time loc.getGeopositionAsync().then(getPositionHandler); loc.addEventListener("positionchanged", function () { getPositionHandler ( args.position);}); function getPositionHandler(pos) { var lat = pos.coordinate.latitude; var long = pos.coordinate.longitude; var acc = pos.coordinate.accuracy; }

demo

Sensors

ShakeRotateFlip

DarkIndoorsOutdoors

Simple Data Simple Device Orientation Sensor Fusion Data Compass Inclinometer Device Orientation Light Sensor Accelerometer Raw Sensor Data Gyro

Accelerometer Sample Code var accelerometer; accelerometer = Windows.Devices.Sensors.Accelerometer.getDefault(); accelerometer.addEventListener("readingchanged",onAccReadingChanged); function onAccReadingChanged(e) { var accelX = e.reading.accelerationX; var accelY = e.reading.accelerationY; var accelZ = e.reading.accelerationZ; }

3D Accelerometer 3D Gyro 3D Magnetometer Pass-Through Accelerometer Gyro Sensor Fusion Compass Inclinometer Device Orientation

ST Microelectronics eMotion Development Board

NFC

Windows.Networking. BackgroundTransfer Retrieves connection profiles (mobile broadband) Connectivity Mobile broadband account managementNetworkOperations Proximity devices in close range Proximity Encapsulates push notificationPushNotifcations Native web and TCP/UDP socket support Sockets Enables advance download and upload transfer

Determine when an NFC device enters (JS) function initializeProximityDevice() { var proximityDevice = Windows.Networking.Proximity.ProximityDevice.getDefault(); proximityDevice.addEventListener("devicearrived", proximityDeviceArrived); proximityDevice.addEventListener("devicedeparted", proximityDeviceDeparted); } function proximityDeviceArrived() { id("messageDiv").innerHTML += "Proximate device arrived. id = " + device.deviceId + " "; } function proximityDeviceDeparted() { id("messageDiv").innerHTML += "Proximate device departed. id = " + device.deviceId + " "; }

demo

Touch

Press and hold to learn Tap for primary actionSlide to dragSwipe to select Pinch to zoom Swipe from edge for app and system UI Rotate to rotate

“Code for touch, get mouse and pen for free!”

API surfaceCSS PropertiesDOM AttributesDOM Events Scrolling overflow -ms-scroll-rails -ms-scroll-snap-x -ms-scroll-snap-y -ms-scroll-chaining -ms-scroll-boundary scrollLeft scrollTop scroll Zooming -ms-content-zooming -ms-content-zoom- boundary -ms-content-zoom-snap msContentZoomFactorMSContentZoom BothMSManipulationStateChanged Snap-points -ms-scroll-snap-type -ms-scroll-snap-point-x

Other devices

Enumeration Windows.Devices. Geolocation Provides support for identifying the input devices. Input Identifies Windows Portable Device (WPF) services Portable Print task configuration and print notifications Printers Access to supported sensors and motion data Sensors Ability to send, receive, and delete SMS messages. Sms Enables app developers to easily access the computer’s geographic location. Device discover and notifications about devices.

Hardware recap