Using VideoToolbox and h264

Tried the ************ to play h264 smoothly, using iPhone 7 and iPad Pro 10.5. Other than these two machines, everything fails. It just came out with -8969 in the decoder callback. Is it possible for the ************ to work with machine A and not with machine B? If so, what is the requirement to make them all works?