How to identify the Whatsapp sender of a media while playing it from the gallery?
You can take a look at media's metadata. If the sender's name is there you can identify it that way. Otherwise you can ask WhatsApp developers to add sender's name into the title or something. Or if you want you can manually sort the files.

It's all up to the app.