The NBA has inked a deal with a Chinese internet giant Tencent giving it exclusive rights to stream games in China.