]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
merged in translate changes
authorDaniel Hodgin <hodgin.daniel@gmail.com>
Thu, 1 Jul 2010 21:57:32 +0000 (17:57 -0400)
committerDaniel Hodgin <hodgin.daniel@gmail.com>
Thu, 1 Jul 2010 21:57:32 +0000 (17:57 -0400)
1  2 
index.html
popcorn.js
xml/webMadeMovies.xml

diff --cc index.html
Simple merge
diff --cc popcorn.js
index 8c79a8937c49d638b4f29f767eb8cd7980797026,44a9f2fe7349b3fb15512c866d6afd6cc6531d00..9f8bf4d4b73e1fb45d3ff4b6ba09268b32b79946
      this.onOut = function() {
        SubtitleCommand.subDiv.innerHTML = "";
      };
+           
+     
    };
  
 +  ////////////////////////////////////////////////////////////////////////////
 +  // Lower third text Command
 +  ////////////////////////////////////////////////////////////////////////////
 +
 +  var LowerThirdCommand = function(name, params, text, videoManager) {
 +    VideoCommand.call(this, name, params, text, videoManager);
 +    
 +    // Creates a div for all subtitles to use
 +    if (!LowerThirdCommand.ltDiv) {
 +      LowerThirdCommand.ltDiv = document.createElement('div');
 +      LowerThirdCommand.ltDiv.setAttribute('style', 
 +        'padding-left:40px;padding-right:40px;padding-top:40px;position:absolute;top:150px;left:1px;color:white;font-weight:bold;font-family:sans-serif;text-shadow:black 1px 1px 3px;font-size:22px;width:450px;');
 +      document.getElementById("videoContainer").appendChild(LowerThirdCommand.ltDiv);
 +    }
 +    this.onIn = function() {
 +      $(LowerThirdCommand.ltDiv).css("text-align", (this.params.align || 'left'));
 +      var i = document.getElementById("language").selectedIndex;
 +      google.language.translate((this.params.salutation || ""), '', document.getElementById("language").options[i].getAttribute("val"), function(result) {
 +        var span = document.createElement('span');
 +        span.innerHTML = result.translation + " ";
 +        span.setAttribute('style', 'font-size:26px;');
 +        LowerThirdCommand.ltDiv.appendChild(span);
 +      });
 +      google.language.translate((this.params.name || ""), '', document.getElementById("language").options[i].getAttribute("val"), function(result) {
 +        var span = document.createElement('span');
 +        span.innerHTML = result.translation;
 +        span.setAttribute('style', 'font-size:26px;');
 +        LowerThirdCommand.ltDiv.appendChild(span);
 +      });
 +      google.language.translate((this.params.role || ""), '', document.getElementById("language").options[i].getAttribute("val"), function(result) {
 +        LowerThirdCommand.ltDiv.innerHTML += "<br/>" + result.translation;
 +      });
 +    };
 +    this.onOut = function() {
 +      LowerThirdCommand.ltDiv.innerHTML = "";
 +    };
 +  };
 +
    ////////////////////////////////////////////////////////////////////////////
    // GoogleNews Command
    ////////////////////////////////////////////////////////////////////////////
index 0211f803e79a68b2e2ccec03e3fb881d10e7e99f,9ba9128013e36a56403c56265d8c7140bfaf6cb3..4d3b46fe139f6eb3565eb261639f59ce0ad28e7e
        </place>
      </places>
      <attributions>
 -      <attribution id="attrib" nameofwork="A Shared Culture" copyrightholder="Jesse Dylan"
 -                   license="CC-BY-NC-ND"  licenseurl="http://creativecommons.org/licenses/by-nc/2.0/"/>
 +      <attribution id="attrib" nameofwork="A Shared Culture" copyrightholder="Jesse Dylan" license="CC-BY-NC" licenseurl="http://creativecommons.org/licenses/by-nc/2.0/"/>
 +      <attribution id="villagetelcoattrib" nameofwork="Village Telco" nameofworkurl="http://www.google.com" copyrightholderurl="http://www.google.com" copyrightholder="Richard Mills" license="CC-BY-NC" licenseurl="http://creativecommons.org/licenses/by-nc/2.0/"/>
      </attributions>
 -      <articles>
 -        <resource id="theinternet" src="http://en.wikipedia.org/wiki/internet" description="The Internet"/>
 -      </articles>
 +    <articles>
 +      <resource id="theinternet" src="http://en.wikipedia.org/wiki/internet" description="The Internet"/>
 +      <resource id="villagetelco" src="http://en.wikipedia.org/wiki/Village_telco" description="The Village Telco"/>
 +    </articles>
    </manifest>
 - 
    <timeline>
