|
|
|
@ -331,8 +331,8 @@ if ($('#my-player').length > 0 && typeof(videojs) != 'undefined') {
@@ -331,8 +331,8 @@ if ($('#my-player').length > 0 && typeof(videojs) != 'undefined') {
|
|
|
|
|
preload: 'auto' |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
myPlayer.one('playing', function() { |
|
|
|
|
myPlayer.pause(); |
|
|
|
|
var takeScreenshot = function() { |
|
|
|
|
//myPlayer.pause();
|
|
|
|
|
|
|
|
|
|
var height = myPlayer.videoHeight(), width = myPlayer.videoWidth(), |
|
|
|
|
aspect = height / width; |
|
|
|
@ -354,6 +354,10 @@ if ($('#my-player').length > 0 && typeof(videojs) != 'undefined') {
@@ -354,6 +354,10 @@ if ($('#my-player').length > 0 && typeof(videojs) != 'undefined') {
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
myPlayer.play(); |
|
|
|
|
//myPlayer.play();
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
myPlayer.one('playing', function() { |
|
|
|
|
setTimeout(takeScreenshot, 1000); |
|
|
|
|
}); |
|
|
|
|
} |