Arreglado fallo en VideoSlider (no salta el evento al terminar la reproducción)

git-svn-id: https://192.168.0.254/svn/Proyectos.ASong2U_Web/trunk@71 cd1a4ea2-8c7f-e448-aada-19d1fee9e1d6
This commit is contained in:
David Arranz 2012-08-07 18:01:44 +00:00
parent 0ce9f663ab
commit 6269732080
2 changed files with 11 additions and 8 deletions

View File

@ -175,7 +175,6 @@
if(this._lastInOrder){ if(this._lastInOrder){
self.trigger('ap_PlaylistManager.PLAYLIST_END'); self.trigger('ap_PlaylistManager.PLAYLIST_END');
}else{ }else{
self.trigger('ap_PlaylistManager.COUNTER_READY'); self.trigger('ap_PlaylistManager.COUNTER_READY');
} }

View File

@ -262,15 +262,19 @@
}); });
var pm_settings = {'randomPlay': this.randomPlay, 'loopingOn': this.loopingOn}; var pm_settings = {'randomPlay': this.randomPlay, 'loopingOn': this.loopingOn};
this._playlistManager = $.playlistManager(pm_settings); this._playlistManager = $.playlistManager(pm_settings);
$(this._playlistManager).bind('ap_PlaylistManager.PLAYLIST_END', function(){
self._disableActiveItem();
self.settings.videoGalleryPlaylistEnd.call(this);
});
$(this._playlistManager).bind('ap_PlaylistManager.COUNTER_READY', function(){ $(this._playlistManager).bind('ap_PlaylistManager.COUNTER_READY', function(){
self._disableActiveItem(); self._disableActiveItem();
self._findMedia(); self._findMedia();
}); });
$(this._playlistManager).bind('ap_PlaylistManager.PLAYLIST_END', function(){
self._disableActiveItem();
self.settings.videoGalleryPlaylistEnd.call(self);
});
if(this._playlistOutside) this._setComponents(); if(this._playlistOutside) this._setComponents();