-
At what level should Media Focus be requested and granted/revoked?
- Per Tab(s)
- Per Origin(s)
- Per Document(s)
- Per Media Grouping(s)
- Per Media Object(s)
- Per Media Grouping(s)
- Per Document(s)
- Per Origin(s)
- Per Tab(s)
-
High-level vs. Low-level scope - what are the pros and cons of setting the media focus scope at these different levels? Do we want audio focus to be set and applied implicitly to tab/document/origin content or explicitly to in-page media groupings or elements?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* DOM Element constructor helper class. | |
* | |
* Usage: | |
* ------- | |
* var newDiv = Element.create('div'); | |
* var newDiv = Element.create('div', {text: "Hi"}); | |
* var newDiv = Element.create('div', {text: "Hi "}, [ | |
* Element.create('span', {style: 'color: #CC0000', html:"<b>you</b>"}, [ | |
* // Infinitely chainable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* OrientationChange Event Shim | |
* http://github.com/richtr | |
* | |
* Copyright (c) 2012, Rich Tibbett | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* <style scoped> shim | |
* http://github.com/richtr | |
* | |
* Copyright 2012 Rich Tibbett | |
* Released under the MIT license | |
* http://opensource.org/licenses/MIT | |
* | |
* Date: 8th November 2012 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Pure P2P messaging channel establishment: Advertiser</title> | |
</head> | |
<body> | |
<h1>Pure P2P messaging channel establishment: Advertiser</h1> | |
<script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>BroadcastWebSocket usage demo</title> | |
</head> | |
<body> | |
<h1>BroadcastWebSocket usage demo</h1> | |
<script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>BroadcastWebSocket usage demo</title> | |
</head> | |
<body> | |
<h1>BroadcastWebSocket usage demo</h1> | |
<script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* Normal method w/ inline conditional statements placed within each render loop | |
* | |
*/ | |
var myVariable = true; | |
function normalLoop() { | |
if ( myVariable === true ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- AppleScript that mounts an AFP service (e.g. a Synology NAS Diskstation) then | |
-- searches for any .avi or .mkv files in the requested volume and converts all | |
-- the files it finds to .mp4 via HandbrakeCLI (which must be installed on your | |
-- machine at /Applications/HandbrakeCLI) | |
-- IMPORTANT: You may need to make sure your NAS does not sleep until ~4 hours of | |
-- inactivity has passed so it doesn't interrupt the mp4 conversion process of | |
-- this script. | |
-- Based loosely on the script published at http://cybernetnews.com/batch-convert-videos-handbrake-applescript/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* DeviceOrientation and DeviceMotion Events Detection API | |
* | |
* Example API Usage (Promise-based API): | |
* | |
* supportsDeviceOrientationEvents().then(function() { | |
* console.log("Platform DeviceOrientation Events support OK"); | |
* }, function(error) { | |
* console.error("Platform DeviceOrientation Events support KO"); | |
* }); |
OlderNewer