changed video engine implementation using QtConcurrent + added loop mode to the player