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