==Git and Github==
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
public CueTest : public testing::Test | |
{ | |
protected: | |
virtual void LoadVTT( char *fileName, uint expectedNumberOfCues ) | |
{ | |
parser = ItemStorageParser( fileName ); | |
//todo (did it work) | |
ASSERT_TRUE( parser.parse() ); << "parser.parse() failed" |
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
diff --git a/configure.in b/configure.in | |
index 07cffe0..b07885c 100644 | |
--- a/configure.in | |
+++ b/configure.in | |
@@ -4262,6 +4262,7 @@ MOZ_OMX_PLUGIN= | |
MOZ_VP8= | |
MOZ_VP8_ERROR_CONCEALMENT= | |
MOZ_VP8_ENCODER= | |
+MOZ_WEBVTT=1 | |
VPX_AS= |
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
DIFF against humphd/rillian patch, focused on Mozilla build integration | |
diff --git a/content/html/content/public/nsHTMLMediaElement.h b/content/html/content/public/nsHTMLMediaElement.h | |
index e822318..049fb9b 100644 | |
--- a/content/html/content/public/nsHTMLMediaElement.h | |
+++ b/content/html/content/public/nsHTMLMediaElement.h | |
@@ -24,17 +24,17 @@ | |
#include "nsTimeRanges.h" | |
#include "nsIDOMWakeLock.h" | |
#include "AudioChannelCommon.h" |
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> | |
<head> | |
<base href="https://popcorn.webmaker.org/templates/basic/"> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>Popcorn Maker</title> | |
<!-- Other stuff in head... --> | |
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
function safeLookup(obj, propPath, fallback) { | |
fallback = fallback || ''; | |
var props = propPath.split('.'); | |
// Descend obj along the path specified in propPath, but | |
// don't trust that that path is good, and may contain | |
// undefined routes. | |
try { | |
props.forEach(function(prop) { |
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
// MakeDrive API - https://github.com/mozilla/makedrive | |
var MakeDrive = require('./path/to/makedrive.js'); | |
// fs API - https://github.com/js-platform/filer#filer | |
var fs = MakeDrive.fs(); | |
// Use fs right away, with or without network | |
fs.mkdir('/project', function(err) { | |
if(err) throw err; |
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
module.exports = function( grunt ) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON( "package.json" ), | |
jshint: { | |
options: { | |
"-W069": true // ignore "['...'] is better written in dot notation." warnings | |
}, | |
files: [ | |
"Gruntfile.js", | |
"install-webmaker.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
function send(mp3Url, duration) { | |
var url = "ws://your websocket server url here"; | |
var msg = { | |
"play": mp3Url, | |
"duration": duration | |
}; | |
var ws = new WebSocket(url); | |
ws.onopen = function() { | |
if(ws.readyState !== ws.OPEN) { |
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> | |
<head> | |
<meta charset="utf-8"> | |
<title>Bramble Loading in IE</title> | |
<script src="https://mozillathimblelivepreview.net/bramble/dist/bramble.js"></script> | |
</head> | |
<body> | |
<script> | |
document.write(window.Bramble ? "It worked" : "It failed"); |