- 
++    
 +    <footnotes>
 +      <footnote in="00:00:00" out="00:14:00" target="footnotediv">This video made exclusively for drumbeat.org </footnote>
 +    </footnotes>
 +
 +    <resources>
 +      <lowerthird in="01" out="09" salutation="Mr." name="Scott" role="Rad Mobile" align="left"/>
 +
 +      <videotag in="00:00:05:02" out="00:00:10:07">Steve Song</videotag>
 +      <attribution in="00:00:05:02" out="00:00:10:07" target="container5" resourceid="villagetelcoattrib"></attribution>
 +      <twitter in="00:00:05:02" out="00:00:10:07" title="Steve Song" source="from:stevesong" target="personaltwitter" width="238" height="120"/>
 +      <wiki in="00:00:05:02" out="00:00:10:07" resourceid="villagetelco" numberOfWords="200" target="wikidiv"/>
 +      <flickr in="00:00:05:02" out="00:00:10:07" target="personalflickr" userid="78868639" numberofimages="8" padding="4px"/>
 +      <googlenews in="00:00:05:02" out="00:00:10:07" target="googlenewsdiv" topic="Village Telco"/>
 +      <videotag in="00:00:18:04" out="00:00:25:02">Keyboard Cat</videotag>
 +      <twitter in="00:00:18:04" out="00:00:25:02" overlay="images/overlay/twitter.png" title="Keyboard Cat" source="#keyboardcat" target="twitter" width="238" height="120"/>
 +      <attribution in="00:00:18:04" out="00:00:25:02" target="container5">KeyBoard Cat, Charlie Schmidt</attribution>
 +
 +      <videotag in="00:00:28:09" out="00:00:29:07">Geoffrey Warren</videotag>
 +      <attribution in="00:00:28:09" out="00:00:29:07" target="container5">Grassroots Mapping, Tungsten Monkey</attribution>
 +      <videotag in="00:00:29:08" out="00:00:31:00">Village Telco Guy</videotag>
 +      <wiki in="00:00:32:00" out="00:00:41:00" overlay="images/overlay/wikipedia.png" resourceid="theinternet" numberOfWords="200" target="wikidiv"/>
 +      <videotag in="00:00:41:00" out="00:01:07:09">Geoffrey Warren</videotag>
 +
 +      <twitter in="00:01:07:10" out="00:01:25:07" title="Steve Song" source="from:stevesong" target="personaltwitter" width="238" height="120"/>
 +      <videotag in="00:01:25:08" out="00:01:32:07">Village Telco Guy</videotag>
 +
 +      <videotag in="00:01:32:08" out="00:01:38:02">Charlie Schmidt</videotag>
 +      <twitter in="00:01:32:08" out="00:01:57:11" title="Charlie Schmidt" source="from:chuckieart" target="personaltwitter" width="238" height="120"/>
 +      <videotag in="00:01:38:02" out="00:01:41:10">Keyboard Cat</videotag>
 +      <videotag in="00:01:41:11" out="00:01:57:11">Charlie Schmidt</videotag>
 +
 +      <videotag in="00:02:09:00" out="00:03:07:05">Jonathan Zittrain</videotag>
 +      <twitter in="00:02:09:00" out="00:03:07:05" title="Jonathan Zittrain" source="from:zittrain" target="personaltwitter" width="238" height="120"/>
 +
 +      <videotag in="00:03:09:00" out="00:03:16:00">NCSA guy</videotag>
 +      <videotag in="00:03:16:01" out="00:03:18:05">Computer Chronicles guy #1</videotag>
 +      <videotag in="00:03:16:02" out="00:03:21:00">Computer Chronicles guy #2</videotag>
 +      <videotag in="00:03:21:01" out="00:03:28:06">Computer Chronicles guy #3</videotag>
 +
 +      <videotag in="00:03:43:00" out="00:03:56:00">Jonathan Zittrain</videotag>
 +      <twitter in="00:03:43:00" out="00:03:56:00" title="Jonathan Zittrain" source="from:zittrain" target="personaltwitter" width="238" height="120"/>
 +
 +      <videotag in="00:03:59:00" out="00:04:03:05">Mona Kasra</videotag>
 +      <videotag in="00:04:03:06" out="00:04:07:00">Noah Workman</videotag>
 +      <twitter in="00:04:03:06" out="00:04:07:00" title="Noah Workman" source="from:noahworkman" target="personaltwitter" width="238" height="120"/>
 +      <videotag in="00:04:03:06" out="00:04:13:01">Brazillian dude</videotag>
 +      <attribution in="00:04:10:00" out="00:04:13:00" target="container5" resourceid="attrib"></attribution>
 +      <videotag in="00:04:13:02" out="00:04:19:05">Keechang Kim</videotag>
 +      <twitter in="00:04:19:06" out="00:04:24:01" title="Celine Celines" source="from:celinecelines" target="personaltwitter" width="238" height="120"/>
 +      <videotag in="00:04:19:06" out="00:04:24:01">Celine Celines</videotag>
 +      <flickr in="00:04:19:06" out="00:04:24:01" target="flickr" userid="13072070" numberofimages="8" padding="4px"/>
 +    </resources>
 +
 +    <map>
 +      <location id="CapeTown" resourceid="acchomepage" in="00:00:03:00" out="00:00:11:07" lat="-33.9238" long="18.4233" target="container2" zoom="8"/>
 +      <location id="Grand Isle" resourceid="acchomepage" in="00:00:11:07" out="00:00:19:07" lat="29.2720" long="-90.0233 " target="container2" zoom="8"/>
 +      <location id="MITMediaLab" resourceid="mitwiki" in="00:00:19:08" out="00:00:27:00" lat="42.3613" long="-71.0863" target="container2" zoom="12"/>
 +      <location id="Montreal" resourceid="montrealwiki" in="00:04:19:06" out="00:04:24:01" lat="45.5089" long="-73.5542 " target="container2" zoom="8"/>
 +    </map>
