зеркало из https://github.com/mozilla/popcorn-js.git
fixed meta data loader
This commit is contained in:
Родитель
35045a3bb0
Коммит
f00e5c2100
|
@ -1,14 +1,14 @@
|
|||
<html>
|
||||
<head>
|
||||
</head>
|
||||
<body>
|
||||
<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>
|
||||
<script src="../../popcorn.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="videoContainer" style="text-align:center;">
|
||||
<select id="language">
|
||||
<option value="en">English</option>
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
<span><p>
|
||||
<head>
|
||||
<title>html5 video demo</title>
|
||||
<script src="http://code.jquery.com/jquery.js"></script>
|
||||
|
@ -10,7 +9,7 @@
|
|||
<script src="../../popcorn.js"></script>
|
||||
<link href="style.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<table><tr><td><p>
|
||||
|
||||
|
||||
|
@ -103,4 +102,5 @@
|
|||
<!-- End Second Container Div -->
|
||||
|
||||
</td></tr></table>
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -112,15 +112,10 @@ font-size:15px;
|
|||
|
||||
/* Layout */
|
||||
|
||||
body{
|
||||
background: #f8f8f8 url(http://64.19.142.10/webmademovies.org/demos/semantic_video/images/body_bg.jpg) repeat-x center top;
|
||||
}
|
||||
|
||||
.wrapper{
|
||||
width:1090px;
|
||||
margin:0 auto;
|
||||
min-height:880px;
|
||||
background: url(http://64.19.142.11/webmademovies.org/demos/semantic_video/images/header.jpg) no-repeat center top;
|
||||
}
|
||||
|
||||
.container-bot, .container-top{
|
||||
|
@ -128,15 +123,6 @@ width:100%;
|
|||
overflow: hidden;
|
||||
}
|
||||
|
||||
.container-top{
|
||||
background: url(http://64.19.142.12/webmademovies.org/demos/semantic_video/images/footer_bg.jpg) repeat-x center bottom;
|
||||
}
|
||||
|
||||
.container-bot{
|
||||
background: url(http://64.19.142.10/webmademovies.org/demos/semantic_video/images/footer.jpg) repeat-x center bottom;
|
||||
}
|
||||
|
||||
|
||||
/* Header */
|
||||
|
||||
header#global-header{
|
||||
|
@ -752,4 +738,4 @@ top:-22px;
|
|||
width:23px;
|
||||
cursor: pointer;
|
||||
z-index: 999999;
|
||||
}
|
||||
}
|
||||
|
|
19
popcorn.js
19
popcorn.js
|
@ -807,11 +807,6 @@
|
|||
Popcorn.WikiCommand = function(name, params, text, videoManager) {
|
||||
Popcorn.VideoCommand.call(this, name, params, text, videoManager);
|
||||
|
||||
//L10n
|
||||
var src = this.params.src;
|
||||
var lang = this.params.lang;
|
||||
if (typeof lang === "undefined") { lang="en"; }
|
||||
//end L10n
|
||||
|
||||
// All data from Universal Subtitles comes from the text attribute
|
||||
// so the data from that needs to enter the appropriate fields
|
||||
|
@ -820,6 +815,12 @@
|
|||
// 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
|
||||
|
@ -1116,12 +1117,12 @@
|
|||
};
|
||||
|
||||
var convertData = function(video, manager, data, convert, type) {
|
||||
video.addEventListener('loadedmetadata', (function(data, convert, type) {
|
||||
return function() {
|
||||
//var si = setInterval(function() {
|
||||
// if (video.readyState < 1) return;
|
||||
// clearInterval(si);
|
||||
convert(data, manager, type);
|
||||
manager.loaded();
|
||||
};
|
||||
}(data, convert, type)), false);
|
||||
//}, 50);
|
||||
};
|
||||
|
||||
// Loads an external xml file, and returns the xml object
|
||||
|
|
Загрузка…
Ссылка в новой задаче