video function preparelistener with click start and pause