HTML5 Sensitivo: Seu browser no plano astral39. eventData = {
alpha: 0.01042012, // graus
beta: 11.34221344, // graus
gamma: 27.102012102, // graus
absolute: true,
... // propriedades de Event
}
Dadosde
deviceorientation
46. eventData = {
interval: 200, // milisegundos
acceleration: {
x: 0.1534532, // metro/s²
y: 3.9876581, // metro/s²
z: 1.0092722 // metro/s²
},
accelerationIncludingGravity: { x, y, z }, // idem
rotationRate: { alpha, beta, gamma } // orientation
... // propriedades de Event
}
Dadosdedevicemotion
67. Dadosde.getCurrentPosition
position = {
timestamp: 307770135, // DOMTimeStamp
coords: {
accuracy: 12, // metros
latitude: -35.29873363499, // graus
longitude: 123.44334887755,// graus
altitude: 400.3, // metros (opcional)
heading: 45.5, // graus (opcional)
speed: 5.4 // m/s (opcional)
}
}
83. // sem prefixos dos vendors
if ( navigator.getUserMedia ){
// câmera, ação!
}
Testeosuporte
111. eventData = {
results: [
{
confidence: 0.61285305,
utterance: ‘praia’
},
...
],
... // propriedades de Event
}
Dadosde
webkitspeechange
120. // sem prefixos dos vendors
if ( navigator.getUserMedia ){
// we got it!
}
Testeosuporte
124. function sucessoCallback( stream ) {
var context = new webkitAudioContext()
var mediaStreamSource = context
.createMediaStreamSource( stream )
mediaStreamSource.connect( filter1 )
...
filter1.connect( context.destination )
}
Callback