This is most likely a file format or digital rights management issue. Make sure the files are in a compatible format. The computer can play them because it is just looking at the player as a storage device and does not rely on it for playback.
If the files are .wma, try converting them to .mp3. Your device may have come with software that will perform this function for you.