From beba354b7e69916ba8ccbe63ffbf39c9cfe35af7 Mon Sep 17 00:00:00 2001 From: ScottDowne Date: Fri, 25 Jun 2010 23:22:30 -0700 Subject: [PATCH] merged, and fixed some merge problems --- popcorn.js | 21 ++++++++++++--------- xml/webMadeMovies.xml | 31 ++----------------------------- 2 files changed, 14 insertions(+), 38 deletions(-) diff --git a/popcorn.js b/popcorn.js index e1ac986..59e0e27 100644 --- a/popcorn.js +++ b/popcorn.js @@ -124,6 +124,7 @@ } } } + // Checkes for a resourceid and gets all the attributes from that resource if (this.params.resourceid) { for (var attributeName in this.videoManager.manifestObjects[this.params.resourceid]) { @@ -211,8 +212,8 @@ // Twitter Command //////////////////////////////////////////////////////////////////////////// - var TwitterCommand = function(name, params, text) { - VideoCommand.call(this, name, params, text); + var TwitterCommand = function(name, params, text, videoManager) { + VideoCommand.call(this, name, params, text, videoManager); // Setup a default, hidden div to hold the feed this.target = document.createElement('div'); this.target.setAttribute('id', this.id); @@ -265,8 +266,8 @@ // Footnote Command //////////////////////////////////////////////////////////////////////////// - var FootnoteCommand = function(name, params, text) { - VideoCommand.call(this, name, params, text); + var FootnoteCommand = function(name, params, text, videoManager) { + VideoCommand.call(this, name, params, text, videoManager); this.onIn = function() { //if the user specifies a target div for this in the xml use it //otherwise make a new div @@ -307,13 +308,13 @@ } }, footnote: { - create: function(name, params, text) { - return new FootnoteCommand(name, params, text); + create: function(name, params, text, videoManager) { + return new FootnoteCommand(name, params, text, videoManager); } }, twitter: { - create: function(name, params, text) { - return new TwitterCommand(name, params, text); + create: function(name, params, text, videoManager) { + return new TwitterCommand(name, params, text, videoManager); } } }; @@ -384,7 +385,9 @@ } } var manager = new VideoManager(video[i]); - parse(xml, manager); + video[i].addEventListener('loadedmetadata', function() { + parse(xml, manager); + }, false); } } }; diff --git a/xml/webMadeMovies.xml b/xml/webMadeMovies.xml index a4ab4aa..464839e 100644 --- a/xml/webMadeMovies.xml +++ b/xml/webMadeMovies.xml @@ -33,7 +33,7 @@ - Hello! My name is Celine Celine + Hello! My name is Celine Celine And I help the Internet be easier by making things easier My name is Mona Kasra @@ -58,10 +58,8 @@ This video made exclusively for drumbeat.org - + - - A Shared Culture, Jesse Dylan Celine Celine @@ -77,29 +75,4 @@ -======= - - Hello! My name is Celine Celine - And I help the Internet be easier - by making things easier - My name is Mona Kasra - and I'm building a better internet - - - Celine Celine - Bryan - Mona Kasra - Caleb - Dave - Noah - Celine Celine - - - - - - - - ->>>>>>> cf9274e39096105186a3a362195e3cea6ea7af49 -- 2.43.0