14. 相互運用性への意気込み
In cases where these changes necessarily differ
from standards, we’re following through with
standards bodies and other browsers to update
specs and implementations to reflect the
interoperable behavior.
IEBlog – “Living on the Edge – our next step in helping the web just work”
(November 12, 2014 ) より抜粋
20. Microsoft Edge の新機能
JS
DOM グラフィックス JavaScript
セキュリティネットワークメディア
Windows 10 版 Microsoft Edge
開発者向けガイド
http://bit.ly/msedge_devguide
21. Game Pad API
~ゲームパッドでの操作を可能にする機能 ~
//ゲームパッドの ID を取り出す
function controlLoop() {
var gamepads = navigator.getGamepads();
var length = gamepads.length;
for (var i = 0; i < length; i++) {
var pad = gamepads[i];
if (pad) {console.log(pad.id);}
}
window.requestAnimationFrame(controlLoop);
}
window.requestAnimationFrame(controlLoop); //ループ処理
XInput 対応の
ゲームパッドが必要
22. Media Capture and Stream
~ カメラやマイクにアクセスする機能~
//Web Cam を起動して映像を表示
navigator.getUserMedia({video: true}, function (stream){
if (typeof (video.srcObject) !== 'undefined'){
video.srcObject = stream;
} else {
video.src = URL.createObjectURL(stream);
}
}, onFailSoHard);
23. Web Audio API
~ 音声を処理・合成するための機能 ~
//オーディオファイルの再生
var audioCtx = new AudioContext();
audioCtx.decodeAudioData(xhr.response,
function (buffer) {
var source = audioCtx.createBufferSource();
source.buffer = buffer;
source.connect(audioCtx.destination);
source.start(0);
});