CAPTURE IOS: updated the capture function to enable pausing of recording on videos