#include "player.h"
+#define USER_RESPONSE_TIME 500 // Milliseconds
+
// ----------------------------------- Called from outside, one offs or info funcs
Player::Player(MessageQueue* tmessageQueue, void* tmessageReceiver, bool tIsRecording)
case S_PLAY: // to S_PLAY
{
state = S_PLAY;
+ ULONG stepback = USER_RESPONSE_TIME * video->getFPS() * ifactor / 1000;
+ if (stepback < currentFrameNumber)
+ currentFrameNumber -= stepback;
+ else
+ currentFrameNumber = 0;
restartAtFrame(currentFrameNumber);
return;
}