]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
merged in footnote
authorDaniel Hodgin <dhodgin@gmail.com>
Fri, 25 Jun 2010 18:37:05 +0000 (14:37 -0400)
committerDaniel Hodgin <dhodgin@gmail.com>
Fri, 25 Jun 2010 18:37:05 +0000 (14:37 -0400)
1  2 
index.html
popcorn.js
xml/webMadeMovies.xml

diff --cc index.html
index 6eef5a31d6e63fa00243e95f0add0d26d24f622c,74a8e9dc9aaa7a647f0eee7adb957185e202cd0d..82b718b206a02e168a3013dd24e31436403ee92c
    <body> 
      <div id="container">
        <video src="http://a52.video2.blip.tv/7320003802153/Etherworks-WebMadeMovies3BuildingABetterInternet799.ogg" data-timeline-sources="xml/webMadeMovies.xml" controls></video>
 -                      <div id="sub"></div><br />
 +      <select id="language">
 +        <option val="en">English</option>
 +        <option val="es">Spanish</option>
 +        <option val="fr">French</option>
 +        <option val="de">German</option>
 +        <option val="ja">Japanese</option>
 +        <option val="zh">Chinese</option>
 +      </select>
 +      <div id="sub"></div><br />
+       <div id="footnotediv"></div><br />
        <div id="tagthisvideo">In this video:<span id="inthisvideo"></span></div><br />
        <div id="map"></div>
      </div>
diff --cc popcorn.js
index ce9032af92284330a38c8ceb1a1a8ef91df565b8,aea30b5f06dcdbbe93ce3075f3f0036c750774fb..3794af873863011428ae828b250c50899bc9a4b3
        MapCommand.map.setZoom(0);
      };
    };
 -  var TwitterCommand = function(name, params, text) {}; // http://twitter.com/celinecelines
 +
 +  ////////////////////////////////////////////////////////////////////////////
 +  // Twitter Command
 +  ////////////////////////////////////////////////////////////////////////////
 +
 +  var TwitterCommand = function(name, params, text, videoManager) {}; // http://twitter.com/celinecelines
 +
++  ////////////////////////////////////////////////////////////////////////////
++  // Footnote Command
++  ////////////////////////////////////////////////////////////////////////////
++
+       var FootnoteCommand = function(name, params, text) {
+     VideoCommand.call(this, name, params, text);
+     this.onIn = function() {
+                       //if the user specifies a target div for this in the xml use it
+                       //otherwise make a new div 
+                       if( this.params.target ) {
+                               document.getElementById( this.params.target ).innerHTML  = this.text;
+                       } else {
+                               //this will be done later in ticket #46 (support default div)
+                               //for this case i would think get the parent div of the <video> and append a new div to it
+                       }
+     };
+     this.onOut = function() {
+       document.getElementById("footnote").innerHTML  = "";
+     };
+   };
+ 
    // Wrapper for accessing commands by name
    // commands[name].create() returns a new command of type name
    // Not sure if this is the best way; maybe it's too fancy?
        }
      },
      location: {
 -      create: function(name, params, text) {
 -        return new MapCommand(name, params, text);
 +      create: function(name, params, text, videoManager) {
 +        return new MapCommand(name, params, text, videoManager);
        }
+     },
+       footnote: {
+               create: function(name, params, text) {
+         return new FootnoteCommand(name, params, text);
+       }
      }
    };
  
