This commit is contained in:
Jon Buckley 2012-03-08 14:45:41 -05:00
Родитель 8eafbe5636 f9709c83ed
Коммит ee006fe170
3 изменённых файлов: 8 добавлений и 5 удалений

Просмотреть файл

@ -95,7 +95,7 @@
//On document ready
document.addEventListener( "DOMContentLoaded", function() {
var player = Popcorn.vimeo( "player_1", "http://player.vimeo.com/video/6960892" )
var player = Popcorn.vimeo( "player_1", "http://player.vimeo.com/video/11336811" )
.footnote({
start: 5,
end: 40,

Просмотреть файл

@ -216,9 +216,12 @@
media.dispatchEvent( "canplaythrough" );
};
var clip_id = ( /\d+$/ ).exec( src );
flashvars = {
clip_id: src,
js_api: 1,
// Load a video not found poster if the url does not contain a valid id
clip_id: clip_id ? clip_id[ 0 ] : 0,
api: 1,
js_swf_id: vimeoContainer.id
};

Просмотреть файл

@ -425,9 +425,9 @@ asyncTest( "Popcorn Vimeo Plugin offsetHeight && offsetWidth Test", function() {
popped.listen( "loadeddata", function() {
elem = document.querySelector( "div#player_3 object" );
equal( elem.height, popped.media.offsetHeight, "The media object is reporting the correct offsetHeight" );
equal( elem.height, popped.media.childNodes[0].offsetHeight, "The media object is reporting the correct offsetHeight" );
plus();
equal( elem.width, popped.media.offsetWidth, "The media object is reporting the correct offsetWidth" );
equal( elem.width, popped.media.childNodes[0].offsetWidth, "The media object is reporting the correct offsetWidth" );
plus();
});