src/js/pop.js
branchpopcorn-port
changeset 658 cfaf0986d22b
parent 652 d6e18921fab8
child 699 0d6200d801ad
equal deleted inserted replaced
657:138160f52f14 658:cfaf0986d22b
    81       return jwplayer(IriSP.PopcornReplacement._container).getPosition();            
    81       return jwplayer(IriSP.PopcornReplacement._container).getPosition();            
    82   } else {
    82   } else {
    83      var currentTime = +time;
    83      var currentTime = +time;
    84      jwplayer( IriSP.PopcornReplacement._container ).seek( currentTime );
    84      jwplayer( IriSP.PopcornReplacement._container ).seek( currentTime );
    85      IriSP.PopcornReplacement.__delay_seek_signal = true;     
    85      IriSP.PopcornReplacement.__delay_seek_signal = true;     
    86      //return jwplayer(IriSP.PopcornReplacement._container).getPosition();            
    86      IriSP.PopcornReplacement.trigger("seeked");           
    87      return currentTime;
    87      return currentTime;
    88   }
    88   }
    89 };
    89 };
    90 
    90 
    91 IriSP.PopcornReplacement.play = function() {
    91 IriSP.PopcornReplacement.play = function() {
   179        c.onStart();
   179        c.onStart();
   180      }
   180      }
   181      
   181      
   182    }
   182    }
   183 
   183 
   184   if (IriSP.PopcornReplacement.__delay_seek_signal === true) {
       
   185     IriSP.PopcornReplacement.trigger("seeked");
       
   186   }
       
   187   IriSP.PopcornReplacement.trigger("timeupdate");
   184   IriSP.PopcornReplacement.trigger("timeupdate");
   188 };
   185 };
   189 
   186 
   190 
   187 
   191 IriSP.PopcornReplacement.__playHandler = function(event) {
   188 IriSP.PopcornReplacement.__playHandler = function(event) {