in embed player, rewind when done

This commit is contained in:
rolux 2013-02-13 13:02:14 +05:30
parent 9b518676ae
commit 91706f3bec

View file

@ -155,6 +155,9 @@ Ox.load('UI', {
) { ) {
if (!pandora.$player.options('paused')) { if (!pandora.$player.options('paused')) {
pandora.$player.togglePaused(); pandora.$player.togglePaused();
if (data.position > options.out) {
data.position = options['in'] - 0.05;
}
} }
pandora.$player.options({ pandora.$player.options({
position: data.position < options['in'] - 0.04 position: data.position < options['in'] - 0.04