-     <!--
-     <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 language="en" align="left">
+       <subtitle in="00:00:00:01" out="00:00:03:00">Alright lets take a look and show me how much neat things you can do on the internet</subtitle>
+       <subtitle in="00:00:05:00" out="00:00:07:00">Have you ever wondered if there is a common thread</subtitle>
+       <subtitle in="00:00:07:01" out="00:00:11:00">that exists between mobile phone hackers in South Africa, </subtitle>
+       <subtitle in="00:00:12.5:00" out="00:00:16:00">adventures using kites to map an oil spil, </subtitle>
+       <subtitle in="00:00:19:00" out="00:00:22:00">and a video of a cat seen by tens of millions of people?</subtitle>
+       <subtitle in="00:00:27:00" out="00:00:30.5:00">Well it's the Internet - the cat, the kite, and the cell phone hackers</subtitle>
+       <subtitle in="00:00:30.5:01" out="00:00:33:00">would all be impossible without the internet</subtitle>
+       <subtitle in="00:00:33:01" out="00:00:37.5:00">an open platform that lets everyone participate without asking permission.</subtitle>
+       <subtitle in="00:00:39:00" out="00:00:41.5:00">The Internet is what lets M.I.T student Geoffrey Warren</subtitle>
+       <subtitle in="00:00:42:00" out="00:00:45:00">use kites to map the Luisiana oil spill. </subtitle>
+       <subtitle in="00:00:47.5:00" out="00:00:50:00">well wait a second why do we have to go all the way into space to take pictures of things</subtitle>
+       <subtitle in="00:00:50:02" out="00:00:52:00">that are righ, literally right next to us, you know. </subtitle>
+       <subtitle in="00:00:53:00" out="00:00:55:00">We can use symple tools like baloons or kites.</subtitle>
+       <subtitle in="00:00:55.5:00" out="00:00:57:00">Have the camera taking pictures every five seconds </subtitle>
+       <subtitle in="00:00:58:00" out="00:01:00:00">the idea is to get a lot of people involved </subtitle>
+       <subtitle in="00:01:01:00" out="00:01:03:00">in producing maps and then share all of the information</subtitle>
+       <subtitle in="00:01:03.5:00" out="00:01:03:00">like wikipedia style you know?</subtitle>
+       <subtitle in="00:01:06:00" out="00:01:10.5:00">The Internet is what allows Steve Song and his friends to create a D.I.Y. phone network</subtitle>
+       <subtitle in="00:01:11:00" out="00:01:12:00">called the Village Telco.</subtitle>
+       <subtitle in="00:01:12.5:00" out="00:01:18:00">Everyone that has a device that we call a mesh potatoe actually has a phone number</subtitle>
+       <subtitle in="00:01:18.5:00" out="00:01:20.5:00">and can call anyone else on the mesh at no charge.</subtitle>
+       <subtitle in="00:01:21.5:00" out="00:01:24.5:00">So taking an open-source principles to a telephone company.</subtitle>
+       <subtitle in="00:01:25:00" out="00:01:31:00">Everything is open umm anyone can come and anyone can join, anyone can make contributions</subtitle>
+     </subtitles>
+     <subtitles language="fa" align="right">
+       <subtitle in="00:04:00:00" out="00:04:01.5:00">My name is Mona Kasra</subtitle>
+       <subtitle in="00:04:02:00" out="00:04:02.5:00">and I'm building a better Internet</subtitle>
+     </subtitles>
+     <subtitles language="pt" align="left">
+       <subtitle in="00:04:06.5:00" out="00:04:08:00">I make the Internet better</subtitle>
+       <subtitle in="00:04:09:00" out="00:04:10.5:00">producing and sharing music</subtitle>
+       <subtitle in="00:04:11:00" out="00:04:12:00">using Creative Commons</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 source="#oilspill" title="BP Oil Spill" target="twitter" width="238" height="160"/>
 -      <twitter in="00:00:01:00" out="00:00:20:00" title="Celine Celine" source="from:celinecelines" target="personaltwitter" width="238" height="120"/>
 -      <wiki in="00:00:02:00" out="00:00:15:00" resourceid="saupaulowiki" numberOfWords="200" target="wikidiv"/>
 -      <wiki in="00:00:10:00" out="00:00:25:00" resourceid="accwiki" target="wikidiv"/>
 -      <attribution in="00:00:1:00" out="00:40:00" target="container5" resourceid="attrib" />
 -      <attribution in="00:42:00" out="00:00:48:00" target="container5">A Shared Culture, Jesse Dylan</attribution>
 -      <flickr in="00:01:00" out="00:20:00" target="flickr" userid="13072070" numberofimages="8" padding="4px"/>
 -      <wiki in="00:00:32:00" out="00:00:41:00" resourceid="theinternet" numberOfWords="200" target="wikidiv"/>
 -      
 -    </resources>
 -    <videotags>
 -      <videotag in="00:00:05:02" out="00:00:10:07">Steve Song</videotag>
 -      <videotag in="00:00:18:04" out="00:00:25:02">Keyboard Cat</videotag>
 -      <videotag in="00:00:28:09" out="00:00:29:07">Geoffrey Warren</videotag>
 -      <videotag in="00:00:29:08" out="00:00:31:00">Village Telco Guy</videotag>
 -      <videotag in="00:00:41:00" out="00:01:07:09">Geoffrey Warren</videotag>
 -      <videotag in="00:01:07:10" out="00:01:25:07">Steve Song</videotag>
 -      <videotag in="00:01:25:08" out="00:01:32:07">Village Telco Guy</videotag>
 -      <videotag in="00:01:32:08" out="00:01:38:02">Charlie Schmidt</videotag>
 -      <videotag in="00:01:38:02" out="00:01:41:10">Keyboard Cat</videotag>
 -      <videotag in="00:01:41:11" out="00:01:57:11">Charlie Schmidt</videotag>   
 -      <videotag in="00:02:09:00" out="00:03:07:05">Jonathan Zittrain</videotag>   
 -      <videotag in="00:03:09:00" out="00:03:16:00">NCSA guy</videotag>   
 -      <videotag in="00:03:16:01" out="00:03:18:05">Computer Chronicles guy #1</videotag>   
 -      <videotag in="00:03:16:02" out="00:03:21:00">Computer Chronicles guy #2</videotag>  
 -      <videotag in="00:03:21:01" out="00:03:28:06">Computer Chronicles guy #3</videotag>   
 -      <videotag in="00:03:43:00" out="00:03:56:00">Jonathan Zittrain</videotag>
 -      <videotag in="00:03:59:00" out="00:04:03:05">Mona Kasra</videotag>
 -      <videotag in="00:04:03:06" out="00:04:07:00">Noah Workman</videotag>
 -      <videotag in="00:04:03:06" out="00:04:13:01">Brazillian dude</videotag>         
 -      <videotag in="00:04:13:02" out="00:04:19:05">Keechang Kim</videotag>         
 -      <videotag in="00:04:19:06" out="00:04:24:01">Celine Celines</videotag>    
 -    </videotags>
 -    <map>
 -      <location id="CapeTown" resourceid="acchomepage" in="00:00:03:00" out="00:00:11:07" lat="-33.9238" long="18.4233" target="container2" zoom="8"/>
 -      <location id="Grand Isle" resourceid="acchomepage" in="00:00:11:07" out="00:00:19:07" lat="29.2720" long="-90.0233 " target="container2" zoom="8"/>
 -      <location id="MITMediaLab" resourceid="mitwiki" in="00:00:19:08" out="00:00:27:00" lat="42.3613" long="-71.0863" target="container2" zoom="12"/>
 -    </map>
 -    <credit><credits></credits></credit>
 -      <news>
 -      <googlenews in="00:05:00" out="00:10:00" target="googlenewsdiv"/>
 -      <googlenews in="00:01:00" out="00:10:00" topic="oilspill" target="googlenewsdiv"/>
 -    </news>
    </timeline>
  </popcorn>