According to Apple Official Website, Apple devices and players only support “Motion JPEG (M-JPEG) up to 35 Mbps, 1280 by 720 pixels, 30 frames per second, audio in ulaw, PCM stereo audio in .avi file format”. So it is impracticable if the AVI files are encoded with a codec that QuickTime can’t recognize. In this case, the best solution is to convert AVI to MOV (QuickTime) for playback.
Hope this is helpful to you.