index 81663b80bd6d81596a509223e25840b786baa3d2,89c83a9fb95f0881a44b74e3961c469ab4e6a447..0860249926c1b166df7f2054712328b56ea9e5c4
@@@ -1,76 -1,26 +1,79 @@@
  <popcorn>
 -  <subtitles>
 -    <subtitle in="00:05:00" out="00:07:00">Hello! My name is Celine Celine</subtitle>
 -    <subtitle in="00:07:00" out="00:09:00">And I help the Internet be easier</subtitle>
 -    <subtitle in="00:09:00" out="00:12:00">by making things easier</subtitle>
 -    <subtitle in="00:15:00" out="00:17:00">My name is Mona Kasra</subtitle>
 -    <subtitle in="00:17:00" out="00:19:00">and I'm building a better internet</subtitle>
 -  </subtitles>
 -      <footnotes>
 -              <footnote in="00:00:00" out="00:14:00" target="footnotediv"> This video made exclusively for drumbeat.org </footnote>
 -      </footnotes>
 -  <inThisVideo>
 -    <tagThisVideo in="00:03:00" out="00:14:00">Celine Celine</tagThisVideo>
 -    <tagThisVideo in="00:13:00" out="00:16:00">Bryan</tagThisVideo>
 -    <tagThisVideo in="00:15:00" out="00:19:00">Mona Kasra</tagThisVideo>
 -    <tagThisVideo in="00:19:00" out="00:21:00">Caleb</tagThisVideo>
 -    <tagThisVideo in="00:21:00" out="00:31:00">Dave</tagThisVideo>
 -    <tagThisVideo in="00:21:00" out="00:33:00">Noah</tagThisVideo>
 -    <tagThisVideo in="00:39:00" out="00:41:00">Celine Celine</tagThisVideo>
 -  </inThisVideo>
 -  <map>
 -    <location id="map1" in="00:01:00" out="00:30:00" lat="45.505" long="-73.335" target="map" zoom="8"/>
 -    <location id="map2" in="00:30:00" out="01:00:00" lat="43.771" long="-79.5" target="map" zoom="16"/>
 -    <location id="map3" in="01:00:00" out="01:30:00" lat="41.771" long="-76.5" target="map" zoom="16"/>
 -  </map>
 +  <manifest>
 +    <people>
 +      <person id="celine" name="Celine" salutation="Miss." >
 +        <resource id="celinehomepage" src="http://www.celinecelines.com/" description="Celine's Homepage" />
 +        <resource id="celinetwitter" src="http://twitter.com/celinecelines" description="Celine's Twitter" />
 +      </person>
 +      <person id="brian" name="brian" >
 +        <resource id="briantwitter" src="http://twitter.com/bchirls" description="Brian's twitter" />
 +      </person>
 +      <person id="mona" name="Mona" >
 +        <resource id="monahomepage" src="http://monakasra.com/" description="Mona's Homepage"/>
 +      </person>
 +      <person id="dave" name="Dave" >
 +        <resource id="davetwitter" src="http://twitter.com/academicdave" description="Dave's twitter" />
 +      </person>
 +      <person id="noah" name="Noah" >
 +        <resource id="noahtwitter" src="http://twitter.com/noahworkman" description="Noah's Twitter Feed" />
 +      </person>
 +    </people>
 +    <places>
 +      <place id="acc" type="building" name="Austin Convention Center">
 +        <resource id="acchomepage" src="http://www.austinconventioncenter.com/" description="Austin Convention Center"/>
 +      </place>
 +      <place id="saopaulo" type="city" name="Sao Paulo">
 +        <resource id="saupaulowiki" src="http://en.wikipedia.org/wiki/S%C3%A3o_Paulo" description="Sao Paulo city, Brazil"/>
 +      </place>
 +    </places>
 +    <attributions>
 +      <attribution id="attrib" nameofwork="A Shared Culture" copyrightholder="Jesse Dylan"
 +                   license="CC-BY-NC"  licenseurl="http://creativecommons.org/licenses/by-nc/2.0/"/>
 +    </attributions>
 +  </manifest>
 +  <timeline>
 +    <subtitles>
 +      <subtitle in="00:00:05:00" out="00:00:07:00">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>
 +      <subtitle in="00:00:17:00" out="00:00:19:00">and I'm building a better internet</subtitle>
 +      <subtitle in="00:00:32:00" out="00:00:34:00">I make the Internet better</subtitle>
 +      <subtitle in="00:00:34:00" out="00:00:36:00">producing and sharing music</subtitle>
 +      <subtitle in="00:36:00" out="00:38:00">using creative commons</subtitle>
 +      <subtitle in="00:00:42:00" out="00:00:44:00">I make the Internet better</subtitle>
 +      <subtitle in="00:00:44:00" out="00:00:46:00">because I fight for open educational resources</subtitle>
 +      <subtitle in="00:00:46:00" out="00:00:47:00">on the web</subtitle>
 +      <subtitle in="00:00:51:00" out="00:00:53:00">I make the Internet better</subtitle>
 +      <subtitle in="00:00:53:00" out="00:00:54.5:00">by hacking things</subtitle>
 +      <subtitle in="00:00:54.5:00" out="00:00:56:00">without using a single line of code</subtitle>
 +      <subtitle in="00:00:56:00" out="00:00:57:00">I make the Internet better</subtitle>
 +      <subtitle in="00:00:57:00" out="00:01:00:00">by changing the world of journalism</subtitle>
 +      <subtitle in="00:01:01:00" out="00:01:02:15">you can mobilize people</subtitle>
 +      <subtitle in="00:01:02:15" out="00:01:05:00">you don't need to have money anymore</subtitle>
 +      <subtitle in="00:01:05:00" out="00:01:08:00">or big structures</subtitle>
 +      <subtitle in="00:01:08:00" out="00:01:09:00">you can do everything at home with the Internet</subtitle>
 +    </subtitles>
++    <footnotes>
++      <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:05:00" out="00:00:13:00" target="map" resourceid="celinetwitter" numberoftweets="5"/>
 +      <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>
 +      <videotag in="00:00:13:00" out="00:00:16:00">Brian</videotag>
 +      <videotag in="00:00:15:00" out="00:00:19:00">Mona Kasra</videotag>
 +      <videotag in="00:00:19:00" out="00:00:21:00">Caleb</videotag>
 +      <videotag in="00:00:21:00" out="00:00:31:00">Dave</videotag>
 +      <videotag in="00:00:21:00" out="00:00:33:00">Noah</videotag>
 +      <videotag in="00:00:39:00" out="00:00:41:00">Celine Celine</videotag>
 +    </videotags>
 +    <map>
 +      <location id="mapacc" resourceid="acchomepage" in="00:00:11:00" out="00:00:32:00" lat="30.1580" long="-97.7388" target="map" zoom="8"/>
 +      <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>
  </popcorn>