Canvasrenderers play/pause button connected to function