Video recording to phone

Hi all. I just bought a ptz 2k indoor camera and notice that sometimes when I try to play back my phone will say “video codec not supported”. Why only sometimes when other’s will play just fine?