Jason Collins, the first openly gay active player in the NBA, has died at the age of 47 after battling cancer, his family said on Tuesday.