China has confirmed the discovery of a major gas field in the South China Sea, state media reported on Wednesday.