<div class="simplebox">
<img src="vrheadset-boy.png" class="slidepic"
- alt="A-Frame - aframe-io">
+ alt="Boy with VR headset">
<ul>
<li>WebXR - <mark>Virtual & Augmented Reality</mark> (WebVR & AR)</li>
<li><a href="https://research.mozilla.org/mixed-reality/">research.mozilla.org/mixed-reality</a></li>
Example:
<pre>
<<mark>a-scene</mark>>
- <a-sphere position="0 1.25 -1" radius="1.25" color="#EF2D5E"></a-sphere>
- <<mark>a-cube</mark> position="-1 0.5 1" rotation="0 0 0" width="1" height="1" depth="1" color="#4CC3D9">
- <<mark>a-animation</mark> attribute="rotation" repeat="indefinite" to="0 360 0"></a-animation>
+ <a-sphere <small>position="0 1.25 -1" radius="1.25" color="#EF2D5E"</small>></a-sphere>
+ <<mark>a-cube</mark> <small>position="-1 0.5 1" rotation="0 0 0" …</small>>
+ <<mark>a-animation</mark> <small>attribute="rotation" … to="0 360 0"</small>></a-animation>
</a-cube>
- <a-cylinder position="1 0.75 1" radius="0.5" height="1.5" color="#FFC65D"></a-cylinder>
- <a-plane rotation="-90 0 0" width="4" height="4" color="#7BC8A4"></a-plane>
- <a-sky color="#ECECEC"></a-sky>
+ <a-cylinder <small>position="1 0.75 1" …</small>></a-cylinder>
+ <a-plane <small>…</small>></a-plane>
+ <a-sky <small>color="#ECECEC"</small>></a-sky>
</a-scene>
</pre>
<p><a href="https://codepen.io/mozvr/pen/jqERjQ">edit/view</a>
</article>
<article id="codecs" data-title="Open Media Codecs">
-<h1><span>Open Media Codecs - Daala & AV1</span></h1>
+<h1><span>Open Media Codecs</span></h1>
<div class="simplebox">
<img src="av1-comingsoon.png" class="slidepic" alt="AV1 - Coming Soon">
<li>Next target: do the same with video</li>
<li>Mozilla/Xiph: Daala + Google: VP9 + Cisco: Thor</li>
<li><a href="http://aomedia.org/">Alliance for Open Media (AOMedia)</a> for collaboration</li>
- <li>AV1 bitstream frozen since April 2018</li>
- <li>Next: De-/Encoding perf, hardware support, ...</li>
+ <li><a href="https://aomedia.org/the-alliance-for-open-media-kickstarts-video-innovation-era-with-av1-release/">Released</a>:
+ AV1 bitstream frozen since March/April 2018</li>
+ <li>Next: Opimized de-/encoders, hardware support, ...</li>
</ul>
<p class="ensurepicinbox"></p>
</div>
function handleKeyPress(e) {
e = e || event;
- switch (e.keyCode) {
+ switch (e.key) {
// See https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode#Constants_for_keyCode_value
- case e.DOM_VK_LEFT:
- case e.DOM_VK_DOWN:
- case e.DOM_VK_PAGE_DOWN:
- case e.DOM_VK_H: //8bitdo Zero "X"
+ case "ArrowLeft":
+ case "ArrowDown":
+ case "Left": // non-standard, old browsers
+ case "Down": // non-standard, old browsers
+ case "PageDown":
+ case "H": //8bitdo Zero "X"
+ case "h": //8bitdo Zero "X"
go("prev"); break;
- case e.DOM_VK_RIGHT:
- case e.DOM_VK_UP:
- case e.DOM_VK_PAGE_UP:
- case e.DOM_VK_J: //8bitdo Zero "B"
+ case "ArrowRight":
+ case "ArrowUp":
+ case "Right": // non-standard, old browsers
+ case "Up": // non-standard, old browsers
+ case "PageUp":
+ case "J": //8bitdo Zero "B"
+ case "j": //8bitdo Zero "B"
go("next"); break;
- case e.DOM_VK_HOME:
+ case "Home":
go("start"); break;
- case e.DOM_VK_END:
+ case "End":
go("toc"); break;
}
}
window.onclick = handleClick;
- window.onkeypress = handleKeyPress;
+ window.onkeydown = handleKeyPress;
})();