--- /dev/null
+<!DOCTYPE html>
+<html>
+<head>
+ <script src="../../popcorn.js"></script>
+ <link href="style.css" rel="stylesheet" type="text/css" />
+
+ <!-- This is needed for google maps api -->
+ <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
+ <!-- These two are needed for google news api -->
+ <script src="http://google.com/jsapi"></script>
+ <script>google.load("elements", "1", {packages : ["newsshow"]});</script>
+ <!-- This is needed for language translation -->
+ <script>google.load("language", "1");</script>
+</head>
+<body>
+ <!-- Start Contents -->
+ <div id="contents">
+ <!-- Start Left Contents -->
+ <div class="left-content">
+ <!-- Start Video Div -->
+ <br />
+ <div id="videoContainer" class="video-div">
+ <video src="http://scotland.proximity.on.ca/sdowne/popcornIntroDemo/demo.ogg" data-timeline-sources="xml/data.xml" style="-moz-transform: scaleX(1.2); height:300px;" controls></video>
+ <div id="translateinfo"style="z-index:2;position:absolute;color:white;textShadow:black 2px 2px 6px;font-size:18px;font-family:arial;max-width:480px;font-weight:bold;top: 230px;left:-20px"></div>
+ <div id="translateinfofrench" style="z-index:2;position:absolute;color:white;textShadow:black 2px 2px 6px;font-style:italic;font-family:arial;max-width:480px;font-size:18px;font-weight:bold;top:260px;left:-20px"></div>
+ </div>
+
+ <div class="video-info" style="display:none">
+ <!-- Start Choose Language -->
+ <div class="choose-language">
+ <h2>Choose your language</h2>
+ <select id="language">
+ <option value="zh">Chinese</option>
+ <option value="fr" selected="selected">French</option>
+ <option value="de">German</option>
+ <option value="it">Italian</option>
+ <option value="ja">Japanese</option>
+ <option value="ko">Korean</option>
+ <option value="fa">Persian</option>
+ <option value="pl">Polish</option>
+ <option value="pt">Portuguese</option>
+ <option value="es">Spanish</option>
+ </select>
+ <span id="credit">
+ with help from
+ <a href="http://google.com/translate">Google Translate</a> and <a href="http://jquery.com">
+ jQuery</a>
+ </span>
+ </div>
+ <!-- End Choose Language -->
+ </div>
+ <!-- End Video Info -->
+ <div id="attribinfo" style="display:none;background:white;width:409px;height:100px;text-align:left;padding-left:4px;"></div>
+ </div><br />
+
+ </div><!-- End Video Div -->
+ <div class="right-content">
+ <h1>Google Maps</h1>
+ <div id="mapinfo" style="width:400px;height:250px" ></div>
+
+ <div id="imageinfo" style="display:none;top:330px;width:400px;text-align:left;"> <!--needed for imageCommand -->
+ <h1>Popcorn-js Team</h1>
+ </div>
+
+ <div id="wikiinfo" style="display:none;top:330px;background:black;color:white;width:400px;height:220px;text-align:left;padding-left:4px;position:absolute;">
+ <h1>Wikipedia</h1><br>
+ </div>
+ <div id="flickrinfo" style="display:none;top:330px;color:white;background:black;width:400px;height:220px;text-align:left;position:absolute">
+ <h1>Flickr</h1>
+ </div>
+ <div id="twitterinfo" style="display:none;top:330px;color:white;background:white;width:400px;height:100px;text-align:left;align:left">
+ <br />
+ </div>
+
+ </div>
+ <br />
+ <div class="full-content">
+
+ <div id="iframeinfo"></div>
+ <div id="iframeinfo"></div>
+
+ </div>
+ </div>
+ </body>
+</html>
+
--- /dev/null
+html, body{
+height: 100%;
+}
+
+body {
+ line-height: 1;
+ font-family: Helvetica, Arial, "Lucida Grande";
+ font-size: 15px;
+}
+a{
+ text-decoration: none;
+ color: #cc433d;
+}
+
+a:hover{
+ color: #f27c77;
+}
+/* Layout */
+
+body{
+ background-color: #000000;
+}
+
+.left-content{
+ width:520px;
+ float: left;
+ padding-left:20px
+}
+.right-content{
+ float: left;
+ width:400px;
+ padding-left:0px;
+ padding-top: 0px;
+}
+.full-content{
+ width:960px;
+ padding-left:20px;
+}
+.video-div{
+ position:relative;
+ border-style: "groove";
+ margin-bottom: 20px;
+ margin-right: 20px;
+ margin-left: 45px;
+ clear: both;
+ font-size: 15px !important;
+}
+
+h1{
+ border: 1px solid #9f9f9f;
+ background-color:#1c749d;
+ -moz-border-radius:8px;
+ border-radius:8px;
+ -webkit-border-radius:8px;
+ background-image: -moz-linear-gradient(top, #3d96c0, #1a729b);/* Firefox 3.6 */
+ background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0, #1a729b),color-stop(1, #3d96c0));/* Safari & Chrome */
+ padding: 5px 20px 6px 12px;
+ min-width:365px;
+ font-size:15px;
+ color: #FFF;
+ font-weight: normal;
+ display: inline-block;
+ border-bottom-color: #1c749d;
+ /*box-shadow:inset 0 0 1px #FFF;
+ -moz-box-shadow:inset 0 1px 0 #6fb9db;*/
+}
+.choose-language h2, .choose-language div{
+color: #FFF;
+opacity:.8;
+}
+
+.choose-language h2{
+font-size: 12px;
+padding-bottom: 3px;
+}
+
+.choose-language a{
+font-weight: bold;
+color: #FFF;
+text-decoration: underline;
+}
+
+.choose-language a:hover{
+opacity:1;
+}
+
+#credit{
+padding: 5px 0;
+font-size: 10px;
+color: #FFF;
+}
+.choose-language select,.choose-language span, .choose-language select *{
+color: #000;
+font-size: 12px;
+}
\ No newline at end of file
--- /dev/null
+<popcorn>
+ <timeline>
+ <subtitles language="en" target="translateinfo">
+ <subtitle in="00:00:00:00" out="00:00:02:00">I am one of the lead developers of </subtitle>
+ <subtitle in="00:00:02:00" out="00:00:05:00">popcorn a JavaScript library that adds </subtitle>
+ <subtitle in="00:00:05:00" out="00:00:07:00">timeline based data to any video.</subtitle>
+ <subtitle in="00:00:08:00" out="00:00:09:00">I am going to show you what popcorn</subtitle>
+ <subtitle in="00:00:09:00" out="00:00:12:00">can do. Right now all you see is me</subtitle>
+ <subtitle in="00:00:12:00" out="00:00:14:00">talking on the screen you can’t really</subtitle>
+ <subtitle in="00:00:14:00" out="00:00:17:00">do anything but watch. Let’s make this </subtitle>
+ <subtitle in="00:00:17:00" out="00:00:19:00">video more exciting. Let me add </subtitle>
+ <subtitle in="00:00:19:00" out="00:00:22:00">some French subtitles. Popcorn uses</subtitle>
+ <subtitle in="00:00:22:00" out="00:00:24:00">Google Translate to translate subtitles</subtitle>
+ <subtitle in="00:00:24:00" out="00:00:27:00">to any language. You might be curious</subtitle>
+ <subtitle in="00:00:27:00" out="00:00:29:00">to know that this video was filmed in</subtitle>
+ <subtitle in="00:00:29:00" out="00:00:32:00">Toronto, Ontario. If you don’t know </subtitle>
+ <subtitle in="00:00:32:00" out="00:00:34:00">exactly where that is feel free to </subtitle>
+ <subtitle in="00:00:34:00" out="00:00:36:00">pause this video and investigate the</subtitle>
+ <subtitle in="00:00:36:00" out="00:00:39:00">map. Popcorn was built by five people,</subtitle>
+ <subtitle in="00:00:39:00" out="00:00:42:00">there they are. We collaborated with </subtitle>
+ <subtitle in="00:00:42:00" out="00:00:44:00">filmmakers and artists to ensure that</subtitle>
+ <subtitle in="00:00:44:00" out="00:00:47:00">popcorn is easy to use. Let me show</subtitle>
+ <subtitle in="00:00:47:00" out="00:00:49:00">you some other cool features. Keep in</subtitle>
+ <subtitle in="00:00:49:00" out="00:00:51:00">mind that you can have any feature </subtitle>
+ <subtitle in="00:00:51:00" out="00:00:54:00">appear and disappear at any time</subtitle>
+ <subtitle in="00:00:54:00" out="56.5">during the video. Popcorn makes it </subtitle>
+ <subtitle in="56.5" out="00:00:59:00">possible to pull data from twitter.</subtitle>
+ <subtitle in="00:00:59:00" out="00:01:01:00">Let’s see what people are saying </subtitle>
+ <subtitle in="00:01:01:00" out="00:01:02:00">about popcorn right now.</subtitle>
+ <subtitle in="00:01:03:00" out="00:01:04:00">You can also showcase your work </subtitle>
+ <subtitle in="00:01:04:00" out="00:01:07:00">by pulling data from a flicker account.</subtitle>
+ <subtitle in="00:01:07:00" out="00:01:09:00">Here are some pictures I posted.</subtitle>
+ <subtitle in="00:01:09:00" out="00:01:10:00">If you are not quite sure what</subtitle>
+ <subtitle in="00:01:10:00" out="00:01:12:00">Flicker is take a second to read</subtitle>
+ <subtitle in="00:01:12:00" out="00:01:15:00">about it on Wikipedia. To try</subtitle>
+ <subtitle in="00:01:15:00" out="00:01:17:00">out popcorn visit our homepage,</subtitle>
+ <subtitle in="00:01:17:00" >it is displayed just below me. </subtitle>
+
+ </subtitles>
+ <subtitles language="en" target="translateinfofrench" languagesrc="language">
+ <subtitle in="00:00:19:00" out="00:00:22:00">some French subtitles. Popcorn uses</subtitle>
+ <subtitle in="00:00:22:00" out="00:00:24:00">Google Translate to translate subtitles</subtitle>
+ <subtitle in="00:00:24:00" out="00:00:27:00">to any language. You might be curious</subtitle>
+ <subtitle in="00:00:27:00" out="00:00:29:00">to know that this video was filmed in</subtitle>
+ <subtitle in="00:00:29:00" out="00:00:32:00">Toronto, Ontario. If you don’t know </subtitle>
+ <subtitle in="00:00:32:00" out="00:00:34:00">exactly where that is feel free to </subtitle>
+ <subtitle in="00:00:34:00" out="00:00:36:00">pause this video and investigate the</subtitle>
+ <subtitle in="00:00:36:00" out="00:00:39:00">map. Popcorn was built by five people,</subtitle>
+ <subtitle in="00:00:39:00" out="00:00:42:00">there they are. We collaborated with </subtitle>
+ <subtitle in="00:00:42:00" out="00:00:44:00">filmmakers and artists to ensure that</subtitle>
+ <subtitle in="00:00:44:00" out="00:00:47:00">popcorn is easy to use. Let me show</subtitle>
+ <subtitle in="00:00:47:00" out="00:00:49:00">you some other cool features. Keep in</subtitle>
+ <subtitle in="00:00:49:00" out="00:00:51:00">mind that you can have any feature </subtitle>
+ <subtitle in="00:00:51:00" out="00:00:54:00">appear and disappear at any time</subtitle>
+ <subtitle in="00:00:54:00" out="56.5">during the video. Popcorn makes it </subtitle>
+ <subtitle in="56.5" out="00:00:59:00">possible to pull data from twitter.</subtitle>
+ <subtitle in="00:00:59:00" out="00:01:01:00">Let’s see what people are saying </subtitle>
+ <subtitle in="00:01:01:00" out="00:01:02:00">about popcorn right now.</subtitle>
+ <subtitle in="00:01:03:00" out="00:01:04:00">You can also showcase your work </subtitle>
+ <subtitle in="00:01:04:00" out="00:01:07:00">by pulling data from a flicker account.</subtitle>
+ <subtitle in="00:01:07:00" out="00:01:09:00">Here are some pictures I posted.</subtitle>
+ <subtitle in="00:01:09:00" out="00:01:10:00">If you are not quite sure what</subtitle>
+ <subtitle in="00:01:10:00" out="00:01:12:00">Flicker is take a second to read</subtitle>
+ <subtitle in="00:01:12:00" out="00:01:15:00">about it on Wikipedia. To try</subtitle>
+ <subtitle in="00:01:15:00" out="00:01:17:00">out popcorn visit our homepage,</subtitle>
+ <subtitle in="00:01:17:00" >it is displayed just below me. </subtitle>
+ </subtitles>
+ <location in="00:00:29:00" long="-79.403323" lat="43.665429" target="mapinfo" zoom="16"/>
+ <wiki in="00:01:12:00" out="00:01:15:00" src="http://en.wikipedia.org/wiki/Metadata" description="Metadata" numberOfWords="250" lang="en" target="wikiinfo"/>
+ <flickr in="00:01:06:00" out="00:01:10:00" target="flickrinfo" userid="54210095@N08" numberofimages="3" height="80" width="115" padding="8px"/>
+ <twitter in="00:00:59:00" out="00:01:05:00" title="<b>popcorn-js</b>" source="popcorn-js" target="twitterinfo" width="400" height="120"/>
+ <image in="00:00:40:00" out="00:00:50:00" src="team.jpg" width="400" target="imageinfo"/>
+ <webpage in="00:01:15:00" target="iframeinfo" width="920" height="200" src="http://webmademovies.org" description="WebMadeMovies"></webpage>
+
+ </timeline>
+</popcorn>
--- /dev/null
+<popcorn>
+ <timeline>
+ <subtitles language="en" target="translateinfo">
+ <subtitle in="00:00:00:00" out="00:00:02:00">I am one of the lead developers of </subtitle>
+ <subtitle in="00:00:02:00" out="00:00:05:00">popcorn a JavaScript library that adds </subtitle>
+ <subtitle in="00:00:05:00" out="00:00:07:00">timeline based data to any video.</subtitle>
+ <subtitle in="00:00:08:00" out="00:00:09:00">I am going to show you what popcorn</subtitle>
+ <subtitle in="00:00:09:00" out="00:00:12:00">can do. Right now all you see is me</subtitle>
+ <subtitle in="00:00:12:00" out="00:00:14:00">talking on the screen you can’t really</subtitle>
+ <subtitle in="00:00:14:00" out="00:00:17:00">do anything but watch. Let’s make this </subtitle>
+ <subtitle in="00:00:17:00" out="00:00:19:00">video more exciting. Let me add </subtitle>
+ <subtitle in="00:00:19:00" out="00:00:22:00">some French subtitles. Popcorn uses</subtitle>
+ <subtitle in="00:00:22:00" out="00:00:24:00">Google Translate to translate subtitles</subtitle>
+ <subtitle in="00:00:24:00" out="00:00:27:00">to any language. You might be curious</subtitle>
+ <subtitle in="00:00:27:00" out="00:00:29:00">to know that this video was filmed in</subtitle>
+ <subtitle in="00:00:29:00" out="00:00:32:00">Toronto, Ontario. If you don’t know </subtitle>
+ <subtitle in="00:00:32:00" out="00:00:34:00">exactly where that is feel free to </subtitle>
+ <subtitle in="00:00:34:00" out="00:00:36:00">pause this video and investigate the</subtitle>
+ <subtitle in="00:00:36:00" out="00:00:39:00">map. Popcorn was built by five people,</subtitle>
+ <subtitle in="00:00:39:00" out="00:00:42:00">there they are. We collaborated with </subtitle>
+ <subtitle in="00:00:42:00" out="00:00:44:00">filmmakers and artists to ensure that</subtitle>
+ <subtitle in="00:00:44:00" out="00:00:47:00">popcorn is easy to use. Let me show</subtitle>
+ <subtitle in="00:00:47:00" out="00:00:49:00">you some other cool features. Keep in</subtitle>
+ <subtitle in="00:00:49:00" out="00:00:51:00">mind that you can have any feature </subtitle>
+ <subtitle in="00:00:51:00" out="00:00:54:00">appear and disappear at any time</subtitle>
+ <subtitle in="00:00:54:00" out="56.5">during the video. Popcorn makes it </subtitle>
+ <subtitle in="56.5" out="00:00:59:00">possible to pull data from twitter.</subtitle>
+ <subtitle in="00:00:59:00" out="00:01:01:00">Let’s see what people are saying </subtitle>
+ <subtitle in="00:01:01:00" out="00:01:02:00">about popcorn right now.</subtitle>
+ <subtitle in="00:01:03:00" out="00:01:04:00">You can also showcase your work </subtitle>
+ <subtitle in="00:01:04:00" out="00:01:07:00">by pulling data from a flicker account.</subtitle>
+ <subtitle in="00:01:07:00" out="00:01:09:00">Here are some pictures I posted.</subtitle>
+ <subtitle in="00:01:09:00" out="00:01:10:00">If you are not quite sure what</subtitle>
+ <subtitle in="00:01:10:00" out="00:01:12:00">Flicker is take a second to read</subtitle>
+ <subtitle in="00:01:12:00" out="00:01:15:00">about it on Wikipedia. To try</subtitle>
+ <subtitle in="00:01:15:00" out="00:01:17:00">out popcorn visit our homepage,</subtitle>
+ <subtitle in="00:01:17:00" >it is displayed just below me. </subtitle>
+
+ </subtitles>
+ <subtitles language="en" target="translateinfofrench" languagesrc="language">
+ <subtitle in="00:00:19:00" out="00:00:22:00">some French subtitles. Popcorn uses</subtitle>
+ <subtitle in="00:00:22:00" out="00:00:24:00">Google Translate to translate subtitles</subtitle>
+ <subtitle in="00:00:24:00" out="00:00:27:00">to any language. You might be curious</subtitle>
+ <subtitle in="00:00:27:00" out="00:00:29:00">to know that this video was filmed in</subtitle>
+ <subtitle in="00:00:29:00" out="00:00:32:00">Toronto, Ontario. If you don’t know </subtitle>
+ <subtitle in="00:00:32:00" out="00:00:34:00">exactly where that is feel free to </subtitle>
+ <subtitle in="00:00:34:00" out="00:00:36:00">pause this video and investigate the</subtitle>
+ <subtitle in="00:00:36:00" out="00:00:39:00">map. Popcorn was built by five people,</subtitle>
+ <subtitle in="00:00:39:00" out="00:00:42:00">there they are. We collaborated with </subtitle>
+ <subtitle in="00:00:42:00" out="00:00:44:00">filmmakers and artists to ensure that</subtitle>
+ <subtitle in="00:00:44:00" out="00:00:47:00">popcorn is easy to use. Let me show</subtitle>
+ <subtitle in="00:00:47:00" out="00:00:49:00">you some other cool features. Keep in</subtitle>
+ <subtitle in="00:00:49:00" out="00:00:51:00">mind that you can have any feature </subtitle>
+ <subtitle in="00:00:51:00" out="00:00:54:00">appear and disappear at any time</subtitle>
+ <subtitle in="00:00:54:00" out="56.5">during the video. Popcorn makes it </subtitle>
+ <subtitle in="56.5" out="00:00:59:00">possible to pull data from twitter.</subtitle>
+ <subtitle in="00:00:59:00" out="00:01:01:00">Let’s see what people are saying </subtitle>
+ <subtitle in="00:01:01:00" out="00:01:02:00">about popcorn right now.</subtitle>
+ <subtitle in="00:01:03:00" out="00:01:04:00">You can also showcase your work </subtitle>
+ <subtitle in="00:01:04:00" out="00:01:07:00">by pulling data from a flicker account.</subtitle>
+ <subtitle in="00:01:07:00" out="00:01:09:00">Here are some pictures I posted.</subtitle>
+ <subtitle in="00:01:09:00" out="00:01:10:00">If you are not quite sure what</subtitle>
+ <subtitle in="00:01:10:00" out="00:01:12:00">Flicker is take a second to read</subtitle>
+ <subtitle in="00:01:12:00" out="00:01:15:00">about it on Wikipedia. To try</subtitle>
+ <subtitle in="00:01:15:00" out="00:01:17:00">out popcorn visit our homepage,</subtitle>
+ <subtitle in="00:01:17:00" >it is displayed just below me. </subtitle>
+ </subtitles>
+ <location in="00:00:29:00" long="-79.403323" lat="43.665429" target="mapinfo" zoom="16"/>
+ <wiki in="00:01:12:00" out="00:01:15:00" src="http://en.wikipedia.org/wiki/Metadata" description="Metadata" numberOfWords="250" lang="en" target="wikiinfo"/>
+ <flickr in="00:01:06:00" out="00:01:10:00" target="flickrinfo" userid="54210095@N08" numberofimages="3" height="80" width="115" padding="8px"/>
+ <twitter in="00:00:59:00" out="00:01:05:00" title="<b>popcorn-js</b>" source="popcorn-js" target="twitterinfo" width="400" height="120"/>
+ <image in="00:00:40:00" out="00:00:50:00" src="team.jpg" width="400" target="imageinfo"/>
+ <webpage in="00:01:15:00" target="iframeinfo" width="920" height="200" src="http://webmademovies.org" description="WebMadeMovies"></webpage>
+
+ </timeline>
+</popcorn>
--- /dev/null
+<!DOCTYPE html>
+<html>
+<head>
+ <title>HTML5 Video Demo Using popcorn.js</title>
+ <meta charset="UTF-8" />
+ <script src="http://code.jquery.com/jquery.js"></script>
+ <script src="http://google.com/jsapi"></script>
+ <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
+ <script src="http://widgets.twimg.com/j/2/widget.js"></script>
+ <script>google.load("language", "1");</script>
+ <script>google.load("elements", "1", {packages : ["newsshow"]});</script>
+ <script src="../../popcorn.js"></script>
+
+ <link href="style.css" rel="stylesheet" type="text/css" />
+ <script type="text/javascript">
+ $(document).ready(function () {
+ //Show hide the contents
+ $(".collapse").click(function () {
+ $(this).next(".content").slideToggle("fast");
+ });
+ //Swap class names
+ $(".collapse").toggle(function () {
+ $(this).addClass("expand");
+ }, function () {
+ $(this).removeClass("expand");
+ });
+ $(".collapse").toggle(function () {
+ $("span", this).text('Expand');
+ }, function () {
+ $("span", this).text('Collapse');
+ });
+ $('section').hover(function() {
+ $(this).addClass('hover')
+ }, function() {
+ $(this).removeClass('hover')
+ })
+ setInterval(function() {
+ $('section.hover').each(function() {
+ if ($(this).attr('hoveron')) {
+ if ($('video')[0].currentTime-$(this).attr('hoveron')>1) {
+ $(this).removeAttr('hoveron').removeClass('hover');
+ }
+ }
+ })
+ }, 500);
+
+ $('.clickhere').click(function(){
+ $('.popup').fadeIn();
+ $('.pop-overlay').fadeIn()
+ });
+
+ $('.pop-overlay').click(function(){
+ $('.pop-overlay').fadeOut();
+ $('.popup').fadeOut();
+ });
+
+ $('.close_btn').click(function(){
+ $('.pop-overlay').fadeOut();
+ $('.popup').fadeOut();
+ });
+
+ });
+ </script>
+</head>
+
+<body>
+ <!-- Start First Container Div -->
+ <div class="container-top">
+ <!-- Start Second Container Div -->
+ <div class="container-bot">
+ <!-- Start Wrapper Div -->
+ <div class="wrapper">
+ <!-- Start Header -->
+ <header id="global-header">
+ <a href="http://www.drumbeat.org/" class="logo"><img src="images/drumbeat_logo.png" alt="drumbeat_logo" width="255" height="87" /></a>
+
+ <!-- Start Login/Signup -->
+ <!--nav id="login">
+ <ul>
+ <li><a href="#">log in</a></li>
+ <li><a href="#">sign up</a></li>
+ </ul>
+ </nav-->
+ <!-- End Login/Signup -->
+
+ <!-- Start Primary Links -->
+ <nav id="demo-info">
+ <ul>
+ <li><a href="#" onClick="javascript:void();" class="clickhere green"><img src="images/video_icon.png" alt="" width="18" height="14" />watch a video and learn more about this demo</a></li>
+ </ul>
+ </nav>
+ <!-- End Primary Links -->
+
+ </header>
+ <!-- End Header -->
+ <!-- Start Contents -->
+ <div id="contents">
+ <!-- Start Left Contents -->
+ <div class="left-content">
+ <!-- Start Video Div -->
+ <div id="videoContainer" class="video-div">
+ <div id="credits" style="display:none">
+ <div id="credit_inner">
+ </div>
+ </div>
+ <script>
+
+ ////////////////////////////////////////////////////////////////////////////
+ // Credits
+ ////////////////////////////////////////////////////////////////////////////
+
+ $("#credits")
+ .width(530)
+ .height(299);
+ var displayCredits = function() {
+ $("#credits").show();
+ $("#choices").animate({ right:'+=200px' }, 1000);
+ add( [
+ {
+ text: "Play Again",
+ click:function() {
+ killCol(0);
+ $('video')[0].currentTime=0;
+ }
+ },
+ {
+ text: "People",
+ next :[
+ {
+ text: "Steve Song", href: "http://www.google.ca/"
+ },
+ {
+ text: "Jeffrey Warren"
+ },
+ {
+ text: "Michael Adeyeye"
+ },
+ {
+ text: "Charlie Schmidt"
+ },
+ {
+ text: "Jonathan Zittrain"
+ },
+ {
+ text: "Mona Kasra"
+ },
+ {
+ text: "Noah Workman"
+ },
+ {
+ text: "Wilken Sanches"
+ },
+ {
+ text: "Keechang Kim"
+ },
+ {
+ text: "Celine Celines"
+ }
+ ]
+ },
+ {
+ text: "Places",
+ next: [
+ {
+ text: "Sao Paulo", href: "http://en.wikipedia.org/wiki/S%C3%A3o_Paulo"
+ },
+ {
+ text: "Cape Town", href: "http://en.wikipedia.org/wiki/Cape_Town"
+ },
+ {
+ text: "Grande Isle, Louisiana", href: "http://en.wikipedia.org/wiki/Grand_Isle,_Louisiana"
+ },
+ {
+ text: "MIT Media Lab", href: "http://www.media.mit.edu/"
+ },
+ {
+ text: "Austin, Texas", href: "http://en.wikipedia.org/wiki/Austin,_Texas"
+ },
+ {
+ text: "New York, New York", href: "http://en.wikipedia.org/wiki/New_York_City"
+ },
+ {
+ text: "Seoul, Republic of South Korea", href: "http://en.wikipedia.org/wiki/Seoul"
+ },
+ {
+ text: "Montreal, Quebec", href: "http://en.wikipedia.org/wiki/Montreal"
+ },
+ {
+ text: "Harvard Law School", href: "http://www.law.harvard.edu/index.html"
+ }
+ ]
+ },
+ {
+ text: "Articles",
+ next: [
+ {
+ text: "The Internet", href: "http://en.wikipedia.org/wiki/internet"
+ },
+ {
+ text: "The Village Telco", href: "http://en.wikipedia.org/wiki/Village_telco"
+ },
+ {
+ text: "Deepwater Horizon Oil Spill", href: "http://en.wikipedia.org/wiki/Deepwater_Horizon_oil_spill"
+ },
+ {
+ text: "Jonathan Zittrain", href: "http://en.wikipedia.org/wiki/Jonathan_Zittrain"
+ },
+ {
+ text: "Compuserve", href: "http://en.wikipedia.org/wiki/Compuserve"
+ },
+ {
+ text: "AOL", href: "http://en.wikipedia.org/wiki/AOL"
+ },
+ {
+ text: "Prodigy", href: "http://en.wikipedia.org/wiki/Prodigy_%28online_service%29"
+ },
+ {
+ text: "Internet Protocol", href: "http://en.wikipedia.org/wiki/Internet_Protocol"
+ },
+ {
+ text: "Tim Berners-Lee", href: "http://en.wikipedia.org/wiki/Tim_Berners-Lee"
+ },
+ {
+ text: "World Wide Web", href: "http://en.wikipedia.org/wiki/World_wide_web"
+ },
+ {
+ text: "Wikipedia", href: "http://en.wikipedia.org/wiki/Wikipedia"
+ },
+ {
+ text: "Open Standards", href: "http://en.wikipedia.org/wiki/Open_Standards"
+ }
+ ]
+ },
+ {
+ text: "Developers",
+ next: [
+ {
+ text: "Brett Gaylor",
+ next: [
+ { text: "Twitter", href: "http://twitter.com/remixmanifesto"},
+ { text: "Email", href: "mailto:brett@eyesteelfilm.com"}
+ ]
+ },
+ {
+ text: "Scott Downe",
+ next: [{ text: "Email", href: "mailto:scott.downe@senecac.on.ca" }]
+ },
+
+ {
+ text: "Nick Cammarata",
+ next: [
+ { text: "Twitter", href: "http://twitter.com/nicklovescode"},
+ { text: "Email", href: "mailto:nick@nickcammarata.com"}
+ ]
+ },
+ {
+ text: "Anna Sobiepanek",
+ next: [
+ { text: "Twitter", href: "http://twitter.com/annasob"},
+ { text: "Email", href: "mailto:anna.sobiepanek@gmail.com"}
+ ]
+ },
+ {
+ text: "Daniel Hodgin",
+ next: [
+ { text: "Twitter", href: "http://twitter.com/dhhodgin"},
+ { text: "Email", href: "mailto:daniel.hodgin@senecac.on.ca"}
+ ]
+ },
+ {
+ text: "David Humphrey",
+ next: [
+ { text: "Twitter", href: "http://twitter.com/humphd"},
+ { text: "Email", href: "mailto:david.humphrey@senecac.on.ca"}
+ ]
+ }
+ ]
+ },
+ {
+ text: "Sources",
+ next: [
+
+ ]
+ }
+ ]);
+ };
+ var removeCredits = function() {
+ $("#choices").css("right","-200px");
+ $("#credits").hide();
+ };
+ var colIndex = 0;
+ var killCol = function(index, callback) {
+ $(".column").each(function() {
+ if ($(this).attr("colindex")>index) {
+ $(this).addClass("removing").animate( { left: -$(this).outerWidth() + "px" }, 1200, function() {
+ $(this).remove();
+ });
+ }
+ });
+ if (callback) {
+ callback();
+ }
+ };
+
+ var add = function(items) {
+ colIndex++;
+ var ul = $("<ul></ul>")
+ .addClass('column')
+ .attr('colindex',parseInt(colIndex, 10));
+ $.each(items, function(i, val) {
+ var li = $(document.createElement('li'))
+ .append($(document.createElement('a'))
+ .text(val.text)
+ .attr("href",val.href||"#")
+ .attr("target",val.href?"_blank":""))
+ .appendTo(ul)
+ .addClass('play')
+ .click(function() {
+ if (val.href) {
+ return true;
+ }
+ var colIndex2 = $(this).parent().attr('colindex');
+ if (colIndex>colIndex2) {
+ killCol(colIndex2);
+ colIndex = colIndex2;
+ }
+ var hasClass = $(this).hasClass('selected');
+ if (!hasClass) {
+ if (val.click) {
+ val.click();
+ }
+ if (val.next) {
+ add(val.next);
+ }
+ }
+ $(this)
+ .parent()
+ .find('.selected')
+ .removeClass('selected');
+ if (!hasClass) {
+ $(this).addClass('selected');
+ }
+ });
+ });
+ var width = 0;
+ $(".column:not(.removing)").each(function() {
+ width+=$(this).outerWidth();
+ });
+ ul
+ .appendTo("#credit_inner")
+ .css("z-index",1000 - colIndex)
+ .css("left",-ul.outerWidth())
+ .animate({
+ left: width + "px"
+ },750);
+ };
+ </script>
+ <video width="530" height="299" data-timeline-sources="xml/webMadeMovies.xml" controls loop>
+ <source src="http://webmademovies.etherworks.ca/popcorndemo/wmmjuly6.ogv" type='video/ogg; codecs="theora, vorbis"'>
+ <source src="http://webmademovies.etherworks.ca/popcorndemo/wmmjuly6.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
+ </video>
+ <div id="overlaydiv" style="position:absolute;top:1px;left:1px"></div>
+ <script>
+ overlayDiv = document.getElementById("overlaydiv");
+ var createImage = function(src) {
+ var image = document.createElement('img');
+ image.setAttribute('src', src);
+ image.setAttribute('style', "display:none");
+ overlayDiv.appendChild(image);
+ return image;
+ };
+ popcorn.VideoManager.prototype.loaded = function() {
+ for (var i in this.commandObjects) {
+ if (this.commandObjects[i].name === 'flickr' || this.commandObjects[i].name === 'footnote' || this.commandObjects[i].name === 'location' || this.commandObjects[i].name === 'twitter' || this.commandObjects[i].name === 'wiki' || this.commandObjects[i].name === 'lastfm') {
+ this.commandObjects[i].extension.image = createImage("images/overlay/" + this.commandObjects[i].name + ".png");
+ this.commandObjects[i].extension.onIn = function() {
+ this.image.setAttribute('style', "display:inline");
+ };
+ this.commandObjects[i].extension.onOut = function() {
+ this.image.setAttribute('style', "display:none");
+ };
+ }
+ }
+ };
+ </script>
+ <!-- Start Video Info -->
+ <div class="video-info">
+ <!-- Start Choose Language -->
+ <div class="choose-language">
+ <h2>Choose your language</h2>
+ <select id="language">
+ <option value="zh">Chinese</option>
+ <option value="en" selected="selected">English</option>
+ <option value="fr">French</option>
+ <option value="de">German</option>
+ <option value="it">Italian</option>
+ <option value="ja">Japanese</option>
+ <option value="ko">Korean</option>
+ <option value="fa">Persian</option>
+ <option value="pl">Polish</option>
+ <option value="pt">Portuguese</option>
+ <option value="es">Spanish</option>
+ </select>
+ <div id="credit">
+ with help from
+ <br />
+ <a href="http://google.com/translate">Google Translate</a> and <a href="http://jquery.com">
+ jQuery</a><br />
+ <input type="checkbox" id="accessibility" checked="checked" />All subtitles (accessibility)
+ </div>
+ </div>
+ <!-- End Choose Language -->
+
+ <!-- Start Foot Notes -->
+ <div class="foot-notes">
+ <h2>This video's footnotes</h2>
+ <p id="footnotediv"></p>
+ </div>
+ <!-- End Foot Notes -->
+ </div>
+ <!-- End Video Info -->
+ </div>
+ <!-- End Video Div -->
+
+ <div>
+ <section>
+ <a href="#" class="collapse"><span>Collapse</span></a>
+ <div id="iframes" class="content"><div class="overlay"></div><div class="inactive"></div></div>
+ </section>
+ </div>
+
+ <h1>
+ <span>In this video: <strong id="inthisvideo"></strong></span>
+ </h1>
+ <!-- Start Column A -->
+ <div class="columna">
+ <section>
+ <h3><img src="images/logo_twitter.png" alt="Twitter Updates" width="80" height="19" />
+ <span> </span></h3>
+ <a href="#" class="collapse"><span>Collapse</span></a>
+ <div id="personaltwitter" class="content"><div class="overlay"></div><div class="inactive"></div></div>
+ </section>
+ </div>
+ <!-- End Column A -->
+
+ <!-- Start Column B -->
+ <div class="columnb">
+ <section>
+ <h3><img src="images/logo_flickr.png" alt="Flickr Images" width="53" height="16" />
+ <span> </span></h3>
+ <a href="#" class="collapse"><span>Collapse</span></a>
+ <div id="personalflickr" class="content"><div class="overlay"></div><div class="inactive"></div></div>
+ </section>
+ </div>
+ <!-- End Column B -->
+ </div>
+ <!-- End Left Contents -->
+ <!-- Start Right Contents -->
+ <div class="right-content">
+ <h1><span>Related to this video</span></h1>
+ <!-- Start Column A -->
+ <div class="columna">
+ <section>
+ <div id="container3" class="google-map-title">
+ <h4>Filmed in:</h4>
+ <span id="mapinfo"></span>
+ </div>
+
+ <div id="container2" class="google-map"></div>
+
+ </section>
+ <section>
+ <h3><img src="images/logo_twitter.png" alt="Twitter" width="80" height="19" /></h3>
+ <a href="#" class="collapse"><span>Collapse</span></a>
+ <div id="twitter" class="content"><div class="overlay"></div><div class="inactive"></div></div>
+ </section>
+
+ </div>
+ <!-- End Column A -->
+ <!-- Start Column B -->
+ <div class="columnb">
+ <section>
+ <h3><img src="images/logo_wiki.png" alt="Wikipedia" width="92" height="13" /></h3>
+ <a href="#" class="collapse"><span>Collapse</span></a>
+ <div class="content" id="wikidiv"><div class="overlay"></div><div class="inactive"></div></div>
+ </section>
+ <section>
+ <h3><img src="images/logo_google_news.png" alt="Google News" width="74" height="33" />
+ </h3>
+ <div id="googlenewsdiv"><div class="overlay"></div><div class="inactive"></div></div>
+ </section>
+ <section>
+ <h3><img src="images/logo_lastfm.png" alt="Lastfm" width="80" height="24" /></h3>
+ <a href="#" class="collapse"><span>Collapse</span></a>
+ <div class="content" id="lastfmdiv"><div class="overlay"></div><div class="inactive"></div></div>
+ </section>
+ </div>
+ <!-- End Column B -->
+ <h1><span>This video's copyright information</span></h1>
+ <section>
+ <div id="container5"></div>
+ </section>
+ </div>
+ <!-- End Right Contents -->
+ </div>
+ <!-- End Contents -->
+ <footer>
+ <div class="footer_drumbeat">
+ <img src="images/footer_webmade.png" alt="footer_drumbeat" width="115" height="91" />
+ <p>Web Made Movies is Mozilla's<br /> Open video lab<br />
+ <a href="http://www.drumbeat.org/webmademovies">Learn More and find the source code for this demo<span>»</span></a>
+ </p>
+ </div>
+ <div class="footer_drumbeat">
+ <img src="images/footer_drumbeat.png" alt="footer_drumbeat" width="200" height="68" /><p>Innovation on the open web,<br />powered by everybody.</p>
+ </div>
+ <div class="copyright">Portions of this content are ©2010 by individual drumbeat.org contributors. Content available under a Creative Commons license.</div>
+ </footer>
+ </div>
+ <!-- End Wrapper Div -->
+ </div>
+ <!-- End Second Container Div -->
+ </div>
+ <!-- End First Container Div -->
+
+ <!-- Start Popup -->
+ <div class="pop-overlay">
+ </div>
+
+ <div class="popup">
+ <span class="close_btn">x</span>
+
+ <div class="popup-content">
+ <h1>Info about this page</h1>
+ <p>This demo was created by Scott Downe, Anna Sobiepanek, Daniel Hodgin, Nick Cammarata, and Brett Gaylor as part of Web Made Movies. To download the source code and find out how you can contribute, click on the Web Made Movies logo at the bottom of this page.</p>
+
+ <p>
+ <strong>Are you having trouble getting this demo to play?</strong><br />
+ This video will only play in modern browsers, such as Firefox 3.5+ or Safari 3+. Unfortunately, Internet Explorer does not currently support open video codecs, so the won't work in that browser.
+ </p>
+ </div>
+ </div>
+ <!-- End Popup -->
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<html>
+<head>
+ <title>HTML5 Video Demo Using popcorn.js</title>
+ <meta charset="UTF-8" />
+ <script src="http://code.jquery.com/jquery.js"></script>
+ <script src="http://google.com/jsapi"></script>
+ <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
+ <script src="http://widgets.twimg.com/j/2/widget.js"></script>
+ <script>google.load("language", "1");</script>
+ <script>google.load("elements", "1", {packages : ["newsshow"]});</script>
+ <script src="../../popcorn.js"></script>
+
+ <link href="style.css" rel="stylesheet" type="text/css" />
+ <script type="text/javascript">
+ $(document).ready(function () {
+ //Show hide the contents
+ $(".collapse").click(function () {
+ $(this).next(".content").slideToggle("fast");
+ });
+ //Swap class names
+ $(".collapse").toggle(function () {
+ $(this).addClass("expand");
+ }, function () {
+ $(this).removeClass("expand");
+ });
+ $(".collapse").toggle(function () {
+ $("span", this).text('Expand');
+ }, function () {
+ $("span", this).text('Collapse');
+ });
+ $('section').hover(function() {
+ $(this).addClass('hover')
+ }, function() {
+ $(this).removeClass('hover')
+ })
+ setInterval(function() {
+ $('section.hover').each(function() {
+ if ($(this).attr('hoveron')) {
+ if ($('video')[0].currentTime-$(this).attr('hoveron')>1) {
+ $(this).removeAttr('hoveron').removeClass('hover');
+ }
+ }
+ })
+ }, 500);
+
+ $('.clickhere').click(function(){
+ $('.popup').fadeIn();
+ $('.pop-overlay').fadeIn()
+ });
+
+ $('.pop-overlay').click(function(){
+ $('.pop-overlay').fadeOut();
+ $('.popup').fadeOut();
+ });
+
+ $('.close_btn').click(function(){
+ $('.pop-overlay').fadeOut();
+ $('.popup').fadeOut();
+ });
+
+ });
+ </script>
+</head>
+
+<body>
+ <!-- Start First Container Div -->
+ <div class="container-top">
+ <!-- Start Second Container Div -->
+ <div class="container-bot">
+ <!-- Start Wrapper Div -->
+ <div class="wrapper">
+ <!-- Start Header -->
+ <header id="global-header">
+ <a href="http://www.drumbeat.org/" class="logo"><img src="images/drumbeat_logo.png" alt="drumbeat_logo" width="255" height="87" /></a>
+
+ <!-- Start Login/Signup -->
+ <!--nav id="login">
+ <ul>
+ <li><a href="#">log in</a></li>
+ <li><a href="#">sign up</a></li>
+ </ul>
+ </nav-->
+ <!-- End Login/Signup -->
+
+ <!-- Start Primary Links -->
+ <nav id="demo-info">
+ <ul>
+ <li><a href="#" onClick="javascript:void();" class="clickhere green"><img src="images/video_icon.png" alt="" width="18" height="14" />watch a video and learn more about this demo</a></li>
+ </ul>
+ </nav>
+ <!-- End Primary Links -->
+
+ </header>
+ <!-- End Header -->
+ <!-- Start Contents -->
+ <div id="contents">
+ <!-- Start Left Contents -->
+ <div class="left-content">
+ <!-- Start Video Div -->
+ <div id="videoContainer" class="video-div">
+ <div id="credits" style="display:none">
+ <div id="credit_inner">
+ </div>
+ </div>
+ <script>
+
+ ////////////////////////////////////////////////////////////////////////////
+ // Credits
+ ////////////////////////////////////////////////////////////////////////////
+
+ $("#credits")
+ .width(530)
+ .height(299);
+ var displayCredits = function() {
+ $("#credits").show();
+ $("#choices").animate({ right:'+=200px' }, 1000);
+ add( [
+ {
+ text: "Play Again",
+ click:function() {
+ killCol(0);
+ $('video')[0].currentTime=0;
+ }
+ },
+ {
+ text: "People",
+ next :[
+ {
+ text: "Steve Song", href: "http://www.google.ca/"
+ },
+ {
+ text: "Jeffrey Warren"
+ },
+ {
+ text: "Michael Adeyeye"
+ },
+ {
+ text: "Charlie Schmidt"
+ },
+ {
+ text: "Jonathan Zittrain"
+ },
+ {
+ text: "Mona Kasra"
+ },
+ {
+ text: "Noah Workman"
+ },
+ {
+ text: "Wilken Sanches"
+ },
+ {
+ text: "Keechang Kim"
+ },
+ {
+ text: "Celine Celines"
+ }
+ ]
+ },
+ {
+ text: "Places",
+ next: [
+ {
+ text: "Sao Paulo", href: "http://en.wikipedia.org/wiki/S%C3%A3o_Paulo"
+ },
+ {
+ text: "Cape Town", href: "http://en.wikipedia.org/wiki/Cape_Town"
+ },
+ {
+ text: "Grande Isle, Louisiana", href: "http://en.wikipedia.org/wiki/Grand_Isle,_Louisiana"
+ },
+ {
+ text: "MIT Media Lab", href: "http://www.media.mit.edu/"
+ },
+ {
+ text: "Austin, Texas", href: "http://en.wikipedia.org/wiki/Austin,_Texas"
+ },
+ {
+ text: "New York, New York", href: "http://en.wikipedia.org/wiki/New_York_City"
+ },
+ {
+ text: "Seoul, Republic of South Korea", href: "http://en.wikipedia.org/wiki/Seoul"
+ },
+ {
+ text: "Montreal, Quebec", href: "http://en.wikipedia.org/wiki/Montreal"
+ },
+ {
+ text: "Harvard Law School", href: "http://www.law.harvard.edu/index.html"
+ }
+ ]
+ },
+ {
+ text: "Articles",
+ next: [
+ {
+ text: "The Internet", href: "http://en.wikipedia.org/wiki/internet"
+ },
+ {
+ text: "The Village Telco", href: "http://en.wikipedia.org/wiki/Village_telco"
+ },
+ {
+ text: "Deepwater Horizon Oil Spill", href: "http://en.wikipedia.org/wiki/Deepwater_Horizon_oil_spill"
+ },
+ {
+ text: "Jonathan Zittrain", href: "http://en.wikipedia.org/wiki/Jonathan_Zittrain"
+ },
+ {
+ text: "Compuserve", href: "http://en.wikipedia.org/wiki/Compuserve"
+ },
+ {
+ text: "AOL", href: "http://en.wikipedia.org/wiki/AOL"
+ },
+ {
+ text: "Prodigy", href: "http://en.wikipedia.org/wiki/Prodigy_%28online_service%29"
+ },
+ {
+ text: "Internet Protocol", href: "http://en.wikipedia.org/wiki/Internet_Protocol"
+ },
+ {
+ text: "Tim Berners-Lee", href: "http://en.wikipedia.org/wiki/Tim_Berners-Lee"
+ },
+ {
+ text: "World Wide Web", href: "http://en.wikipedia.org/wiki/World_wide_web"
+ },
+ {
+ text: "Wikipedia", href: "http://en.wikipedia.org/wiki/Wikipedia"
+ },
+ {
+ text: "Open Standards", href: "http://en.wikipedia.org/wiki/Open_Standards"
+ }
+ ]
+ },
+ {
+ text: "Developers",
+ next: [
+ {
+ text: "Brett Gaylor",
+ next: [
+ { text: "Twitter", href: "http://twitter.com/remixmanifesto"},
+ { text: "Email", href: "mailto:brett@eyesteelfilm.com"}
+ ]
+ },
+ {
+ text: "Scott Downe",
+ next: [{ text: "Email", href: "mailto:scott.downe@senecac.on.ca" }]
+ },
+
+ {
+ text: "Nick Cammarata",
+ next: [
+ { text: "Twitter", href: "http://twitter.com/nicklovescode"},
+ { text: "Email", href: "mailto:nick@nickcammarata.com"}
+ ]
+ },
+ {
+ text: "Anna Sobiepanek",
+ next: [
+ { text: "Twitter", href: "http://twitter.com/annasob"},
+ { text: "Email", href: "mailto:anna.sobiepanek@gmail.com"}
+ ]
+ },
+ {
+ text: "Daniel Hodgin",
+ next: [
+ { text: "Twitter", href: "http://twitter.com/dhhodgin"},
+ { text: "Email", href: "mailto:daniel.hodgin@senecac.on.ca"}
+ ]
+ },
+ {
+ text: "David Humphrey",
+ next: [
+ { text: "Twitter", href: "http://twitter.com/humphd"},
+ { text: "Email", href: "mailto:david.humphrey@senecac.on.ca"}
+ ]
+ }
+ ]
+ },
+ {
+ text: "Sources",
+ next: [
+
+ ]
+ }
+ ]);
+ };
+ var removeCredits = function() {
+ $("#choices").css("right","-200px");
+ $("#credits").hide();
+ };
+ var colIndex = 0;
+ var killCol = function(index, callback) {
+ $(".column").each(function() {
+ if ($(this).attr("colindex")>index) {
+ $(this).addClass("removing").animate( { left: -$(this).outerWidth() + "px" }, 1200, function() {
+ $(this).remove();
+ });
+ }
+ });
+ if (callback) {
+ callback();
+ }
+ };
+
+ var add = function(items) {
+ colIndex++;
+ var ul = $("<ul></ul>")
+ .addClass('column')
+ .attr('colindex',parseInt(colIndex, 10));
+ $.each(items, function(i, val) {
+ var li = $(document.createElement('li'))
+ .append($(document.createElement('a'))
+ .text(val.text)
+ .attr("href",val.href||"#")
+ .attr("target",val.href?"_blank":""))
+ .appendTo(ul)
+ .addClass('play')
+ .click(function() {
+ if (val.href) {
+ return true;
+ }
+ var colIndex2 = $(this).parent().attr('colindex');
+ if (colIndex>colIndex2) {
+ killCol(colIndex2);
+ colIndex = colIndex2;
+ }
+ var hasClass = $(this).hasClass('selected');
+ if (!hasClass) {
+ if (val.click) {
+ val.click();
+ }
+ if (val.next) {
+ add(val.next);
+ }
+ }
+ $(this)
+ .parent()
+ .find('.selected')
+ .removeClass('selected');
+ if (!hasClass) {
+ $(this).addClass('selected');
+ }
+ });
+ });
+ var width = 0;
+ $(".column:not(.removing)").each(function() {
+ width+=$(this).outerWidth();
+ });
+ ul
+ .appendTo("#credit_inner")
+ .css("z-index",1000 - colIndex)
+ .css("left",-ul.outerWidth())
+ .animate({
+ left: width + "px"
+ },750);
+ };
+ </script>
+ <video width="530" height="299" data-timeline-sources="xml/webMadeMovies.xml" controls>
+ <source src="http://webmademovies.etherworks.ca/popcorndemo/wmmjuly6.ogv" type='video/ogg; codecs="theora, vorbis"'>
+ <source src="http://webmademovies.etherworks.ca/popcorndemo/wmmjuly6.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
+ </video>
+ <div id="overlaydiv" style="position:absolute;top:1px;left:1px"></div>
+ <script>
+ overlayDiv = document.getElementById("overlaydiv");
+ var createImage = function(src) {
+ var image = document.createElement('img');
+ image.setAttribute('src', src);
+ image.setAttribute('style', "display:none");
+ overlayDiv.appendChild(image);
+ return image;
+ };
+ popcorn.VideoManager.prototype.loaded = function() {
+ for (var i in this.commandObjects) {
+ if (this.commandObjects[i].name === 'flickr' || this.commandObjects[i].name === 'footnote' || this.commandObjects[i].name === 'location' || this.commandObjects[i].name === 'twitter' || this.commandObjects[i].name === 'wiki' || this.commandObjects[i].name === 'lastfm') {
+ this.commandObjects[i].extension.image = createImage("images/overlay/" + this.commandObjects[i].name + ".png");
+ this.commandObjects[i].extension.onIn = function() {
+ this.image.setAttribute('style', "display:inline");
+ };
+ this.commandObjects[i].extension.onOut = function() {
+ this.image.setAttribute('style', "display:none");
+ };
+ }
+ }
+ };
+ </script>
+ <!-- Start Video Info -->
+ <div class="video-info">
+ <!-- Start Choose Language -->
+ <div class="choose-language">
+ <h2>Choose your language</h2>
+ <select id="language">
+ <option value="zh">Chinese</option>
+ <option value="en" selected="selected">English</option>
+ <option value="fr">French</option>
+ <option value="de">German</option>
+ <option value="it">Italian</option>
+ <option value="ja">Japanese</option>
+ <option value="ko">Korean</option>
+ <option value="fa">Persian</option>
+ <option value="pl">Polish</option>
+ <option value="pt">Portuguese</option>
+ <option value="es">Spanish</option>
+ </select>
+ <div id="credit">
+ with help from
+ <br />
+ <a href="http://google.com/translate">Google Translate</a> and <a href="http://jquery.com">
+ jQuery</a><br />
+ <input type="checkbox" id="accessibility" checked="checked" />All subtitles (accessibility)
+ </div>
+ </div>
+ <!-- End Choose Language -->
+
+ <!-- Start Foot Notes -->
+ <div class="foot-notes">
+ <h2>This video's footnotes</h2>
+ <p id="footnotediv"></p>
+ </div>
+ <!-- End Foot Notes -->
+ </div>
+ <!-- End Video Info -->
+ </div>
+ <!-- End Video Div -->
+
+ <div>
+ <section>
+ <a href="#" class="collapse"><span>Collapse</span></a>
+ <div id="iframes" class="content"><div class="overlay"></div><div class="inactive"></div></div>
+ </section>
+ </div>
+
+ <h1>
+ <span>In this video: <strong id="inthisvideo"></strong></span>
+ </h1>
+ <!-- Start Column A -->
+ <div class="columna">
+ <section>
+ <h3><img src="images/logo_twitter.png" alt="Twitter Updates" width="80" height="19" />
+ <span> </span></h3>
+ <a href="#" class="collapse"><span>Collapse</span></a>
+ <div id="personaltwitter" class="content"><div class="overlay"></div><div class="inactive"></div></div>
+ </section>
+ </div>
+ <!-- End Column A -->
+
+ <!-- Start Column B -->
+ <div class="columnb">
+ <section>
+ <h3><img src="images/logo_flickr.png" alt="Flickr Images" width="53" height="16" />
+ <span> </span></h3>
+ <a href="#" class="collapse"><span>Collapse</span></a>
+ <div id="personalflickr" class="content"><div class="overlay"></div><div class="inactive"></div></div>
+ </section>
+ </div>
+ <!-- End Column B -->
+ </div>
+ <!-- End Left Contents -->
+ <!-- Start Right Contents -->
+ <div class="right-content">
+ <h1><span>Related to this video</span></h1>
+ <!-- Start Column A -->
+ <div class="columna">
+ <section>
+ <div id="container3" class="google-map-title">
+ <h4>Filmed in:</h4>
+ <span id="mapinfo"></span>
+ </div>
+
+ <div id="container2" class="google-map"></div>
+
+ </section>
+ <section>
+ <h3><img src="images/logo_twitter.png" alt="Twitter" width="80" height="19" /></h3>
+ <a href="#" class="collapse"><span>Collapse</span></a>
+ <div id="twitter" class="content"><div class="overlay"></div><div class="inactive"></div></div>
+ </section>
+
+ </div>
+ <!-- End Column A -->
+ <!-- Start Column B -->
+ <div class="columnb">
+ <section>
+ <h3><img src="images/logo_wiki.png" alt="Wikipedia" width="92" height="13" /></h3>
+ <a href="#" class="collapse"><span>Collapse</span></a>
+ <div class="content" id="wikidiv"><div class="overlay"></div><div class="inactive"></div></div>
+ </section>
+ <section>
+ <h3><img src="images/logo_google_news.png" alt="Google News" width="74" height="33" />
+ </h3>
+ <div id="googlenewsdiv"><div class="overlay"></div><div class="inactive"></div></div>
+ </section>
+ <section>
+ <h3><img src="images/logo_lastfm.png" alt="Lastfm" width="80" height="24" /></h3>
+ <a href="#" class="collapse"><span>Collapse</span></a>
+ <div class="content" id="lastfmdiv"><div class="overlay"></div><div class="inactive"></div></div>
+ </section>
+ </div>
+ <!-- End Column B -->
+ <h1><span>This video's copyright information</span></h1>
+ <section>
+ <div id="container5"></div>
+ </section>
+ </div>
+ <!-- End Right Contents -->
+ </div>
+ <!-- End Contents -->
+ <footer>
+ <div class="footer_drumbeat">
+ <img src="images/footer_webmade.png" alt="footer_drumbeat" width="115" height="91" />
+ <p>Web Made Movies is Mozilla's<br /> Open video lab<br />
+ <a href="http://www.drumbeat.org/webmademovies">Learn More and find the source code for this demo<span>»</span></a>
+ </p>
+ </div>
+ <div class="footer_drumbeat">
+ <img src="images/footer_drumbeat.png" alt="footer_drumbeat" width="200" height="68" /><p>Innovation on the open web,<br />powered by everybody.</p>
+ </div>
+ <div class="copyright">Portions of this content are ©2010 by individual drumbeat.org contributors. Content available under a Creative Commons license.</div>
+ </footer>
+ </div>
+ <!-- End Wrapper Div -->
+ </div>
+ <!-- End Second Container Div -->
+ </div>
+ <!-- End First Container Div -->
+
+ <!-- Start Popup -->
+ <div class="pop-overlay">
+ </div>
+
+ <div class="popup">
+ <span class="close_btn">x</span>
+
+ <div class="popup-content">
+ <h1>Info about this page</h1>
+ <p>This demo was created by Scott Downe, Anna Sobiepanek, Daniel Hodgin, Nick Cammarata, and Brett Gaylor as part of Web Made Movies. To download the source code and find out how you can contribute, click on the Web Made Movies logo at the bottom of this page.</p>
+
+ <p>
+ <strong>Are you having trouble getting this demo to play?</strong><br />
+ This video will only play in modern browsers, such as Firefox 3.5+ or Safari 3+. Unfortunately, Internet Explorer does not currently support open video codecs, so the won't work in that browser.
+ </p>
+ </div>
+ </div>
+ <!-- End Popup -->
+</body>
+</html>
--- /dev/null
+<popcorn>
+ <manifest>
+ <people>
+ <person id="celine" name="Celine" salutation="Miss." >
+ <resource id="celinehomepage" src="http://www.celinecelines.com/" description="Celine's Homepage" />
+ </person>
+ <person id="brian" name="brian" >
+ </person>
+ <person id="SteveSong" name="Steve Song" >
+ </person>
+ <person id="mona" name="Mona" >
+ <resource id="monahomepage" src="http://www.monakasra.com/" description="Mona's Homepage"/>
+ </person>
+ <person id="dave" name="Dave" >
+ </person>
+ <person id="noah" name="Noah" >
+ </person>
+ </people>
+ <places>
+ <place id="saopaulo" type="city" name="Sao Paulo">
+ <resource id="saopaulowiki" src="http://en.wikipedia.org/wiki/S%C3%A3o_Paulo" description="Sao Paulo city, Brazil"/>
+ </place>
+
+ <place id="CapeTown" type="city" name="Cape Town">
+ <resource id="capetownwiki" src="http://en.wikipedia.org/wiki/Cape_Town" description="Cape Town, South Africa"/>
+ </place>
+
+ <place id="GrandIsle" type="city" name="Grande Isle, Louisiana">
+ <resource id="grandeislewiki" src="http://en.wikipedia.org/wiki/Grand_Isle,_Louisiana" description="Grande Isle, Louisiana"/>
+ </place>
+
+ <place id="MITMediaLab" type="building" name="MIT Media Lab">
+ <resource id="mitmedialabhome" src="http://www.media.mit.edu/" description="MIT Media Lab"/>
+ </place>
+
+ <place id="Austin" type="city" name="Austin, Texas">
+ <resource id="austinwiki" src="http://en.wikipedia.org/wiki/Austin,_Texas" description="Austin, Texas"/>
+ </place>
+
+ <place id="NewYork" type="city" name="New York, New York">
+ <resource id="newyorkwiki" src="http://en.wikipedia.org/wiki/New_York_City" description="New York, New York"/>
+ </place>
+
+ <place id="Seoul" type="city" name="Seoul, Republic of South Korea">
+ <resource id="seoulwiki" src="http://en.wikipedia.org/wiki/Seoul" description="Seoul, Republic of South Korea"/>
+ </place>
+
+ <place id="Montreal" type="city" name="Montreal, Quebec">
+ <resource id="montrealwiki" src="http://en.wikipedia.org/wiki/Montreal" description="Montreal, Quebec"/>
+ </place>
+
+ <place id="harvard" type="building" name="Harvard Law School">
+ <resource id="harvardlawhome" src="http://www.law.harvard.edu/index.html" description="Harvard Law School"/>
+ </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/"/>
+ <attribution id="villagetelcoattrib" nameofwork="Village Telco" copyrightholder="Richard Mills" license="CC-BY-NC" licenseurl="http://creativecommons.org/licenses/by-nc/2.0/"/>
+ <attribution id="prodigyattrib" nameofwork="Prodigy Commercial" nameofworkurl="http://www.youtube.com/watch?v=TSlb7-FJr3k" />
+ <attribution id="compuserveattrib" nameofwork="1991 Compuserve Internet" nameworkurl="http://www.youtube.com/watch?v=TSlb7-FJr3k" />
+ <attribution id="aolattrib" nameofwork="1996 AOL Commercial" nameworkurl="http://www.youtube.com/watch?v=0kf1DBg5vJs" />
+ <attribution id="chronicles1attrib" nameofwork="Internet" nameworkurl="http://www.archive.org/details/CC1232_internet" copyrightholder="The Computer Chronicles" license="CC-BY-NC-ND" licenseurl="http://creativecommons.org/licenses/by-nc-nd/2.0/" />
+ <attribution id="chronicles2attrib" nameofwork="The Internet" nameworkurl="http://www.archive.org/details/episode_1134" copyrightholder="The Computer Chronicles" license="CC-BY-NC-ND" licenseurl="http://creativecommons.org/licenses/by-nc-nd/2.0/" />
+ <attribution id="bankattrib" nameofwork="Using the Bank (1947)" nameworkurl="http://www.archive.org/details/Usingthe1947" copyrightholder="The Prelinger Archives" />
+ <attribution id="networksattrib" nameofwork="Computer Networks - The Heralds of Resource Sharing" nameofworkurl="http://video.google.com/videoplay?docid=4989933629762859961#" copyrightholder="MIT"/>
+ </attributions>
+ <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"/>
+ <resource id="oilspill" src="http://en.wikipedia.org/wiki/Deepwater_Horizon_oil_spill" description="Deepwater Horizon Oil Spill"/>
+ <resource id="zittrain" src="http://en.wikipedia.org/wiki/Jonathan_Zittrain" description="Jonathan Zittrain"/>
+ <resource id="compuserve" src="http://en.wikipedia.org/wiki/Compuserve" description="Compuserve"/>
+ <resource id="aol" src="http://en.wikipedia.org/wiki/AOL" description="AOL"/>
+ <resource id="prodigy" src="http://en.wikipedia.org/wiki/Prodigy_%28online_service%29" description="Prodigy"/>
+ <resource id="internetprotocol" src="http://en.wikipedia.org/wiki/Internet_Protocol" description="Internet Protocol"/>
+ <resource id="timbernerslee" src="http://en.wikipedia.org/wiki/Tim_Berners-Lee" description="Tim Berners-Lee"/>
+ <resource id="worldwideweb" src="http://en.wikipedia.org/wiki/World_wide_web" description="World Wide Web"/>
+ <resource id="wikipedia" src="http://en.wikipedia.org/wiki/Wikipedia" description="Wikipedia"/>
+ <resource id="openstandards" src="http://en.wikipedia.org/wiki/Open_Standards" description="Open Standards"/>
+ </articles>
+ </manifest>
+
+ <timeline>
+
+ <footnotes>
+ <footnote in="00:00:00" out="00:14:00" target="footnotediv">Look around the page as info is updated!</footnote>
+ </footnotes>
+ <resources>
+ <footnote in="00:00:00" out="00:15:00" target="footnotediv">This video made exclusively for drumbeat.org </footnote>
+ <videotag target="inthisvideo" 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" lang="en" target="wikidiv"/>
+ <flickr in="00:00:05:02" out="00:00:10:07" target="personalflickr" userid="78868639@N00" numberofimages="8" padding="4px"/>
+ <googlenews in="00:00:05:02" out="00:00:10:07" target="googlenewsdiv" topic="Village Telco"/>
+
+ <twitter in="00:00:10:07" out="00:00:18:04" title="Oil Spill" source="#oilspill" target="twitter" width="238" height="120"/>
+ <googlenews in="00:00:10:07" out="00:00:18:04" target="googlenewsdiv" topic="Oil Spill"/>
+ <attribution in="00:00:10:07" out="00:00:18:04" target="container5">Grassroots Mapping, Tungsten Monkey</attribution>
+
+ <videotag target="inthisvideo" in="00:00:18:04" out="00:00:25:02">Keyboard Cat</videotag>
+ <twitter in="00:00:18:04" out="00:00:25:02" 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>
+ <googlenews in="00:00:18:04" out="00:00:25:02" target="googlenewsdiv" topic="Keyboard Cat"/>
+
+ <videotag target="inthisvideo" in="00:00:28:09" out="00:00:29:07">Jeffrey Warren</videotag>
+ <attribution in="00:00:28:09" out="00:00:29:07" target="container5">Grassroots Mapping, Tungsten Monkey</attribution>
+ <videotag target="inthisvideo" 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" resourceid="theinternet" numberOfWords="200" target="wikidiv"/>
+ <googlenews in="00:00:32:00" out="00:00:41:00" target="googlenewsdiv" topic="the internet"/>
+
+ <videotag target="inthisvideo" in="00:00:41:00" out="00:01:07:09">Jeffrey Warren</videotag>
+ <flickr in="00:00:41:00" out="00:01:07:09" target="personalflickr" userid="35034346917@N01" numberofimages="8" padding="4px"/>
+ <twitter in="00:00:41:00" out="00:01:07:09" title="Oil Spill" source="#oilspill" target="twitter" width="238" height="120"/>
+ <googlenews in="00:00:41:00" out="00:01:07:09" target="googlenewsdiv" topic="Oil Spill"/>
+ <location resourceid="grandislewiki" in="00:00:41:00" out="00:01:07:09" lat="29.2720" long="-90.0233 " target="container2" zoom="8"/>
+ <wiki in="00:00:41:00" out="00:01:07:09" resourceid="oilspill" numberOfWords="200" target="wikidiv"/>
+ <footnote in="00:00:41:00" out="00:01:07:09" target="footnotediv">Learn more about Grass Roots mapping at www.grassrootsmapping.org</footnote>
+ <twitter in="00:01:07:10" out="00:01:25:07" title="Steve Song" source="from:stevesong" target="personaltwitter" width="238" height="120"/>
+ <flickr in="00:01:07:10" out="00:01:25:07" target="personalflickr" userid="78868639@N00" numberofimages="8" padding="4px"/>
+ <location id="CapeTown" resourceid="capetownwiki" in="00:01:07:10" out="00:01:32:07" lat="-33.9238" long="18.4233" target="container2" zoom="8"/>
+ <wiki in="00:01:07:10" out="00:01:32:07" resourceid="villagetelco" numberOfWords="200" target="wikidiv"/>
+ <videotag target="inthisvideo" in="00:01:25:08" out="00:01:32:07">Michael Adeyeye</videotag>
+
+ <videotag target="inthisvideo" 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"/>
+ <location id="MITMediaLab" resourceid="mitmedialabhome" in="00:01:32:08" out="00:01:57:11" lat="42.3613" long="-71.0863" target="container2" zoom="12"/>
+ <videotag target="inthisvideo" in="00:01:38:02" out="00:01:41:10">Keyboard Cat</videotag>
+ <videotag target="inthisvideo" in="00:01:41:11" out="00:01:57:11">Charlie Schmidt</videotag>
+
+ <videotag target="inthisvideo" 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"/>
+ <location resourceid="harvardlawhome" in="00:02:09:00" out="00:03:07:05" lat="42.4222" long="-88.6137" target="container2" zoom="12"/>
+ <wiki in="00:02:09:00" out="00:02:20:00" resourceid="zittrain" numberOfWords="200" target="wikidiv"/>
+ <wiki in="00:02:20:01" out="00:02:23:00" resourceid="compuserve" numberOfWords="200" target="wikidiv"/>
+ <wiki in="00:02:23:01" out="00:02:26:00" resourceid="aol" numberOfWords="200" target="wikidiv"/>
+ <wiki in="00:02:26:01" out="00:02:33:00" resourceid="prodigy" numberOfWords="200" target="wikidiv"/>
+
+ <attribution in="00:02:15:09" out="00:02:17:00" target="container5" resourceid="compuserveattrib"></attribution>
+ <attribution in="00:02:17:01" out="00:02:20:00" target="container5" resourceid="aolattrib"></attribution>
+ <attribution in="00:02:20:01" out="00:02:17:00" target="container5" resourceid="compuserveattrib"></attribution>
+ <attribution in="00:02:17:01" out="00:02:26:00" target="container5" resourceid="aolattrib"></attribution>
+ <attribution in="00:02:26:01" out="00:02:33:00" target="container5" resourceid="prodigyattrib"></attribution>
+ <attribution in="00:02:37:00" out="00:02:47:00" target="container5" resourceid="networksattrib"></attribution>
+ <attribution in="00:02:47:01" out="00:02:55:00" target="container5" resourceid="bankattrib"></attribution>
+ <attribution in="00:03:07:10" out="00:03:29:00" target="container5" resourceid="bankattrib"></attribution>
+
+ <wiki in="00:02:41:00" out="00:02:57:00" resourceid="internetprotocol" numberOfWords="200" target="wikidiv"/>
+ <wiki in="00:02:57:01" out="00:03:03:00" resourceid="timbernerslee" numberOfWords="200" target="wikidiv"/>
+ <twitter in="00:02:57:01" out="00:03:03:00" title="Tim Berners-Lee" source="from:timberners_lee" target="twitter" width="238" height="120"/>
+
+ <googlenews in="00:02:57:01" out="00:03:03:00" target="googlenewsdiv" topic="Tim Berners-Lee"/>
+
+ <wiki in="00:03:03:01" out="00:03:28:00" resourceid="worldwideweb" numberOfWords="200" target="wikidiv"/>
+ <googlenews in="00:03:03:01" out="00:03:28:00" target="googlenewsdiv" topic="World Wide Web"/>
+
+ <googlenews in="00:03:28:00" out="00:03:32:00" target="googlenewsdiv" topic="Wikipedia"/>
+ <wiki in="00:03:28:01" out="00:03:32:00" resourceid="wikipedia" numberOfWords="200" target="wikidiv"/>
+
+ <wiki in="00:03:36:00" out="00:03:43:00" resourceid="openstandards" numberOfWords="200" target="wikidiv"/>
+
+ <videotag target="inthisvideo" in="00:03:09:00" out="00:03:16:00">NCSA guy</videotag>
+ <videotag target="inthisvideo" in="00:03:16:01" out="00:03:18:05">Computer Chronicles guy #1</videotag>
+ <videotag target="inthisvideo" in="00:03:16:02" out="00:03:21:00">Computer Chronicles guy #2</videotag>
+ <videotag target="inthisvideo" in="00:03:21:01" out="00:03:28:06">Computer Chronicles guy #3</videotag>
+
+ <videotag target="inthisvideo" 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"/>
+ <footnote in="00:03:43:00" out="00:03:57:00" target="footnotediv">Read Zittrain's book 'The Future of the Internet — And How to Stop It'</footnote>
+
+ <videotag target="inthisvideo" in="00:03:59:00" out="00:04:03:05">Mona Kasra</videotag>
+ <videotag target="inthisvideo" 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 target="inthisvideo" in="00:04:03:06" out="00:04:13:01">Wilken Sanches</videotag>
+ <attribution in="00:04:10:00" out="00:04:13:00" target="container5" resourceid="attrib"></attribution>
+ <videotag target="inthisvideo" 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 target="inthisvideo" 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="personalflickr" userid="13072070@N00" numberofimages="8" padding="4px"/>
+ <lastfm in="00:40:00" out="01:24:00" artist="yacht" target="lastfmdiv"/>
+
+ </resources>
+
+ <map>
+ <location resourceid="capetownwiki" in="00:00:03:00" out="00:00:11:07" lat="-33.9238" long="18.4233" target="container2" zoom="8"/>
+ <location resourceid="grandislewiki" in="00:00:11:07" out="00:00:19:07" lat="29.2720" long="-90.0233 " target="container2" zoom="8"/>
+ <location resourceid="mitmedialabhome" in="00:00:19:08" out="00:00:27:00" lat="42.3613" long="-71.0863" target="container2" zoom="12"/>
+
+ <location resourceid="austinwiki" in="00:03:59:00" out="00:04:03:05" lat="45.5089" long="-73.5542" target="container2" zoom="8"/>
+ <location resourceid="newyorkwiki" in="00:04:03:06" out="00:04:07:01" lat="40.7143" long="-74.0060" target="container2" zoom="8"/>
+ <location resourceid="saopaulowiki" in="00:04:07:02" out="00:04:13:01" lat="-23.5489" long="-46.6388 " target="container2" zoom="8"/>
+ <location resourceid="seoulwiki" in="00:04:13:02" out="00:04:19:05" lat="37.5665" long="126.9780" target="container2" zoom="8"/>
+ <location resourceid="montrealwiki" in="00:04:19:06" out="00:04:24:01" lat="45.5089" long="-73.5542 " target="container2" zoom="8"/>
+ </map>
+
+ <subtitles languagesrc="language" accessibilitysrc="accessibility">
+ <subtitles language="en" align="center">
+ <subtitle in="00:00:00:03" out="00:00:01:06">All right let's take a look and show me some</subtitle>
+ <subtitle in="00:00:01:06" out="00:00:03:00">of the 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:09:00">that exists between open source</subtitle>
+ <subtitle in="00:00:09:01" out="00:00:11:00">phone hackers in South Africa, </subtitle>
+ <subtitle in="00:00:12.5:00" out="00:00:16:00">adventurers using kites to map an oil spill, </subtitle>
+ <subtitle in="00:00:19:00" out="00:00:22:03">and a video of a cat seen by tens of millions of people?</subtitle>
+ <subtitle in="00:00:27:00" out="00:00:28:06">Well it's the Internet</subtitle>
+ <subtitle in="00:00:28:06" out="00:00:31:06">the cat, the kite, and the phone hackers</subtitle>
+ <subtitle in="00:00:31:07" out="00:00:33:06">would all be impossible without the Internet</subtitle>
+ <subtitle in="00:00:33:07" out="00:00:35:09">an open network that lets anyone</subtitle>
+ <subtitle in="00:00:35:10" out="00:00:37:11">participate without asking permission.</subtitle>
+ <subtitle in="00:00:39:00" out="00:00:41:11">The Internet is what lets M.I.T student Jeffrey Warren</subtitle>
+ <subtitle in="00:00:42:00" out="00:00:45:06">use kites to map an oil spill. </subtitle>
+ <subtitle in="00:00:47:06" out="00:00:48:07">well wait a second why do we have to go all the way</subtitle>
+ <subtitle in="00:00:48:08" out="00:00:50:00">into space to take pictures of things</subtitle>
+ <subtitle in="00:00:50:02" out="00:00:52:00">that are right, literally right next to us, you know. </subtitle>
+ <subtitle in="00:00:53:00" out="00:00:55:00">We can use simple tools like balloons or kites.</subtitle>
+ <subtitle in="00:00:55:06" 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:00:06" out="00:01:03:00">in producing maps and then share all of the information</subtitle>
+ <subtitle in="00:01:03:03" out="00:01:05:00">like Wikipedia style you know?</subtitle>
+ <subtitle in="00:01:06:00" out="00:01:08:09">The Internet is what allows Steve Song and his friends</subtitle>
+ <subtitle in="00:01:08:10" out="00:01:10:11">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:00" out="00:01:16:00">Everyone that has a device, that we call a mesh potato,</subtitle>
+ <subtitle in="00:01:16:00" out="00:01:18:00">actually has a phone number</subtitle>
+ <subtitle in="00:01:18:06" out="00:01:20:06">and can call anyone else on the mesh at no charge.</subtitle>
+ <subtitle in="00:01:21:06" out="00:01:24:06">So taking open-source principles to a telephone company.</subtitle>
+ <subtitle in="00:01:25:00" out="00:01:28:05">Everything is open, anyone can come and anyone can join</subtitle>
+ <subtitle in="00:01:29:05" out="00:01:31:00">anyone can make contributions </subtitle>
+ <subtitle in="00:01:31:00" out="00:01:32:00">and that's why I'm here.</subtitle>
+ <subtitle in="00:01:32:05" out="00:01:34:05">The Internet is what allowed Charlie Schmidt</subtitle>
+ <subtitle in="00:01:35:00" out="00:01:36:05">to film his cat on his keyboard</subtitle>
+ <subtitle in="00:01:37:00" out="00:01:38:00">and the rest is history. </subtitle>
+ <subtitle in="00:01:41:00" out="00:01:45:00">I remember having two profound thoughts back to back </subtitle>
+ <subtitle in="00:01:45:05" out="00:01:47:08">and the first one was any pervert in his basement </subtitle>
+ <subtitle in="00:01:48:02" out="00:01:51:00">can compete with NBC. </subtitle>
+ <subtitle in="00:01:52:04" out="00:01:58:00">And then I thought, ohh I am that pervert in his basement.</subtitle>
+ <subtitle in="00:01:58:04" out="00:01:59:05">It wasn't always this way</subtitle>
+ <subtitle in="00:02:00:05" out="00:02:02:05">before the web our computers could only network</subtitle>
+ <subtitle in="00:02:02:08" out="00:02:05:05">through a series of walled gardens, and we had to ask</subtitle>
+ <subtitle in="00:02:06:00" out="00:02:08:00">permission to publish our content or create new services.</subtitle>
+ <subtitle in="00:02:08:05" out="00:02:10:05">There were some big companies in there that thought</subtitle>
+ <subtitle in="00:02:11:00" out="00:02:13:01">they would run the mainframes that we </subtitle>
+ <subtitle in="00:02:13:02" out="00:02:16:05">might be mediating data through.</subtitle>
+ <subtitle in="00:02:15:00" out="00:02:18:03">CompuServe, America Online, The Source,</subtitle>
+ <subtitle in="00:02:18:04" out="00:02:19:12">MCI Mail,Prodigy.</subtitle>
+ <subtitle in="00:02:20:00" out="00:02:21:00">if you go to CompuServe,</subtitle>
+ <subtitle in="00:02:21:00" out="00:02:23:00">you'll get whatever CompuServe has put under its roof.</subtitle>
+ <subtitle in="00:02:23:00" out="00:02:26:00">If you subscribe to AOL you'll get whatever AOL has.</subtitle>
+ <subtitle in="00:02:26:00" out="00:02:28:06">Prodigy even has a twenty-one volume electronic</subtitle>
+ <subtitle in="00:02:28:06" out="00:02:30:00">encyclopedia that's updated quarterly</subtitle>
+ <subtitle in="00:02:30:00" out="00:02:32:00">including thirty messages.</subtitle>
+ <subtitle in="00:02:32:00" out="00:02:33:06">Alright, Prodigy :D</subtitle>
+ <subtitle in="00:02:33:06" out="00:02:37:00">No one really factored in that off in a quiet corner,</subtitle>
+ <subtitle in="00:02:37:00" out="00:02:40.5:00">there were tinkerers doing foundational technologies</subtitle>
+ <subtitle in="00:02:40:06" out="00:02:41:06">for networking,</subtitle>
+ <subtitle in="00:02:42:00" out="00:02:46:06">and they had a certain freedom that the firms didn't have.</subtitle>
+ <subtitle in="00:02:46:06" out="00:02:50:00">You didn't have to do a business development deal</subtitle>
+ <subtitle in="00:02:50:00" out="00:02:53:06">with the owner of the Internet...</subtitle>
+ <subtitle in="00:02:53:06" out="00:02:55:00">before you could put up a website.</subtitle>
+ <subtitle in="00:02:55:00" out="00:02:58:00">So that's what allowed Tim Berners-Lee</subtitle>
+ <subtitle in="00:02:58:00" out="00:03:00:00">to develop a protocol for an application,</subtitle>
+ <subtitle in="00:03:00:00" out="00:03:03:00">that would just run on top of the Internet,</subtitle>
+ <subtitle in="00:03:03:00" out="00:03:04:00">called the web.</subtitle>
+ <subtitle in="00:03:04:06" out="00:03:07:00">And then he was like, OK world go to it.</subtitle>
+ <subtitle in="00:03:09:00" out="00:03:11:00">Ordinary people are becoming electronic publishers.</subtitle>
+ <subtitle in="00:03:11:01" out="00:03:12:06">They are putting up the things</subtitle>
+ <subtitle in="00:03:12:07" out="00:03:14:00">that mean something to them</subtitle>
+ <subtitle in="00:03:14:01" out="00:03:16:00">and they want to share it with the rest of the world.</subtitle>
+ <subtitle in="00:03:16:01" out="00:03:18:00">Why is it better than CompuServe or Prodigy?</subtitle>
+ <subtitle in="00:03:18:01" out="00:03:19:09">That anyone can put any servers on </subtitle>
+ <subtitle in="00:03:19:10" out="00:03:21:06">and have it do anything they want.</subtitle>
+ <subtitle in="00:03:21:07" out="00:03:23:00">In fact most browsers have the ability</subtitle>
+ <subtitle in="00:03:23:01" out="00:03:24:06">for you to view that source code.</subtitle>
+ <subtitle in="00:03:24:07" out="00:03:26:02">I can go in then and start changing it</subtitle>
+ <subtitle in="00:03:26:03" out="00:03:27:10">myself for free. Ok great.</subtitle>
+ <subtitle in="00:03:27:11" out="00:03:29:09">Listen there’s even an encyclopedia</subtitle>
+ <subtitle in="00:03:29:10" out="00:03:31:06">Awesome. All right.</subtitle>
+ <subtitle in="00:03:31:09" out="00:03:34:00">We owe everything about the Internet</subtitle>
+ <subtitle in="00:03:34:01" out="00:03:36:00">to the fact that its open.</subtitle>
+ <subtitle in="00:03:36:01" out="00:03:38:00">And the hacker spirit that the people</subtitle>
+ <subtitle in="00:03:38:01" out="00:03:40:00">who created it believed it.</subtitle>
+ <subtitle in="00:03:40:01" out="00:03:42:04">But all that could change.</subtitle>
+ <subtitle in="00:03:42:06" out="00:03:44:10">The way things are… are not the way</subtitle>
+ <subtitle in="00:03:44:11" out="00:03:47:00">things will inevitably be.</subtitle>
+ <subtitle in="00:03:48:00" out="00:03:50:01">The Internet itself is evolving</subtitle>
+ <subtitle in="00:03:50:02" out="00:03:51:01">and can be pushed</subtitle>
+ <subtitle in="00:03:51:02" out="00:03:53:06">in one direction or another.</subtitle>
+ <subtitle in="00:03:53:07" out="00:03:55:09">And some futures are much better than others.</subtitle>
+ <subtitle in="00:03:55:10" out="00:03:57:06">It’s great to have the example of the World Wide Web.</subtitle>
+ <subtitle in="00:03:57:07" out="00:03:58:11">It’s great to have the example of Wikipedia.</subtitle>
+ <subtitle in="00:03:59:00" out="00:04:00:01">There’s more where that came from.</subtitle>
+
+ <subtitle in="00:04:17:00" out="00:04:19:00">And I help make a better Internet</subtitle>
+ <subtitle in="00:04:19:01" out="00:04:21:06">By making things easier to use</subtitle>
+ <subtitle in="00:04:22:09" out="00:04:24:00">At Web Made Movies</subtitle>
+ <subtitle in="00:04:24:01" out="00:04:26:03">we want to build a better Internet</subtitle>
+ <subtitle in="00:04:26:04" out="00:04:28:04">by making video more open.</subtitle>
+ <subtitle in="00:04:28:06" out="00:04:31:00">The page your watching is a good example</subtitle>
+ <subtitle in="00:04:31:06" out="00:04:34:05">We’re going to keep exploring how video</subtitle>
+ <subtitle in="00:04:34:06" out="00:04:35:06">can be more like the web.</subtitle>
+ <subtitle in="00:04:35:07" out="00:04:37:06">And tell the story of some web heroes</subtitle>
+ <subtitle in="00:04:37:07" out="00:04:38:06">along the way.</subtitle>
+ <subtitle in="00:04:39:02" out="00:04:40:08">Explore our credits section to see</subtitle>
+ <subtitle in="00:04:41:00" out="00:04:45:00">how you can get involved.</subtitle>
+ </subtitles>
+ <subtitles language="fa" align="center">
+ <subtitle in="00:04:00:08" out="00:04:01:09">My name is Mona Kasra</subtitle>
+ <subtitle in="00:04:01:10" out="00:04:03:11">and I'm building a better Internet</subtitle>
+ </subtitles>
+ <subtitles language="pt" align="center">
+ <subtitle in="00:04:05:03" out="00:04:07:00">I make the Internet better</subtitle>
+ <subtitle in="00:04:07:01" out="00:04:08:06">producing and sharing music</subtitle>
+ <subtitle in="00:04:08:07" out="00:04:10:01">using Creative Commons</subtitle>
+ </subtitles>
+ </subtitles>
+ <webpages>
+ <webpage in="00:04:00:08" out="00:04:19:00" target="iframes" resourceid="monahomepage" width="100"/>
+ <webpage in="00:04:19:06" out="00:04:24:01" target="iframes" resourceid="celinehomepage" width="100"/>
+ </webpages>
+ <script in="4:45:00" start="displayCredits" stop="removeCredits"/>
+ </timeline>
+</popcorn>
--- /dev/null
+<popcorn>
+ <manifest>
+ <people>
+ <person id="celine" name="Celine" salutation="Miss." >
+ <resource id="celinehomepage" src="http://www.celinecelines.com/" description="Celine's Homepage" />
+ </person>
+ <person id="brian" name="brian" >
+ </person>
+ <person id="SteveSong" name="Steve Song" >
+ </person>
+ <person id="mona" name="Mona" >
+ <resource id="monahomepage" src="http://www.monakasra.com/" description="Mona's Homepage"/>
+ </person>
+ <person id="dave" name="Dave" >
+ </person>
+ <person id="noah" name="Noah" >
+ </person>
+ </people>
+ <places>
+ <place id="saopaulo" type="city" name="Sao Paulo">
+ <resource id="saopaulowiki" src="http://en.wikipedia.org/wiki/S%C3%A3o_Paulo" description="Sao Paulo city, Brazil"/>
+ </place>
+
+ <place id="CapeTown" type="city" name="Cape Town">
+ <resource id="capetownwiki" src="http://en.wikipedia.org/wiki/Cape_Town" description="Cape Town, South Africa"/>
+ </place>
+
+ <place id="GrandIsle" type="city" name="Grande Isle, Louisiana">
+ <resource id="grandeislewiki" src="http://en.wikipedia.org/wiki/Grand_Isle,_Louisiana" description="Grande Isle, Louisiana"/>
+ </place>
+
+ <place id="MITMediaLab" type="building" name="MIT Media Lab">
+ <resource id="mitmedialabhome" src="http://www.media.mit.edu/" description="MIT Media Lab"/>
+ </place>
+
+ <place id="Austin" type="city" name="Austin, Texas">
+ <resource id="austinwiki" src="http://en.wikipedia.org/wiki/Austin,_Texas" description="Austin, Texas"/>
+ </place>
+
+ <place id="NewYork" type="city" name="New York, New York">
+ <resource id="newyorkwiki" src="http://en.wikipedia.org/wiki/New_York_City" description="New York, New York"/>
+ </place>
+
+ <place id="Seoul" type="city" name="Seoul, Republic of South Korea">
+ <resource id="seoulwiki" src="http://en.wikipedia.org/wiki/Seoul" description="Seoul, Republic of South Korea"/>
+ </place>
+
+ <place id="Montreal" type="city" name="Montreal, Quebec">
+ <resource id="montrealwiki" src="http://en.wikipedia.org/wiki/Montreal" description="Montreal, Quebec"/>
+ </place>
+
+ <place id="harvard" type="building" name="Harvard Law School">
+ <resource id="harvardlawhome" src="http://www.law.harvard.edu/index.html" description="Harvard Law School"/>
+ </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/"/>
+ <attribution id="villagetelcoattrib" nameofwork="Village Telco" copyrightholder="Richard Mills" license="CC-BY-NC" licenseurl="http://creativecommons.org/licenses/by-nc/2.0/"/>
+ <attribution id="prodigyattrib" nameofwork="Prodigy Commercial" nameofworkurl="http://www.youtube.com/watch?v=TSlb7-FJr3k" />
+ <attribution id="compuserveattrib" nameofwork="1991 Compuserve Internet" nameworkurl="http://www.youtube.com/watch?v=TSlb7-FJr3k" />
+ <attribution id="aolattrib" nameofwork="1996 AOL Commercial" nameworkurl="http://www.youtube.com/watch?v=0kf1DBg5vJs" />
+ <attribution id="chronicles1attrib" nameofwork="Internet" nameworkurl="http://www.archive.org/details/CC1232_internet" copyrightholder="The Computer Chronicles" license="CC-BY-NC-ND" licenseurl="http://creativecommons.org/licenses/by-nc-nd/2.0/" />
+ <attribution id="chronicles2attrib" nameofwork="The Internet" nameworkurl="http://www.archive.org/details/episode_1134" copyrightholder="The Computer Chronicles" license="CC-BY-NC-ND" licenseurl="http://creativecommons.org/licenses/by-nc-nd/2.0/" />
+ <attribution id="bankattrib" nameofwork="Using the Bank (1947)" nameworkurl="http://www.archive.org/details/Usingthe1947" copyrightholder="The Prelinger Archives" />
+ <attribution id="networksattrib" nameofwork="Computer Networks - The Heralds of Resource Sharing" nameofworkurl="http://video.google.com/videoplay?docid=4989933629762859961#" copyrightholder="MIT"/>
+ </attributions>
+ <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"/>
+ <resource id="oilspill" src="http://en.wikipedia.org/wiki/Deepwater_Horizon_oil_spill" description="Deepwater Horizon Oil Spill"/>
+ <resource id="zittrain" src="http://en.wikipedia.org/wiki/Jonathan_Zittrain" description="Jonathan Zittrain"/>
+ <resource id="compuserve" src="http://en.wikipedia.org/wiki/Compuserve" description="Compuserve"/>
+ <resource id="aol" src="http://en.wikipedia.org/wiki/AOL" description="AOL"/>
+ <resource id="prodigy" src="http://en.wikipedia.org/wiki/Prodigy_%28online_service%29" description="Prodigy"/>
+ <resource id="internetprotocol" src="http://en.wikipedia.org/wiki/Internet_Protocol" description="Internet Protocol"/>
+ <resource id="timbernerslee" src="http://en.wikipedia.org/wiki/Tim_Berners-Lee" description="Tim Berners-Lee"/>
+ <resource id="worldwideweb" src="http://en.wikipedia.org/wiki/World_wide_web" description="World Wide Web"/>
+ <resource id="wikipedia" src="http://en.wikipedia.org/wiki/Wikipedia" description="Wikipedia"/>
+ <resource id="openstandards" src="http://en.wikipedia.org/wiki/Open_Standards" description="Open Standards"/>
+ </articles>
+ </manifest>
+
+ <timeline>
+
+ <footnotes>
+ <footnote in="00:00:00" out="00:14:00" target="footnotediv">Look around the page as info is updated!</footnote>
+ </footnotes>
+ <resources>
+ <footnote in="00:00:00" out="00:15:00" target="footnotediv">This video made exclusively for drumbeat.org </footnote>
+ <videotag target="inthisvideo" 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" lang="en" target="wikidiv"/>
+ <flickr in="00:00:05:02" out="00:00:10:07" target="personalflickr" userid="78868639@N00" numberofimages="8" padding="4px"/>
+ <googlenews in="00:00:05:02" out="00:00:10:07" target="googlenewsdiv" topic="Village Telco"/>
+
+ <twitter in="00:00:10:07" out="00:00:18:04" title="Oil Spill" source="#oilspill" target="twitter" width="238" height="120"/>
+ <googlenews in="00:00:10:07" out="00:00:18:04" target="googlenewsdiv" topic="Oil Spill"/>
+ <attribution in="00:00:10:07" out="00:00:18:04" target="container5">Grassroots Mapping, Tungsten Monkey</attribution>
+
+ <videotag target="inthisvideo" in="00:00:18:04" out="00:00:25:02">Keyboard Cat</videotag>
+ <twitter in="00:00:18:04" out="00:00:25:02" 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>
+ <googlenews in="00:00:18:04" out="00:00:25:02" target="googlenewsdiv" topic="Keyboard Cat"/>
+
+ <videotag target="inthisvideo" in="00:00:28:09" out="00:00:29:07">Jeffrey Warren</videotag>
+ <attribution in="00:00:28:09" out="00:00:29:07" target="container5">Grassroots Mapping, Tungsten Monkey</attribution>
+ <videotag target="inthisvideo" 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" resourceid="theinternet" numberOfWords="200" target="wikidiv"/>
+ <googlenews in="00:00:32:00" out="00:00:41:00" target="googlenewsdiv" topic="the internet"/>
+
+ <videotag target="inthisvideo" in="00:00:41:00" out="00:01:07:09">Jeffrey Warren</videotag>
+ <flickr in="00:00:41:00" out="00:01:07:09" target="personalflickr" userid="35034346917@N01" numberofimages="8" padding="4px"/>
+ <twitter in="00:00:41:00" out="00:01:07:09" title="Oil Spill" source="#oilspill" target="twitter" width="238" height="120"/>
+ <googlenews in="00:00:41:00" out="00:01:07:09" target="googlenewsdiv" topic="Oil Spill"/>
+ <location resourceid="grandislewiki" in="00:00:41:00" out="00:01:07:09" lat="29.2720" long="-90.0233 " target="container2" zoom="8"/>
+ <wiki in="00:00:41:00" out="00:01:07:09" resourceid="oilspill" numberOfWords="200" target="wikidiv"/>
+ <footnote in="00:00:41:00" out="00:01:07:09" target="footnotediv">Learn more about Grass Roots mapping at www.grassrootsmapping.org</footnote>
+ <twitter in="00:01:07:10" out="00:01:25:07" title="Steve Song" source="from:stevesong" target="personaltwitter" width="238" height="120"/>
+ <flickr in="00:01:07:10" out="00:01:25:07" target="personalflickr" userid="78868639@N00" numberofimages="8" padding="4px"/>
+ <location id="CapeTown" resourceid="capetownwiki" in="00:01:07:10" out="00:01:32:07" lat="-33.9238" long="18.4233" target="container2" zoom="8"/>
+ <wiki in="00:01:07:10" out="00:01:32:07" resourceid="villagetelco" numberOfWords="200" target="wikidiv"/>
+ <videotag target="inthisvideo" in="00:01:25:08" out="00:01:32:07">Michael Adeyeye</videotag>
+
+ <videotag target="inthisvideo" 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"/>
+ <location id="MITMediaLab" resourceid="mitmedialabhome" in="00:01:32:08" out="00:01:57:11" lat="42.3613" long="-71.0863" target="container2" zoom="12"/>
+ <videotag target="inthisvideo" in="00:01:38:02" out="00:01:41:10">Keyboard Cat</videotag>
+ <videotag target="inthisvideo" in="00:01:41:11" out="00:01:57:11">Charlie Schmidt</videotag>
+
+ <videotag target="inthisvideo" 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"/>
+ <location resourceid="harvardlawhome" in="00:02:09:00" out="00:03:07:05" lat="42.4222" long="-88.6137" target="container2" zoom="12"/>
+ <wiki in="00:02:09:00" out="00:02:20:00" resourceid="zittrain" numberOfWords="200" target="wikidiv"/>
+ <wiki in="00:02:20:01" out="00:02:23:00" resourceid="compuserve" numberOfWords="200" target="wikidiv"/>
+ <wiki in="00:02:23:01" out="00:02:26:00" resourceid="aol" numberOfWords="200" target="wikidiv"/>
+ <wiki in="00:02:26:01" out="00:02:33:00" resourceid="prodigy" numberOfWords="200" target="wikidiv"/>
+
+ <attribution in="00:02:15:09" out="00:02:17:00" target="container5" resourceid="compuserveattrib"></attribution>
+ <attribution in="00:02:17:01" out="00:02:20:00" target="container5" resourceid="aolattrib"></attribution>
+ <attribution in="00:02:20:01" out="00:02:17:00" target="container5" resourceid="compuserveattrib"></attribution>
+ <attribution in="00:02:17:01" out="00:02:26:00" target="container5" resourceid="aolattrib"></attribution>
+ <attribution in="00:02:26:01" out="00:02:33:00" target="container5" resourceid="prodigyattrib"></attribution>
+ <attribution in="00:02:37:00" out="00:02:47:00" target="container5" resourceid="networksattrib"></attribution>
+ <attribution in="00:02:47:01" out="00:02:55:00" target="container5" resourceid="bankattrib"></attribution>
+ <attribution in="00:03:07:10" out="00:03:29:00" target="container5" resourceid="bankattrib"></attribution>
+
+ <wiki in="00:02:41:00" out="00:02:57:00" resourceid="internetprotocol" numberOfWords="200" target="wikidiv"/>
+ <wiki in="00:02:57:01" out="00:03:03:00" resourceid="timbernerslee" numberOfWords="200" target="wikidiv"/>
+ <twitter in="00:02:57:01" out="00:03:03:00" title="Tim Berners-Lee" source="from:timberners_lee" target="twitter" width="238" height="120"/>
+
+ <googlenews in="00:02:57:01" out="00:03:03:00" target="googlenewsdiv" topic="Tim Berners-Lee"/>
+
+ <wiki in="00:03:03:01" out="00:03:28:00" resourceid="worldwideweb" numberOfWords="200" target="wikidiv"/>
+ <googlenews in="00:03:03:01" out="00:03:28:00" target="googlenewsdiv" topic="World Wide Web"/>
+
+ <googlenews in="00:03:28:00" out="00:03:32:00" target="googlenewsdiv" topic="Wikipedia"/>
+ <wiki in="00:03:28:01" out="00:03:32:00" resourceid="wikipedia" numberOfWords="200" target="wikidiv"/>
+
+ <wiki in="00:03:36:00" out="00:03:43:00" resourceid="openstandards" numberOfWords="200" target="wikidiv"/>
+
+ <videotag target="inthisvideo" in="00:03:09:00" out="00:03:16:00">NCSA guy</videotag>
+ <videotag target="inthisvideo" in="00:03:16:01" out="00:03:18:05">Computer Chronicles guy #1</videotag>
+ <videotag target="inthisvideo" in="00:03:16:02" out="00:03:21:00">Computer Chronicles guy #2</videotag>
+ <videotag target="inthisvideo" in="00:03:21:01" out="00:03:28:06">Computer Chronicles guy #3</videotag>
+
+ <videotag target="inthisvideo" 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"/>
+ <footnote in="00:03:43:00" out="00:03:57:00" target="footnotediv">Read Zittrain's book 'The Future of the Internet — And How to Stop It'</footnote>
+
+ <videotag target="inthisvideo" in="00:03:59:00" out="00:04:03:05">Mona Kasra</videotag>
+ <videotag target="inthisvideo" 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 target="inthisvideo" in="00:04:03:06" out="00:04:13:01">Wilken Sanches</videotag>
+ <attribution in="00:04:10:00" out="00:04:13:00" target="container5" resourceid="attrib"></attribution>
+ <videotag target="inthisvideo" 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 target="inthisvideo" 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="personalflickr" userid="13072070@N00" numberofimages="8" padding="4px"/>
+ <lastfm in="00:40:00" out="01:24:00" artist="yacht" target="lastfmdiv"/>
+
+ </resources>
+
+ <map>
+ <location resourceid="capetownwiki" in="00:00:03:00" out="00:00:11:07" lat="-33.9238" long="18.4233" target="container2" zoom="8"/>
+ <location resourceid="grandislewiki" in="00:00:11:07" out="00:00:19:07" lat="29.2720" long="-90.0233 " target="container2" zoom="8"/>
+ <location resourceid="mitmedialabhome" in="00:00:19:08" out="00:00:27:00" lat="42.3613" long="-71.0863" target="container2" zoom="12"/>
+
+ <location resourceid="austinwiki" in="00:03:59:00" out="00:04:03:05" lat="45.5089" long="-73.5542" target="container2" zoom="8"/>
+ <location resourceid="newyorkwiki" in="00:04:03:06" out="00:04:07:01" lat="40.7143" long="-74.0060" target="container2" zoom="8"/>
+ <location resourceid="saopaulowiki" in="00:04:07:02" out="00:04:13:01" lat="-23.5489" long="-46.6388 " target="container2" zoom="8"/>
+ <location resourceid="seoulwiki" in="00:04:13:02" out="00:04:19:05" lat="37.5665" long="126.9780" target="container2" zoom="8"/>
+ <location resourceid="montrealwiki" in="00:04:19:06" out="00:04:24:01" lat="45.5089" long="-73.5542 " target="container2" zoom="8"/>
+ </map>
+
+ <subtitles languagesrc="language" accessibilitysrc="accessibility">
+ <subtitles language="en" align="center">
+ <subtitle in="00:00:00:03" out="00:00:01:06">All right let's take a look and show me some</subtitle>
+ <subtitle in="00:00:01:06" out="00:00:03:00">of the 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:09:00">that exists between open source</subtitle>
+ <subtitle in="00:00:09:01" out="00:00:11:00">phone hackers in South Africa, </subtitle>
+ <subtitle in="00:00:12.5:00" out="00:00:16:00">adventurers using kites to map an oil spill, </subtitle>
+ <subtitle in="00:00:19:00" out="00:00:22:03">and a video of a cat seen by tens of millions of people?</subtitle>
+ <subtitle in="00:00:27:00" out="00:00:28:06">Well it's the Internet</subtitle>
+ <subtitle in="00:00:28:06" out="00:00:31:06">the cat, the kite, and the phone hackers</subtitle>
+ <subtitle in="00:00:31:07" out="00:00:33:06">would all be impossible without the Internet</subtitle>
+ <subtitle in="00:00:33:07" out="00:00:35:09">an open network that lets anyone</subtitle>
+ <subtitle in="00:00:35:10" out="00:00:37:11">participate without asking permission.</subtitle>
+ <subtitle in="00:00:39:00" out="00:00:41:11">The Internet is what lets M.I.T student Jeffrey Warren</subtitle>
+ <subtitle in="00:00:42:00" out="00:00:45:06">use kites to map an oil spill. </subtitle>
+ <subtitle in="00:00:47:06" out="00:00:48:07">well wait a second why do we have to go all the way</subtitle>
+ <subtitle in="00:00:48:08" out="00:00:50:00">into space to take pictures of things</subtitle>
+ <subtitle in="00:00:50:02" out="00:00:52:00">that are right, literally right next to us, you know. </subtitle>
+ <subtitle in="00:00:53:00" out="00:00:55:00">We can use simple tools like balloons or kites.</subtitle>
+ <subtitle in="00:00:55:06" 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:00:06" out="00:01:03:00">in producing maps and then share all of the information</subtitle>
+ <subtitle in="00:01:03:03" out="00:01:05:00">like Wikipedia style you know?</subtitle>
+ <subtitle in="00:01:06:00" out="00:01:08:09">The Internet is what allows Steve Song and his friends</subtitle>
+ <subtitle in="00:01:08:10" out="00:01:10:11">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:00" out="00:01:16:00">Everyone that has a device, that we call a mesh potato,</subtitle>
+ <subtitle in="00:01:16:00" out="00:01:18:00">actually has a phone number</subtitle>
+ <subtitle in="00:01:18:06" out="00:01:20:06">and can call anyone else on the mesh at no charge.</subtitle>
+ <subtitle in="00:01:21:06" out="00:01:24:06">So taking open-source principles to a telephone company.</subtitle>
+ <subtitle in="00:01:25:00" out="00:01:28:05">Everything is open, anyone can come and anyone can join</subtitle>
+ <subtitle in="00:01:29:05" out="00:01:31:00">anyone can make contributions </subtitle>
+ <subtitle in="00:01:31:00" out="00:01:32:00">and that's why I'm here.</subtitle>
+ <subtitle in="00:01:32:05" out="00:01:34:05">The Internet is what allowed Charlie Schmidt</subtitle>
+ <subtitle in="00:01:35:00" out="00:01:36:05">to film his cat on his keyboard</subtitle>
+ <subtitle in="00:01:37:00" out="00:01:38:00">and the rest is history. </subtitle>
+ <subtitle in="00:01:41:00" out="00:01:45:00">I remember having two profound thoughts back to back </subtitle>
+ <subtitle in="00:01:45:05" out="00:01:47:08">and the first one was any pervert in his basement </subtitle>
+ <subtitle in="00:01:48:02" out="00:01:51:00">can compete with NBC. </subtitle>
+ <subtitle in="00:01:52:04" out="00:01:58:00">And then I thought, ohh I am that pervert in his basement.</subtitle>
+ <subtitle in="00:01:58:04" out="00:01:59:05">It wasn't always this way</subtitle>
+ <subtitle in="00:02:00:05" out="00:02:02:05">before the web our computers could only network</subtitle>
+ <subtitle in="00:02:02:08" out="00:02:05:05">through a series of walled gardens, and we had to ask</subtitle>
+ <subtitle in="00:02:06:00" out="00:02:08:00">permission to publish our content or create new services.</subtitle>
+ <subtitle in="00:02:08:05" out="00:02:10:05">There were some big companies in there that thought</subtitle>
+ <subtitle in="00:02:11:00" out="00:02:13:01">they would run the mainframes that we </subtitle>
+ <subtitle in="00:02:13:02" out="00:02:16:05">might be mediating data through.</subtitle>
+ <subtitle in="00:02:15:00" out="00:02:18:03">CompuServe, America Online, The Source,</subtitle>
+ <subtitle in="00:02:18:04" out="00:02:19:12">MCI Mail,Prodigy.</subtitle>
+ <subtitle in="00:02:20:00" out="00:02:21:00">if you go to CompuServe,</subtitle>
+ <subtitle in="00:02:21:00" out="00:02:23:00">you'll get whatever CompuServe has put under its roof.</subtitle>
+ <subtitle in="00:02:23:00" out="00:02:26:00">If you subscribe to AOL you'll get whatever AOL has.</subtitle>
+ <subtitle in="00:02:26:00" out="00:02:28:06">Prodigy even has a twenty-one volume electronic</subtitle>
+ <subtitle in="00:02:28:06" out="00:02:30:00">encyclopedia that's updated quarterly</subtitle>
+ <subtitle in="00:02:30:00" out="00:02:32:00">including thirty messages.</subtitle>
+ <subtitle in="00:02:32:00" out="00:02:33:06">Alright, Prodigy :D</subtitle>
+ <subtitle in="00:02:33:06" out="00:02:37:00">No one really factored in that off in a quiet corner,</subtitle>
+ <subtitle in="00:02:37:00" out="00:02:40.5:00">there were tinkerers doing foundational technologies</subtitle>
+ <subtitle in="00:02:40:06" out="00:02:41:06">for networking,</subtitle>
+ <subtitle in="00:02:42:00" out="00:02:46:06">and they had a certain freedom that the firms didn't have.</subtitle>
+ <subtitle in="00:02:46:06" out="00:02:50:00">You didn't have to do a business development deal</subtitle>
+ <subtitle in="00:02:50:00" out="00:02:53:06">with the owner of the Internet...</subtitle>
+ <subtitle in="00:02:53:06" out="00:02:55:00">before you could put up a website.</subtitle>
+ <subtitle in="00:02:55:00" out="00:02:58:00">So that's what allowed Tim Berners-Lee</subtitle>
+ <subtitle in="00:02:58:00" out="00:03:00:00">to develop a protocol for an application,</subtitle>
+ <subtitle in="00:03:00:00" out="00:03:03:00">that would just run on top of the Internet,</subtitle>
+ <subtitle in="00:03:03:00" out="00:03:04:00">called the web.</subtitle>
+ <subtitle in="00:03:04:06" out="00:03:07:00">And then he was like, OK world go to it.</subtitle>
+ <subtitle in="00:03:09:00" out="00:03:11:00">Ordinary people are becoming electronic publishers.</subtitle>
+ <subtitle in="00:03:11:01" out="00:03:12:06">They are putting up the things</subtitle>
+ <subtitle in="00:03:12:07" out="00:03:14:00">that mean something to them</subtitle>
+ <subtitle in="00:03:14:01" out="00:03:16:00">and they want to share it with the rest of the world.</subtitle>
+ <subtitle in="00:03:16:01" out="00:03:18:00">Why is it better than CompuServe or Prodigy?</subtitle>
+ <subtitle in="00:03:18:01" out="00:03:19:09">That anyone can put any servers on </subtitle>
+ <subtitle in="00:03:19:10" out="00:03:21:06">and have it do anything they want.</subtitle>
+ <subtitle in="00:03:21:07" out="00:03:23:00">In fact most browsers have the ability</subtitle>
+ <subtitle in="00:03:23:01" out="00:03:24:06">for you to view that source code.</subtitle>
+ <subtitle in="00:03:24:07" out="00:03:26:02">I can go in then and start changing it</subtitle>
+ <subtitle in="00:03:26:03" out="00:03:27:10">myself for free. Ok great.</subtitle>
+ <subtitle in="00:03:27:11" out="00:03:29:09">Listen there’s even an encyclopedia</subtitle>
+ <subtitle in="00:03:29:10" out="00:03:31:06">Awesome. All right.</subtitle>
+ <subtitle in="00:03:31:09" out="00:03:34:00">We owe everything about the Internet</subtitle>
+ <subtitle in="00:03:34:01" out="00:03:36:00">to the fact that its open.</subtitle>
+ <subtitle in="00:03:36:01" out="00:03:38:00">And the hacker spirit that the people</subtitle>
+ <subtitle in="00:03:38:01" out="00:03:40:00">who created it believed it.</subtitle>
+ <subtitle in="00:03:40:01" out="00:03:42:04">But all that could change.</subtitle>
+ <subtitle in="00:03:42:06" out="00:03:44:10">The way things are… are not the way</subtitle>
+ <subtitle in="00:03:44:11" out="00:03:47:00">things will inevitably be.</subtitle>
+ <subtitle in="00:03:48:00" out="00:03:50:01">The Internet itself is evolving</subtitle>
+ <subtitle in="00:03:50:02" out="00:03:51:01">and can be pushed</subtitle>
+ <subtitle in="00:03:51:02" out="00:03:53:06">in one direction or another.</subtitle>
+ <subtitle in="00:03:53:07" out="00:03:55:09">And some futures are much better than others.</subtitle>
+ <subtitle in="00:03:55:10" out="00:03:57:06">It’s great to have the example of the World Wide Web.</subtitle>
+ <subtitle in="00:03:57:07" out="00:03:58:11">It’s great to have the example of Wikipedia.</subtitle>
+ <subtitle in="00:03:59:00" out="00:04:00:01">There’s more where that came from.</subtitle>
+
+ <subtitle in="00:04:17:00" out="00:04:19:00">And I help make a better Internet</subtitle>
+ <subtitle in="00:04:19:01" out="00:04:21:06">By making things easier to use</subtitle>
+ <subtitle in="00:04:22:09" out="00:04:24:00">At Web Made Movies</subtitle>
+ <subtitle in="00:04:24:01" out="00:04:26:03">we want to build a better Internet</subtitle>
+ <subtitle in="00:04:26:04" out="00:04:28:04">by making video more open.</subtitle>
+ <subtitle in="00:04:28:06" out="00:04:31:00">The page your watching is a good example</subtitle>
+ <subtitle in="00:04:31:06" out="00:04:34:05">We’re going to keep exploring how video</subtitle>
+ <subtitle in="00:04:34:06" out="00:04:35:06">can be more like the web.</subtitle>
+ <subtitle in="00:04:35:07" out="00:04:37:06">And tell the story of some web heroes</subtitle>
+ <subtitle in="00:04:37:07" out="00:04:38:06">along the way.</subtitle>
+ <subtitle in="00:04:39:02" out="00:04:40:08">Explore our credits section to see</subtitle>
+ <subtitle in="00:04:41:00" out="00:04:45:00">how you can get involved.</subtitle>
+ </subtitles>
+ <subtitles language="fa" align="center">
+ <subtitle in="00:04:00:08" out="00:04:01:09">My name is Mona Kasra</subtitle>
+ <subtitle in="00:04:01:10" out="00:04:03:11">and I'm building a better Internet</subtitle>
+ </subtitles>
+ <subtitles language="pt" align="center">
+ <subtitle in="00:04:05:03" out="00:04:07:00">I make the Internet better</subtitle>
+ <subtitle in="00:04:07:01" out="00:04:08:06">producing and sharing music</subtitle>
+ <subtitle in="00:04:08:07" out="00:04:10:01">using Creative Commons</subtitle>
+ </subtitles>
+ </subtitles>
+ <webpages>
+ <webpage in="00:04:00:08" out="00:04:19:00" target="iframes" resourceid="monahomepage" />
+ <webpage in="00:04:19:06" out="00:04:24:01" target="iframes" resourceid="celinehomepage" />
+ </webpages>
+ <script in="4:45:00" start="displayCredits" stop="removeCredits"/>
+ </timeline>
+</popcorn>
+<<<<<<< HEAD
(function(global, document) {
// Cache refs to speed up calls to native utils
global.Popcorn = Popcorn;
})(window, window.document);
+=======
+/*global google: false, $: false, TWTR: false, jQuery: false*/ // This global comment is read by jslint
+
+(function() {
+ function getScript(url, test, success) {
+ if (test === 'undefined') {
+ var script = document.createElement('script');
+ script.src = url;
+ var head = document.getElementsByTagName('head')[0],
+ done = false;
+ script.onload = script.onreadystatechange = function () {
+ if (!done && (!this.readyState || this.readyState === 'loaded' || this.readyState === 'complete')) {
+ done = true;
+ success();
+ }
+ };
+ head.appendChild(script);
+ } else {
+ success();
+ }
+ }
+
+ var popcorn = this.popcorn = {};
+
+ // The video manager manages a single video element, and all it's commands.
+ popcorn.VideoManager = function(videoElement) {
+ this.commandObjects = {};
+ this.manifestObjects = {};
+ this.videoElement = videoElement;
+ videoElement.videoManager = this;
+ popcorn.addInstance(this);
+ videoElement.setAttribute("ontimeupdate", "popcorn.update(this);");
+ };
+
+ popcorn.VideoManager.prototype.addCommand = function(command) {
+ this.commandObjects[command.id] = command;
+ };
+
+ popcorn.VideoManager.prototype.removeCommand = function(command) {
+ delete this.commandObjects[command.id];
+ };
+
+ popcorn.VideoManager.prototype.addManifestObject = function(manifestAttributes) {
+ var manifest = {},
+ manifestId = "";
+ for (var i = 0, pl = manifestAttributes.length; i < pl; i++) {
+ for (var j = 0, nl = manifestAttributes[i].length; j < nl; j++) {
+ var key = manifestAttributes[i].item(j).nodeName,
+ data = manifestAttributes[i].item(j).nodeValue;
+ if (key === "id") {
+ manifestId = data;
+ } else {
+ manifest[key] = data;
+ }
+ }
+ }
+ this.manifestObjects[manifestId] = manifest;
+ };
+
+ popcorn.VideoManager.prototype.removeManifestObject = function(itemId) {
+ delete this.manifestObjects[itemId];
+ };
+
+ popcorn.VideoManager.prototype.loaded = function() {};
+
+ var inactiveTarget = {};
+
+ // Update is called on the video every time it's time changes.
+ popcorn.update = function(vid) {
+ var t = vid.currentTime,
+ commandObject = {}; // Loops through all commands in the manager, preloading data, and calling onIn() or onOut().
+ for (var i in vid.videoManager.commandObjects) {
+ if (vid.videoManager.commandObjects.hasOwnProperty(i)) {
+ commandObject = vid.videoManager.commandObjects[i];
+ if (commandObject.running && (commandObject.params["in"] > t || commandObject.params["out"] < t)) {
+ commandObject.running = false;
+ if (inactiveTarget[commandObject.params.target] <= 0 || --inactiveTarget[commandObject.params.target] <= 0) {
+ $("#" + commandObject.params.target + " .inactive").fadeIn(500);
+ }
+ commandObject.onOut();
+ commandObject.extension.onOut();
+ }
+ }
+ }
+ for (var j in vid.videoManager.commandObjects) {
+ if (vid.videoManager.commandObjects.hasOwnProperty(j)) {
+ commandObject = vid.videoManager.commandObjects[j];
+ if (!commandObject.loaded && (commandObject.params["in"] - 5) < t && commandObject.params["out"] > t) {
+ commandObject.loaded = true;
+ commandObject.preload();
+ }
+ if (!commandObject.running && commandObject.params["in"] < t && commandObject.params["out"] > t) {
+ commandObject.running = true;
+
+ $("#" + commandObject.params.target + " .inactive").hide();
+ inactiveTarget[commandObject.params.target]++;
+
+ if (commandObject.params.target) {
+ $("#" + commandObject.params.target + " .overlay").show().fadeOut(500);
+ }
+ if (typeof commandObject.flash === "undefined") {
+ var section = $(commandObject.target).parents('section');
+ if (!section.hasClass('hover')) {
+ section.addClass('hover');
+ section.attr('hoveron', $('video')[0].currentTime);
+ }
+ }
+ commandObject.onIn();
+ commandObject.extension.onIn();
+ }
+ }
+ }
+ };
+
+ // Store VideoManager instances
+ popcorn.instances = [];
+ popcorn.instanceIds = {};
+ popcorn.addInstance = function(manager) {
+ if (typeof manager.videoElement.id === 'undefined' || !manager.videoElement.id.length) {
+ manager.videoElement.id = "__video" + popcorn.instances.length;
+ }
+ popcorn.instanceIds[manager.videoElement.id] = popcorn.instances.length;
+ popcorn.instances.push(manager);
+ };
+
+ popcorn.getInstanceById = function(name) {
+ return popcorn.instances[popcorn.instanceIds[name]];
+ };
+
+ popcorn.getInstance = function(index) {
+ return popcorn.instances[index];
+ };
+
+ // Simple function to convert 0:05 to 0.5 in seconds
+ // acceptable formats are HH:MM:SS:MM, MM:SS:MM, SS:MM, SS
+ var toSeconds = function(time) {
+ var t = time.split(":");
+ if (t.length === 1) {
+ return parseFloat(t[0], 10);
+ } else if (t.length === 2) {
+ return parseFloat(t[0], 10) + parseFloat(t[1] / 12, 10);
+ } else if (t.length === 3) {
+ return parseInt(t[0] * 60, 10) + parseFloat(t[1], 10) + parseFloat(t[2] / 12, 10);
+ } else if (t.length === 4) {
+ return parseInt(t[0] * 3600, 10) + parseInt(t[1] * 60, 10) + parseFloat(t[2], 10) + parseFloat(t[3] / 12, 10);
+ }
+ };
+
+ var offset = function(elem) {
+ if(!elem) elem = this;
+
+ var x = elem.offsetLeft;
+ var y = elem.offsetTop;
+
+ while (elem = elem.offsetParent) {
+ x += elem.offsetLeft;
+ y += elem.offsetTop;
+ }
+
+ return { left: x, top: y };
+ }
+
+ ////////////////////////////////////////////////////////////////////////////
+ // Command objects
+ ////////////////////////////////////////////////////////////////////////////
+
+ // Base class for all commands, SubtitleCommand, MapCommand, etc.
+ popcorn.VideoCommand = function(name, params, text, videoManager) {
+ this.name = name;
+ this.params = {};
+ this.text = text;
+ this.videoManager = videoManager;
+ this.running = false;
+ this.loaded = false;
+ this.onIn = function() {};
+ this.onOut = function() {};
+ this.preload = function() {};
+ this.extension = {
+ onIn: function() {},
+ onOut: function() {}
+ };
+ this.id = name + popcorn.VideoCommand.count++;
+ this.params["in"] = "0";
+ this.params["out"] = this.videoManager.videoElement.duration;
+
+ // Adds all attributes from the xml/json tag into this.params
+ for (var i = 0, pl = params.length; i < pl; i++) {
+ for (var j = 0, nl = params[i].length; j < nl; j++) {
+ var key = params[i].item(j).nodeName,
+ data = params[i].item(j).nodeValue;
+ if (key === "start_time") {
+ key = "in";
+ } else if (key === "end_time") {
+ key = "out";
+ }
+ if (key === "in" || key === "out") {
+ this.params[key] = (typeof data === "number" ? data : toSeconds(data));
+ } else {
+ this.params[key] = data;
+ }
+ }
+ }
+
+ // 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]) {
+ if (this.videoManager.manifestObjects[this.params.resourceid].hasOwnProperty(attributeName)) {
+ this.params[attributeName] = this.videoManager.manifestObjects[this.params.resourceid][attributeName];
+ }
+ }
+ }
+
+ if (!inactiveTarget[this.params.target]) {
+ inactiveTarget[this.params.target] = 0;
+ }
+ };
+ popcorn.VideoCommand.count = 0;
+
+ ////////////////////////////////////////////////////////////////////////////
+ // Subtitle Command
+ ////////////////////////////////////////////////////////////////////////////
+
+ // Child commands. Uses onIn() and onOut() to do time based operations
+ popcorn.SubtitleCommand = function(name, params, text, videoManager) {
+ popcorn.VideoCommand.call(this, name, params, text, videoManager);
+
+ // Creates a div for all subtitles to use
+ if (!popcorn.SubtitleCommand.subDiv) {
+ popcorn.SubtitleCommand.subDiv = document.createElement('div');
+ popcorn.SubtitleCommand.subDiv.style.position = "absolute";
+ popcorn.SubtitleCommand.subDiv.style.color = "white";
+ popcorn.SubtitleCommand.subDiv.style.textShadow = "black 2px 2px 6px";
+ popcorn.SubtitleCommand.subDiv.style.fontSize = "18px";
+ popcorn.SubtitleCommand.subDiv.style.fontWeight = "bold";
+ popcorn.SubtitleCommand.subDiv.style.textAlign = "center";
+
+ this.videoManager.videoElement.parentNode.appendChild(popcorn.SubtitleCommand.subDiv);
+ }
+ if (this.params.target) {
+ this.target = document.getElementById(this.params.target);
+ } else {
+ this.target = popcorn.SubtitleCommand.subDiv;
+ }
+ this.target.style.display = "none";
+
+ this.onIn = function() {
+ if (this.params.languagesrc) {
+ var i = document.getElementById(this.params.languagesrc).selectedIndex,
+ that = this;
+ if (document.getElementById(this.params.languagesrc).options[i].value !== (this.params.language || "") ||
+ (this.params.accessibilitysrc && document.getElementById(this.params.accessibilitysrc).checked)) {
+ google.language.translate(this.text, '', document.getElementById(this.params.languagesrc).options[i].value, function(result) {
+ that.target.innerHTML = result.translation;
+ that.target.style.display = "inline";
+ popcorn.SubtitleCommand.subDiv.style.top = offset(videoManager.videoElement).top + videoManager.videoElement.offsetHeight - 64 + "px";
+ popcorn.SubtitleCommand.subDiv.style.left = offset(videoManager.videoElement).left + ((videoManager.videoElement.offsetWidth / 2) - (popcorn.SubtitleCommand.subDiv.offsetWidth / 2)) + "px";
+ });
+ }
+ } else {
+ this.target.innerHTML = this.text;
+ this.target.style.display = "inline";
+ popcorn.SubtitleCommand.subDiv.style.top = offset(videoManager.videoElement).top + videoManager.videoElement.offsetHeight - 64 + "px";
+ popcorn.SubtitleCommand.subDiv.style.left = offset(videoManager.videoElement).left + ((videoManager.videoElement.offsetWidth / 2) - (popcorn.SubtitleCommand.subDiv.offsetWidth / 2)) + "px";
+ }
+ };
+ this.onOut = function() {
+ this.target.innerHTML = "";
+ this.target.style.display = "none";
+ };
+ };
+
+ ////////////////////////////////////////////////////////////////////////////
+ // Lower third text Command
+ ////////////////////////////////////////////////////////////////////////////
+
+ popcorn.LowerThirdCommand = function(name, params, text, videoManager) {
+ popcorn.VideoCommand.call(this, name, params, text, videoManager);
+
+ // Creates a div for all lower thirds
+ if (!popcorn.LowerThirdCommand.ltDiv) {
+ popcorn.LowerThirdCommand.ltDiv = document.createElement('div');
+ popcorn.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;');
+ this.videoManager.videoElement.parentNode.appendChild(popcorn.LowerThirdCommand.ltDiv);
+ }
+ if (this.params.target) {
+ this.target = document.getElementById(this.params.target);
+ } else {
+ this.target = popcorn.LowerThirdCommand.ltDiv;
+ }
+
+ this.onIn = function() {
+ $(this.target).css("text-align", (this.params.align || 'left'));
+ if (this.params.languagesrc) {
+ var i = document.getElementById(this.params.languagesrc).selectedIndex;
+ var that = this;
+ google.language.translate((this.params.salutation || ""), '', document.getElementById(this.params.languagesrc).options[i].value, function(result) {
+ var span = document.createElement('span');
+ span.innerHTML = result.translation + " ";
+ span.setAttribute('style', 'font-size:26px;');
+ that.target.appendChild(span);
+ });
+ google.language.translate((this.params.name || ""), '', document.getElementById(this.params.languagesrc).options[i].value, function(result) {
+ var span = document.createElement('span');
+ span.innerHTML = result.translation;
+ span.setAttribute('style', 'font-size:26px;');
+ that.target.appendChild(span);
+ });
+ google.language.translate((this.params.role || ""), '', document.getElementById(this.params.languagesrc).options[i].value, function(result) {
+ that.target.innerHTML += "<br/>" + result.translation;
+ });
+ } else {
+ var span = document.createElement('span');
+ span.innerHTML = (this.params.salutation || "") + " " + (this.params.name || "");
+ span.setAttribute('style', 'font-size:26px;');
+ this.target.appendChild(span);
+ this.target.innerHTML += "<br/>" + (this.params.role || "");
+ }
+ };
+ this.onOut = function() {
+ this.target.innerHTML = "";
+ };
+ };
+
+ ////////////////////////////////////////////////////////////////////////////
+ // GoogleNews Command
+ ////////////////////////////////////////////////////////////////////////////
+
+ popcorn.GoogleNewsCommand = function(name, params, text, videoManager) {
+ popcorn.VideoCommand.call(this, name, params, text, videoManager);
+ this.target = document.createElement('div');
+ this.target.setAttribute('style', 'display:none;border:0px;');
+ document.getElementById(this.params.target).appendChild(this.target);
+ this.target.setAttribute('id', this.id);
+ var content = document.getElementById(this.id);
+ var options = {
+ format : "300x250",
+ queryList : [
+ {q: this.params.topic || "Top Stories"}
+ ]
+ };
+ var newsShow = new google.elements.NewsShow(content, options);
+
+ this.onIn = function() {
+ this.target.setAttribute('style', 'display:inline');
+ $("a").each(function() {
+ this.setAttribute('target', '_blank');
+ });
+ document.getElementById(this.params.target).style.display = "inline";
+ };
+ this.onOut = function() {
+ this.target.setAttribute('style', 'display:none');
+ document.getElementById(this.params.target).style.display = "none";
+ };
+ };
+
+ ////////////////////////////////////////////////////////////////////////////
+ // TagThisPerson Command
+ ////////////////////////////////////////////////////////////////////////////
+
+ var people = function(){
+ this.contains = {};
+ this.toString = function() {
+ var r = [];
+ for (var i in this.contains) {
+ if (this.contains.hasOwnProperty(i)) {
+ r.push(" " + this.contains[i]);
+ }
+ }
+ return r.toString();
+ };
+ };
+ popcorn.TagCommand = function(name, params, text, videoManager) {
+ popcorn.VideoCommand.call(this, name, params, text, videoManager);
+
+ if (!popcorn.TagCommand[this.params.target]) {
+ popcorn.TagCommand[this.params.target] = new people();
+ }
+
+ this.onIn = function() {
+ popcorn.TagCommand[this.params.target].contains[this.text] = this.text;
+ document.getElementById(this.params.target).innerHTML = popcorn.TagCommand[this.params.target].toString();
+ };
+ this.onOut = function() {
+ delete popcorn.TagCommand[this.params.target].contains[this.text];
+ document.getElementById(this.params.target).innerHTML = popcorn.TagCommand[this.params.target].toString();
+ };
+ };
+
+ ////////////////////////////////////////////////////////////////////////////
+ // Map Command
+ ////////////////////////////////////////////////////////////////////////////
+
+ popcorn.MapCommand = function(name, params, text, videoManager) {
+ popcorn.VideoCommand.call(this, name, params, text, videoManager);
+
+ // All data from Universal Subtitles comes from the text attribute
+ // so the data from that needs to enter the appropriate fields
+ if (typeof this.text === "string" && this.text !== "") {
+ // Universal Subtitles has no target attribute, so we create a default
+ this.params.target = "mapdiv";
+ var split = this.text.split(", ");
+ this.params.lat = split[0];
+ this.params.long = split[1];
+ this.params.zoom = split[2];
+ }
+ this.params.zoom = parseInt(this.params.zoom, 10);
+ // load the map
+ // http://code.google.com/apis/maps/documentation/javascript/reference.html#MapOptions <-- Map API
+ this.location = new google.maps.LatLng(this.params.lat, this.params.long);
+ if (!popcorn.MapCommand[this.params.target]) {
+ popcorn.MapCommand[this.params.target] = new google.maps.Map(document.getElementById(this.params.target), {mapTypeId: google.maps.MapTypeId.HYBRID});
+ popcorn.MapCommand[this.params.target].setCenter(new google.maps.LatLng(0, 0));
+ popcorn.MapCommand[this.params.target].setZoom(0);
+ }
+ this.onIn = function() {
+ popcorn.MapCommand[this.params.target].setCenter(this.location);
+ popcorn.MapCommand[this.params.target].setZoom(this.params.zoom);
+ if (this.params.src && this.params.mapinfo) {
+ var link = document.createElement("a");
+ link.setAttribute("href", this.params.src);
+ link.setAttribute("target", "_blank");
+ link.appendChild(document.createTextNode(this.params.description||this.params.src));
+ document.getElementById(this.params.mapinfo).appendChild(link);
+ }
+ };
+ this.onOut = function() {
+ popcorn.MapCommand[this.params.target].setCenter(new google.maps.LatLng(0, 0));
+ popcorn.MapCommand[this.params.target].setZoom(0);
+ if (this.params.mapinfo) {
+ document.getElementById(this.params.mapinfo).innerHTML = "";
+ }
+ };
+ };
+
+ ////////////////////////////////////////////////////////////////////////////
+ // Lastfm Command
+ ////////////////////////////////////////////////////////////////////////////
+
+ popcorn.LastfmCommand = function(name, params, text, videoManager) {
+ popcorn.VideoCommand.call(this, name, params, text, videoManager);
+ // Setup a default, hidden div to hold the images
+ var target = document.createElement('div');
+ target.setAttribute('id', this.id);
+ document.getElementById(this.params.target).appendChild(target);
+ // Div is hidden by default
+ target.setAttribute('style', 'display:none');
+ var htmlString = '';
+
+ // This uses jquery
+ $.getJSON("http://ws.audioscrobbler.com/2.0/?method=artist.getinfo&artist="+ this.params.artist +"&api_key=30ac38340e8be75f9268727cb4526b3d&format=json&callback=?",
+ function(data){
+ htmlString += '<h3>'+data.artist.name+'</h3>';
+ htmlString += '<a href="'+data.artist.url+'" target="_blank" style="float:left;margin:0 10px 0 0;"><img src="'+ data.artist.image[2]['#text'] +'" alt=""></a>';
+ htmlString += '<p>'+ data.artist.bio.summary +'</p>';
+ htmlString += '<hr /><p><h4>Tags</h4><ul>';
+ $.each(data.artist.tags.tag, function(i,val) {
+ htmlString += '<li><a href="'+ this.url +'">'+ this.name +'</a></li>';
+ });
+ htmlString += '</ul></p>';
+ htmlString += '<hr /><p><h4>Similar</h4><ul>';
+ $.each(data.artist.similar.artist, function(i,val) {
+ htmlString += '<li><a href="'+ this.url +'">'+ this.name +'</a></li>';
+ });
+ htmlString += '</ul></p>';
+ target.innerHTML = htmlString;
+ }
+ );
+
+ this.target = target;
+ this.onIn = function() {
+ this.target.setAttribute('style', 'display:inline');
+ };
+ this.onOut = function() {
+ this.target.setAttribute('style', 'display:none');
+ };
+ this.preload = function() {}; // Probably going to need to preload this.
+ };
+
+ ////////////////////////////////////////////////////////////////////////////
+ // Twitter Command
+ ////////////////////////////////////////////////////////////////////////////
+
+ popcorn.TwitterCommand = function(name, params, text, videoManager) {
+ popcorn.VideoCommand.call(this, name, params, text, videoManager);
+
+ var that = this;
+ getScript("http://widgets.twimg.com/j/2/widget.js", typeof TWTR, function() {
+ // All data from Universal Subtitles comes from the text attribute
+ // so the data from that needs to enter the appropriate fields
+ if (typeof text === "string" && text !== "") {
+ that.params.source = text;
+ // Universal Subtitles has no target attribute, so we create a default
+ that.params.target = "twitterdiv";
+ }
+
+ // Setup a default, hidden div to hold the feed
+ that.target = document.createElement('div');
+ that.target.setAttribute('id', that.id);
+ document.getElementById(that.params.target).appendChild(that.target);
+
+ // Div is hidden by default
+ that.target.setAttribute('style', 'display:none');
+ var widget = new TWTR.Widget({
+ version: 2,
+ type: 'search',
+ id: that.target.getAttribute('id'),
+ search: that.params.source,
+ title: that.params.title || null,
+ subject: that.params.subject || null,
+ rpp: 30,
+ width: that.params.width || 250,
+ height: that.params.height || 200,
+ interval: 6000,
+ theme: {
+ shell: {
+ background: '#ffffff',
+ color: '#000000'
+ },
+ tweets: {
+ background: '#ffffff',
+ color: '#444444',
+ links: '#1985b5'
+ }
+ },
+ features: {
+ loop: true,
+ timestamp: true,
+ avatars: true,
+ hashtags: true,
+ toptweets: true,
+ live: true,
+ scrollbar: false,
+ behavior: 'default'
+ }
+ }).render().start();
+ that.onIn = function() {
+ that.target.style.display = "inline";//.setAttribute('style', 'display:inline');
+ document.getElementById(this.params.target).style.display = "inline";
+ };
+ that.onOut = function() {
+ that.target.style.display = "none";//.setAttribute('style', 'display:none');
+ document.getElementById(this.params.target).style.display = "none";
+ };
+ that.preload = function() {}; // Probably going to need to preload this.
+ });
+ };
+
+ ////////////////////////////////////////////////////////////////////////////
+ // Flickr Command
+ ////////////////////////////////////////////////////////////////////////////
+
+ popcorn.FlickrCommand = function(name, params, text, videoManager) {
+ popcorn.VideoCommand.call(this, name, params, text, videoManager);
+ // Setup a default, hidden div to hold the images
+ var target = document.createElement('div');
+ target.setAttribute('id', this.id);
+ document.getElementById(this.params.target).appendChild(target);
+ // Div is hidden by default
+ target.setAttribute('style', 'display:none');
+ var height = this.params.height || "50px",
+ width = this.params.width || "50px",
+ count = this.params.numberofimages || 4,
+ padding = this.params.padding || "5px",
+ border = this.params.border || "0px";
+
+ // This uses jquery
+ $.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?id=" + this.params.userid + "&lang=en-us&format=json&jsoncallback=?", function(data){
+ target.innerHTML = "<p style='padding:" + padding + ";'>" + data.title + "<p/>";
+ $.each(data.items, function(i, item) {
+ if (i < count) {
+ var link = document.createElement('a');
+ link.setAttribute('href', item.link);
+ link.setAttribute("target", "_blank");
+ var image = document.createElement('img');
+ image.setAttribute('src', item.media.m);
+ image.setAttribute('height', height);
+ image.setAttribute('width', width);
+ image.setAttribute('style', 'border:' + border + ';padding:' + padding);
+ link.appendChild(image);
+ target.appendChild(link);
+ } else {
+ return false;
+ }
+ });
+ });
+ this.target = target;
+
+ this.onIn = function() {
+ this.target.style.display = "inline";//.setAttribute('style', 'display:inline');
+ document.getElementById(this.params.target).style.display = "inline";
+ };
+ this.onOut = function() {
+ this.target.style.display = "none";//.setAttribute('style', 'display:none');
+ document.getElementById(this.params.target).style.display = "none";
+ };
+ };
+
+ ////////////////////////////////////////////////////////////////////////////
+ // Wiki Command
+ ////////////////////////////////////////////////////////////////////////////
+
+ popcorn.WikiCommand = function(name, params, text, videoManager) {
+ popcorn.VideoCommand.call(this, name, params, text, videoManager);
+
+ // All data from Universal Subtitles comes from the text attribute
+ // so the data from that needs to enter the appropriate fields
+ if (typeof text === "string" && text !== "") {
+ this.params.src = text;
+ // Universal Subtitles has no target attribute, so we create a default
+ this.params.target = "wikidiv";
+ }
+
+ //L10n
+ var src = this.params.src;
+ var lang = this.params.lang;
+ if (typeof lang === 'undefined') {lang="en";}
+ //end L10n
+
+ var length = this.params.numberOfWords || 200;
+ // Setup a default, hidden div to hold the images
+ var target = document.createElement('div');
+ target.setAttribute('id', this.id);
+ document.getElementById(this.params.target).appendChild(target);
+ // Div is hidden by default
+ target.setAttribute('style', 'display:none');
+ // This uses jquery
+ $.getJSON("http://"+lang+".wikipedia.org/w/api.php?action=parse&props=text&page=" + ( this.params.title || src.slice(src.lastIndexOf("/")+1) ) + "&format=json&callback=?", function(data){
+ if(data) {
+ //make a link to the document
+ var link = document.createElement('a');
+ link.setAttribute('href', src);
+ link.setAttribute('target', '_blank');
+ var p = document.createElement('p');
+ p.innerHTML = data.parse.displaytitle;
+ link.appendChild(p);
+ // get the first 140 characters of the wiki content
+ var desc = document.createElement('p');
+ var text = data.parse.text["*"].substr(data.parse.text["*"].indexOf('<p>'));
+ text = text.replace(/((<(.|\n)+?>)|(\((.*?)\) )|(\[(.*?)\]))/g, "");
+ desc.innerHTML = text.substr(0, ( length || 140 )) + " ...";
+ target.appendChild(link);
+ target.appendChild(desc);
+ }
+ });
+
+ this.target = target;
+ this.onIn = function() {
+ this.target.setAttribute('style', 'display:inline');
+ document.getElementById(this.params.target).style.display = "block";
+
+ };
+ this.onOut = function() {
+ this.target.setAttribute('style', 'display:none');
+ document.getElementById(this.params.target).style.display = "none";
+ };
+ };
+ ////////////////////////////////////////////////////////////////////////////
+ // Footnote Command
+ ////////////////////////////////////////////////////////////////////////////
+
+ popcorn.FootnoteCommand = function(name, params, text, videoManager) {
+ popcorn.VideoCommand.call(this, name, params, text, videoManager);
+ this.onIn = function() {
+ document.getElementById(this.params.target).innerHTML = this.text;
+ };
+ this.onOut = function() {
+ document.getElementById(this.params.target).innerHTML = "";
+ };
+ };
+
+ ////////////////////////////////////////////////////////////////////////////
+ // Attribution Command
+ ////////////////////////////////////////////////////////////////////////////
+
+ popcorn.AttributionCommand = function(name, params, text, videoManager) {
+ popcorn.VideoCommand.call(this, name, params, text, videoManager);
+ var attribution = "";
+ var image = "";
+
+ if (this.params.nameofworkurl) {
+ attribution += "<a href='" + this.params.nameofworkurl + "' target='_blank'>";
+ }
+ if (this.params.nameofwork) {
+ attribution += this.params.nameofwork;
+ }
+ if (this.params.nameofworkurl) {
+ attribution += "</a>";
+ }
+ if (this.params.copyrightholderurl) {
+ attribution += "<a href='" + this.params.copyrightholderurl + "' target='_blank'>";
+ }
+ if (this.params.copyrightholder) {
+ attribution += ", " + this.params.copyrightholder;
+ }
+ if (this.params.copyrightholderurl) {
+ attribution += "</a>";
+ }
+ if (this.params.license) {
+ if (this.params.license.toUpperCase() === "CC-BY" ) {
+ image = "<img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAAAfCAYAAABjyArgAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2Lj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iQMAhzqwbXcf7dLliwyQoiihGO9u4KZSKdZ37M0xL8BudyEHQpRskqVP1pYRm9wB0PH8OF24X6PGgzp99Wev+lM9lSSJ1ut1utPUarWoJEmsv6zI1HhQpwv3a/Ti5Yvs/Ncod79kX8/QxfoCNT42qKzI7LwoinRycpJ2Op0twXY6HTo5OUlFUWT9Tp46SZc+NuiisUDH8+NfR7i0Z/U/kR/Hy4oMQRBwrXgN7//l/T1vGRUuTcKyLNy9W8NrP3/t4IdiwLwEdzOCq9SN3/tmIoJ5Ij/uKvlBnb6n/plGo9Edv7FoNErLvy9T40GdLhoL9N0/vNs3tVBKty0Hz31pCvZT9vUMXvnpK2wXQq9UcWPuxrbb9mfls0gmh9le29zcDUwVpvqnlE0U/GUq96EBwuMnjmEifwHf/k40sBsRDDci5Lf6/3iy/Mkn+N3VEuar8/0digGIj4Np2HEE9vTwaZx56QxOfPcEvhGJhGO4nmv12eoq7i3ew+2bt/sO9iur4KdpHwBTSp8lhHzxFMWBjCjy/wEATHqgDqiBjQoAAAAASUVORK5CYII=' />";
+ } else if (this.params.license.toUpperCase() === "CC-BY-SA") {
+ image = "<img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAAAfCAYAAABjyArgAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOE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zGJ8fJw2iEQi9OGbNm1yAGfVZTKZeXWWWLrqXHUgxLYdBoE1pubdvJd7yvUU4hf78c7bfZBlGbIsQxRFiKIIQRCgKAolw0qCMeutn67bo3dHsWHDBkS7opCHZAiCgOnpaYdnEI/HaYzB6/UiEolQ9sbjcdrWXgcAjY2NyOfzePFHL+JC7Dwezc2hWJxDUS2iWFShWXEJXYOu6TQIX75T+zaGK2mw5/adf6OmZgM+G/kMod+E6LYwHA6v6qWtAAkAnH37LH66ZzfminOYKxahFosoqmUAVwj4fNsD7iwAeqTj9bXA7XYDAKLR6DwXqRqZmZmhq67b7TYD8VZoUodu2mLLXDyuwgKATnRomnGOdqa3hwLk9/sdMd5qwPX5fLRv+5vtZoBdK4FsC1HSRZY8XkdGdHEHQDoiHWTsXopk7qfJq7981VrqiSiKJJ1Ok+VKLpcjoijS/pJfIpn7aTJ2L0V6ento+XcolW7Cb4TInfQYyXyeIZJfouWCIJDu7m4yPT29ILDT09Oku7ubCIJA++3YuYOMf54hdzJjpCPS8V0ElzDlTmlnpAP7/RJ4nseFvgv46PJHKz4yip7phqqqGB1N4fXXXl/5FLOZDftphn33WX6/Vs+w36/KRNhTZ6TDYPL9NBlIfEDcbveyR8ztdpP4n+Mkcz9N7mTGyHt/eW/VLCCELJq3l61W/1LPXDWDLQm/EcLRXxylpxBKchhXr1xd9Nh+n7QPXm8LPWu7cuUqzkbPrn6RqMCutWJu+TMqnfethsXMYvvWrdu2oDPShfofuG2nEfZwIxx+q/WPJ1OTk3j3fAwjwyNrswrbQFxr07DQsxZ75poBbMmull3Ys3cPtm3fhu+7XM4YrulafVUo4O6du7hx7caaAftNMXgpG7/uAD+RlQtDCNnIMMx/n0CxDhsMQpj/DQDwRbusfJXB0QAAAABJRU5ErkJggg==' />";
+ } else if (this.params.license.toUpperCase() === "CC-BY-ND") {
+ image = "<img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAAAfCAYAAABjyArgAAAACXBIWXMAAAsTAAALEwEAm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tbfJ7jr3smrGr/RPTx/3k59NIBAIQJIkxONxiuWOgzVNQzwex82bNxEIBDCeHO958J3wW81Ov/jURDgfPBgYxObGJlZWVmiDTCZDX37o0CHPi506VVXb6hxxsAYDgyDEtR0GgTOn9q+2j3s28CwKt27iF2/nIMsyZFlGNBpFNBqFIAhQFIUqQz/JmP3Gp3774aOHOHDgALKXspDnZAiCgLW1tZ7CNFmWUSgUaFt3HQAMDQ1B0zScevEUbuSv4z9bW2g0ttDQG2g0dBhOXsI0YBomTcK37tS+iOlKmuz529JfMTBwAB8tfITkD5N0W+jEs/2KkyABgJm3Z/Dd09/BVmMLW40G9EYDDb2FYJ+Ezxc94c4CoEc6sZFhBINBAEA2m/W1Sb3K+vo69brBYNBOxDupSROmbYsdc/GkCgsAJjFhGNY52pWrlylB8Xjck+PdCbkjIyO078RbE3aC3WiS7EpRUidLnqwjI+rcAZDJzCRZXC4T9XGFvPb91xxXT6LRKKlUKqRXqdfrJBqN0v5iXCTq4wpZXC6Ty1cv0+dfotL8kXojSZYqi0T9WCViXKTPBUEg09PTZG1trSOxa2trZHp6mgiCQPsdP3GcrHyskiV1kUxmJr+M5BKmNSidykxiNC6C53ncyN3AB7/7oO8jo+yVaei6jocPy3j9B6/3v8RcZsN9muHefbb+3im+H5bfe/s2Ee4ylZm0NPlxhbwv/ZYEg8GeZywYDJLCrwpEfVwhS+oieee9d3atBYSQrvfuZ/3ib4fb7zuYTtuq1BtJvPq9V+kphFIs4c78na7H9mfFs4jFhulZ2/z8HcxkZ3bvJLpo0m40109j/a67eQ/Tbd969NgRTGUu4RvfDLpOI9zpRnjiVuc/nqx+8gl+eT2PhdLC3njhLgPdS4Ldk/m5EOzIyeGTOH3mNI69cAxfDQS8OVw7tPp0YwOPlh7h/t37e0bs563B+2GDeyL4qfQvDCHkGYZh/v2Uin3YYBDC/HcArOiX8zGX6zMAAAAASUVORK5CYII=' />";
+ } else if (this.params.license.toUpperCase() === "CC-BY-NC") {
+ image = "<img src='data:image/png;base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QV+oD2/96a2Kt4yCZ7ohyzLGx2N4uf3lyqeYwWwYdzOM0efC65Xil8LSn10pNoqx3hXozGvyvTh5M/JHYrPZyh4xm81GBn47QBL34uR2YoK88bs3Vq0FhJAlz433KsVfDrfSZzClwirfUS8OHDxAdyGk6AiuXrm65Lb9HmEPnM5Gutd25cpVnA2eXf0iUUSD10JzF2KUOq5GmKXi1q3bGtAVOIWazTbDboQx3QiT36r/48n01BR+3RvG6Mjo2qzCC6bsWpmG5UzCUs9dE4J12dW4C03NTdj2zDZ83Wo153A11+rTbBZ3bt/BjWs31ozYL1qD18MGl0XwY1mFiSCEPMEwzGePqViHAIMQ5n8DAFb/49reYmyHAAAAAElFTkSuQmCC'/>";
+ } else if (this.params.license.toUpperCase() === "CC-BY-NC-SA") {
+ image = "<img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAAAfCAYAAABjyArgAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qI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YFf52TV3lz9zLqTy1W46o4SNDY3oXCpLuM0IjPcCIXfKn94Mj42hmfbnTjXc27BL3MzpmE+kzAX/kIHLV+MOQmW5d7Se7GhbAPuWH0HvqHRpD+dmjYwRISrsRiGBodw+uTpBRP7WWnwzdrg+daET43gr+QmNhpE9PWvaPiMNhhE3P8GAG3CFDKJWtqSAAAAAElFTkSuQmCC' />";
+ } else if (this.params.license.toUpperCase() === "CC-BY-NC-ND") {
+ image = "<img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAAAfCAYAAABjyArgAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+A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mo66uDr49PkSORWA2m5HNZmuSaZFIBMFgkF1bXgcAjY2NyGQyuOPOO3A4cAj/nZ1FYR7BWt5YKSpIDCdw7Oi1ka5kBMeSQ1i1qg7nz52H60lV/wYCAaZnV2rhcJjFsX0H9uHetu9itjCL2UIBcqGAgjyP4AoJ+P/3hDsPgG3p2FtbYLFYAAA+n69i7KnVcrkck3gWi6WUiC/tYigKlFIsptKW07VqPAAopKBYVPfRntm/lxHkcDh0Od7lkNva2sradv+8u5RgL86RXLZlxCZZura2jNjkDoB6PD2UGImTdClFD//wYV1GLZVKLSuzVJ5JExwCSZdSlBiJ0979e9nvn6My90/XUy5KphIkrSDhns1myev16hLuGzdtpNH3JEpKCerx9HweySVuvijt9fSgwyHAaDTisP8wXvnjKyveMvI944UsyxgejuOJx56o5TuCOf1YyrQRlW2OVvh/MZzF2mj3qIaxFE6lflYNEeWl19OjevKlFL0c/j1ZLJaa35jFYqHgkSBJl1KUlBL04u9erLnt/OXx/PPy36rhVGtfC9YngbPAgzXresqFBx96kG31iNEBnDh+Yslt+/uF+2G3t7ANzePHT2Cfb99yvoRZ1DNq8dxKnlbpuJz+VMOphrkowQCw4eb16PXsQf1aS9luRHm6ETrdqn14MjU5iV8fCuDcwLnlfmp0RaGhWkhYDjGfFM6SBGt2e8vtaGtvw83fvBlfNplKn07NBRgiwnQ+jwvJCzh98vSyif20PPhqiME1EfyFrdw4Irqe47h/f0HFp7DAIOL+NwDFrtvhh4x87AAAAABJRU5ErkJggg==' />";
+ }
+ if (image) {
+ attribution = image + " " +attribution;
+ } else {
+ attribution += ", license: " + this.params.license;
+ }
+ }
+ if (this.params.licenseurl) {
+ attribution += ", <a href='" + this.params.licenseurl + "' target='_blank'>License URL</a>";
+ }
+ //if the user did not specify any parameters just pull the text from the tag
+ if (attribution === "") {
+ attribution = this.text;
+ }
+ this.onIn = function() {
+ document.getElementById(this.params.target).innerHTML = attribution;
+ document.getElementById(this.params.target).style.display = "block";//setAttribute('style', 'display:inline');
+ };
+ this.onOut = function() {
+ document.getElementById(this.params.target).innerHTML = "";
+ document.getElementById(this.params.target).style.display = "none";//.setAttribute('style', 'display:none');
+ };
+ };
+
+ ////////////////////////////////////////////////////////////////////////////
+ // Warp Command
+ ////////////////////////////////////////////////////////////////////////////
+
+ popcorn.SeekCommand = function(name, params, text, videoManager) {
+ popcorn.VideoCommand.call(this, name, params, text, videoManager);
+ this.params["in"] = toSeconds(this.params.seekfrom);
+ this.params["out"] = toSeconds(this.params.seekfrom) + 1;
+ this.params.seekto = toSeconds(this.params.seekto);
+ this.onIn = function() {
+ this.videoManager.videoElement.currentTime = this.params.seekto;
+ };
+ };
+
+ ////////////////////////////////////////////////////////////////////////////
+ // Script Command
+ ////////////////////////////////////////////////////////////////////////////
+
+ popcorn.ScriptCommand = function(name, params, text, videoManager) {
+ popcorn.VideoCommand.call(this, name, params, text, videoManager);
+ this.start = eval(this.params.start) || function() {};
+ this.stop = eval(this.params.stop) || function() {};
+ this.onIn = function() {
+ this.start();
+ };
+ this.onOut = function() {
+ this.stop();
+ };
+ };
+
+ ////////////////////////////////////////////////////////////////////////////
+ // WebPage Command
+ ////////////////////////////////////////////////////////////////////////////
+
+ popcorn.WebPageCommand = function(name, params, text, videoManager) {
+ popcorn.VideoCommand.call(this, name, params, text, videoManager);
+
+ // Setup a default, iframe to hold the website
+ var target = document.createElement('iframe');
+ target.setAttribute('src', this.params.src);
+ target.setAttribute('width', this.params.width);
+ target.setAttribute('height', this.params.height);
+ target.setAttribute('id', this.id);
+ document.getElementById(this.params.target).appendChild(target);
+ // iframe is hidden by default
+ target.setAttribute('style', 'display:none');
+ // toggle display of the iframe
+ this.target = target;
+ this.onIn = function() {
+ this.target.setAttribute('style', 'display:inline');
+ };
+ this.onOut = function() {
+ this.target.setAttribute('style', 'display:none');
+ };
+ };
+ ////////////////////////////////////////////////////////////////////////////
+ // Image Command
+ ////////////////////////////////////////////////////////////////////////////
+
+ popcorn.ImageCommand = function(name, params, text, videoManager) {
+ popcorn.VideoCommand.call(this, name, params, text, videoManager);
+
+ var src = this.params.src;
+ // Setup a default, hidden div to hold the image
+ var target = document.createElement('div');
+ target.setAttribute('id', this.id);
+
+ // Div is hidden by default
+ target.setAttribute('style', 'display:none');
+ var image = document.createElement('img');
+ image.setAttribute('src', this.params.src);
+ image.setAttribute('height', this.params.height);
+ image.setAttribute('width', this.params.width);
+ target.appendChild(image);
+ //apend to the target div provided in the xml
+ document.getElementById(this.params.target).appendChild(target);
+
+ this.target = target;
+ this.onIn = function() {
+ this.target.setAttribute('style', 'display:inline');
+ document.getElementById(this.params.target).style.display = "block";
+
+ };
+ this.onOut = function() {
+ this.target.setAttribute('style', 'display:none');
+ document.getElementById(this.params.target).style.display = "none";
+ };
+ };
+ // 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?
+ // I liked it more than a switch, though
+ var commands = {
+ subtitle: {
+ create: function(name, params, text, videoManager) {
+ return new popcorn.SubtitleCommand(name, params, text, videoManager);
+ }
+ },
+ flickr: {
+ create: function(name, params, text, videoManager) {
+ return new popcorn.FlickrCommand(name, params, text, videoManager);
+ }
+ },
+ videotag: {
+ create: function(name, params, text, videoManager) {
+ return new popcorn.TagCommand(name, params, text, videoManager);
+ }
+ },
+ location: {
+ create: function(name, params, text, videoManager) {
+ return new popcorn.MapCommand(name, params, text, videoManager);
+ }
+ },
+ footnote: {
+ create: function(name, params, text, videoManager) {
+ return new popcorn.FootnoteCommand(name, params, text, videoManager);
+ }
+ },
+ twitter: {
+ create: function(name, params, text, videoManager) {
+ return new popcorn.TwitterCommand(name, params, text, videoManager);
+ }
+ },
+ attribution: {
+ create: function(name, params, text, videoManager) {
+ return new popcorn.AttributionCommand(name, params, text, videoManager);
+ }
+ },
+ googlenews: {
+ create: function(name, params, text, videoManager) {
+ return new popcorn.GoogleNewsCommand(name, params, text, videoManager);
+ }
+ },
+ wiki: {
+ create: function(name, params, text, videoManager) {
+ return new popcorn.WikiCommand(name, params, text, videoManager);
+ }
+ },
+ lastfm: {
+ create: function(name, params, text, videoManager) {
+ return new popcorn.LastfmCommand(name, params, text, videoManager);
+ }
+ },
+ lowerthird: {
+ create: function(name, params, text, videoManager) {
+ return new popcorn.LowerThirdCommand(name, params, text, videoManager);
+ }
+ },
+ seek: {
+ create: function(name, params, text, videoManager) {
+ return new popcorn.SeekCommand(name, params, text, videoManager);
+ }
+ },
+ script: {
+ create: function(name, params, text, videoManager) {
+ return new popcorn.ScriptCommand(name, params, text, videoManager);
+ }
+ },
+ webpage: {
+ create: function(name, params, text, videoManager) {
+ return new popcorn.WebPageCommand(name, params, text, videoManager);
+ }
+ },
+ image: {
+ create: function(name, params, text, videoManager) {
+ return new popcorn.ImageCommand(name, params, text, videoManager);
+ }
+ }
+ };
+
+ ////////////////////////////////////////////////////////////////////////////
+ // XML Converter
+ ////////////////////////////////////////////////////////////////////////////
+
+ // Converts xml into command objects and adds them to the video manager
+ var convertXML = function(xmlDoc, videoManager) {
+
+ var parseNode = function(node, attributes, manifest) {
+ var allAttributes = attributes.slice(0);
+ allAttributes.push(node.attributes);
+ var childNodes = node.childNodes;
+ if (childNodes.length < 1 || (childNodes.length === 1 && childNodes[0].nodeType === 3)) {
+ if (!manifest) {
+ videoManager.addCommand(commands[node.nodeName].create(node.nodeName, allAttributes, node.textContent, videoManager));
+ } else {
+ videoManager.addManifestObject(allAttributes);
+ }
+ } else {
+ for (var i = 0; i < childNodes.length; i++) {
+ if (childNodes[i].nodeType === 1) {
+ parseNode(childNodes[i], allAttributes, manifest);
+ }
+ }
+ }
+ };
+
+ var x = xmlDoc.documentElement.childNodes;
+ for (var i = 0, xl = x.length; i < xl; i++) {
+ if (x[i].nodeType === 1) {
+ if (x[i].nodeName === "manifest") {
+ parseNode(x[i], [], true);
+ } else {
+ parseNode(x[i], [], false);
+ }
+ }
+ }
+ };
+
+ ////////////////////////////////////////////////////////////////////////////
+ // JSON Converter
+ ////////////////////////////////////////////////////////////////////////////
+
+ // Converts json into command objects and adds them to the video manager
+ var convertJSON = function(jsonData, videoManager, type) {
+
+ // loops through subtitles in the json
+ for (var j = 0, jl = jsonData.length; j < jl; j++) {
+ var allAttributes = [],
+ attributes = [],
+ l = 0,
+ text = "";
+ // loops through attributes inside command, and packages them similar to how the xml data looks
+ for (var attribute in jsonData[j]) {
+ if (jsonData[j].hasOwnProperty(attribute)) {
+ if (attribute === "text") {
+ text = jsonData[j][attribute];
+ } else {
+ attributes.push({"nodeName":attribute,"nodeValue":jsonData[j][attribute]});
+ l++;
+ }
+ }
+ }
+ allAttributes = [];
+ // this object mimics the object used for xml
+ allAttributes.push({
+ "att": attributes.slice(0),
+ "item": (function() {
+ return function(i) {
+ return this.att[i];
+ };
+ }()),
+ "length": l
+ });
+ videoManager.addCommand(commands[type].create(type, allAttributes, text, videoManager));
+ }
+ };
+
+ var convertData = function(video, manager, data, convert, type) {
+ var si = setInterval(function() {
+ if (video.readyState < 1) { return; }
+ clearInterval(si);
+ convert(data, manager, type);
+ manager.loaded();
+ }, 50);
+ };
+
+ // Loads an external xml file, and returns the xml object
+ var getTimelineData = function(name) {
+ var xhttp = new XMLHttpRequest();
+ if (xhttp) {
+ xhttp.open("GET", name, false);
+ xhttp.send();
+ return xhttp;
+ } else {
+ return false;
+ }
+ };
+
+ // Automatic Initialization Method
+ var init = function() {
+ getScript('http://code.jquery.com/jquery.js', typeof jQuery, function() {
+ var video = document.getElementsByTagName('video');
+ for (var i = 0, l = video.length; i < l; i++) {
+ var ind = i;
+ var videoSources = video[ind].getAttribute('data-timeline-sources');
+ if (videoSources) {
+ var filename = videoSources,
+ dataXML = "",
+ dataJSON = "";
+ var ext = (filename.toLowerCase()).match(/\.xml$/);
+ var manager = new popcorn.VideoManager(video[ind]);
+ if (ext !== null) {
+ convertData(video[ind], manager, getTimelineData(filename).responseXML, convertXML);
+ } else {
+ $.getJSON("http://dev.universalsubtitles.org/api/subtitles/?video_url=" + filename + "&callback=?", (function() {
+ return function(data) {
+ convertData(video[ind], manager, data, convertJSON, "subtitle");
+ $.getJSON("http://dev.universalsubtitles.org/api/subtitles/?video_url=" + filename + "&language=meta-geo&callback=?", (function() {
+ return function(data) {
+ convertData(video[ind], manager, data, convertJSON, "location");
+ $.getJSON("http://dev.universalsubtitles.org/api/subtitles/?video_url=" + filename + "&language=meta-tw&callback=?", (function() {
+ return function(data) {
+ convertData(video[ind], manager, data, convertJSON, "twitter");
+ $.getJSON("http://dev.universalsubtitles.org/api/subtitles/?video_url=" + filename + "&language=meta-wiki&callback=?", (function() {
+ return function(data) {
+ convertData(video[ind], manager, data, convertJSON, "wiki");
+ };
+ }()));
+ };
+ }()));
+ };
+ }()));
+ };
+ }()));
+ }
+ }
+ }
+ });
+ };
+
+ document.addEventListener('DOMContentLoaded', init, false);
+
+}());
+
+>>>>>>> 43b39ea3480a4c1825695592c87372a8da056348