зеркало из https://github.com/mozilla/popcorn-js.git
Fixed vimeo clip_id [#956]
This commit is contained in:
Коммит
ee006fe170
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче