This file contains 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> | |
<!-- Media streaming example "Segment Request Array Insertion." | |
Based on ss-array.html, this is an experiment for inserting an ancillary | |
buffer into a continuous buffer streeam. | |
--> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Segment Request Array Insertion</title> | |
<link href="styles.css" rel="stylesheet"> |
This file contains 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
// Example assumes that playbackRage == 1 | |
function _appendPiece(piece, onQuotaError) { | |
try { | |
sourceBuffer.appendBuffer(piece); | |
} | |
catch e { | |
if (e.name !== 'QuotaExceededError') { throw e; } | |
onQuotaError(e); | |
} |
This file contains 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
// Example assumes that playbackRage == 1 | |
function _appendPiece(piece, onQuotaError) { | |
try { | |
sourceBuffer.appendBuffer(piece); | |
} | |
catch e { | |
if (e.name !== 'QuotaExceededError') { throw e; } | |
onQuotaError(e); | |
} |
This file contains 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
/** | |
* @author ebidel@ (Eric Bidelman) | |
* License Apache-2.0 | |
*/ | |
// Drop this in the DevTools console: | |
(new ReportingObserver((reports, observer) => { | |
console.warn('This page is using deprecated APIs or features:'); | |
const deprecations = reports.map(report => { |
This file contains 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
Changes to be committed: | |
modified: ../.github/pull_request_template.md | |
modified: ../app.yaml | |
modified: images/lockup.svg | |
renamed: site/_data/authors.json -> site/_data/contributors.json | |
modified: site/_includes/codelab.njk | |
modified: site/_includes/components/Author.js | |
modified: site/_includes/components/AuthorInfo.js | |
modified: site/_includes/components/Compare.js |
This file contains 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
Next, create a new file in this directory called `manifest.json`. This JSON object describes the extension's | |
capabilities and configuration. For example, most manifest files contain an `"action"` key which declares | |
the image Chrome should use as the extension's action icon and the HTML page to show in a popup when the | |
extension's action icon is clicked. | |
Add the following code: | |
```json | |
... | |
``` |