]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
merged, and fixed some merge problems
authorScottDowne <sdowne@learn.senecac.on.ca>
Sat, 26 Jun 2010 06:22:30 +0000 (23:22 -0700)
committerScottDowne <sdowne@learn.senecac.on.ca>
Sat, 26 Jun 2010 06:22:30 +0000 (23:22 -0700)
popcorn.js
xml/webMadeMovies.xml

index e1ac986509671574c2bef777edd2ee42f44f4ba9..59e0e27d9769e4d8239097938ab6c653006bb73e 100644 (file)
         }
       }
     }
+    
     // 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]) {
   // 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);
   // 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 
       }
     },
        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);
       }
     }
   };
           }
         }
         var manager = new VideoManager(video[i]);
-        parse(xml, manager);
+        video[i].addEventListener('loadedmetadata', function() {
+          parse(xml, manager);
+        }, false);
       }
     }
   };
index a4ab4aa2f9db73d32777314b950996350d6deafc..464839e44f7ca372578ac577a6b250cae7ab184a 100644 (file)
@@ -33,7 +33,7 @@
   </manifest>
   <timeline>
     <subtitles>
-      <subtitle >Hello! My name is Celine Celine</subtitle>
+      <subtitle>Hello! My name is Celine Celine</subtitle>
       <subtitle in="00:00:07:00" out="00:00:09:00">And I help the Internet be easier</subtitle>
       <subtitle in="00:00:09:00" out="00:00:12:00">by making things easier</subtitle>
       <subtitle in="00:00:15:00" out="00:00:17:00">My name is Mona Kasra</subtitle>
       <footnote in="00:00:00" out="00:14:00" target="footnotediv"> This video made exclusively for drumbeat.org </footnote>
     </footnotes>
     <resources>
-      <twitter in="00:00:10:00" out="00:00:30:00" source="#oilspill" target="twitter"/>
+      <twitter source="#oilspill" target="twitter"/>
       <twitter in="00:00:01:00" out="00:00:20:00" source="from:celinecelines" target="twitter"/>
-      <attribution in="00:00:36:00" out="00:40:00" target="map" resourceid="attrib" />
-      <attribution in="00:40:00" out="00:00:42:00" target="map">A Shared Culture, Jesse Dylan</attribution>
     </resources>
     <videotags>
       <videotag in="00:00:03:00" out="00:00:14:00">Celine Celine</videotag>
       <location id="mapsaopaulo" resourceid="saopaulo" in="00:00:32:00" out="00:01:00:00" lat="-23.55" long="-46.6388" target="map" zoom="6"/>
     </map>
   </timeline>
-=======
-  <subtitles>
-    <subtitle in="0:05" out="0:07">Hello! My name is Celine Celine</subtitle>
-    <subtitle in="0:07" out="0:09">And I help the Internet be easier</subtitle>
-    <subtitle in="0:09" out="0:12">by making things easier</subtitle>
-    <subtitle in="0:15" out="0:17">My name is Mona Kasra</subtitle>
-    <subtitle in="0:17" out="0:19">and I'm building a better internet</subtitle>
-  </subtitles>
-  <inThisVideo>
-    <tagThisVideo in="0:03" out="0:14">Celine Celine</tagThisVideo>
-         <tagThisVideo in="0:13" out="0:16">Bryan</tagThisVideo>
-    <tagThisVideo in="0:15" out="0:19">Mona Kasra</tagThisVideo>
-         <tagThisVideo in="0:19" out="0:21">Caleb</tagThisVideo>
-         <tagThisVideo in="0:21" out="0:31">Dave</tagThisVideo>
-         <tagThisVideo in="0:21" out="0:33">Noah</tagThisVideo>
-         <tagThisVideo in="0:39" out="0:41">Celine Celine</tagThisVideo>
-  </inThisVideo>
-  <map>
-    <location id="map1" in="0:01" out="0:30" lat="45.505" long="-73.335" target="map" zoom="8"/>
-    <location id="map2" in="0:30" out="1:00" lat="43.771" long="-79.5" target="map" zoom="16"/>
-    <location id="map3" in="1:00" out="1:30" lat="41.771" long="-76.5" target="map" zoom="16"/>
-  </map>
-  <twitter in="0:10" out="0:30" source="#oilspill" target="twitter"/>
-  <twitter in="0:01" out="0:20" source="from:celinecelines" target="twitter"/>
->>>>>>> cf9274e39096105186a3a362195e3cea6ea7af49
 </popcorn>