this.pause is not a function

jQuery( document ).ready(function() {
$('.video').hover(function() {
    setTimeout(function(){
        this.paused ? this.play() : this.pause();
        $(this).get(0).currentTime = 0;
    },2000);

}); 

});

Имеется список видео, не понимаю как решить проблему с this.


Ответы (1 шт):

Автор решения: Igor
jQuery( document ).ready(function() {
  $('.video').hover(function() {
    setTimeout((function(){
      this.paused ? this.play() : this.pause();
      $(this).get(0).currentTime = 0;
    }).bind(this), 2000);
  }); 
});
→ Ссылка