Added pause event in mediaplayer thread for waiting in pause state, testing on RPi now.