added of suspend and resume to restart video capture