Gelatin which is a peptide, is added in ice-creams. What can be its role?

Emulsifying agent is added to stabilize the emulsion. Emulsifying agent forms a layer between suspended particles and the medium and- hence stabilizes the emulsion. Ice-cream (emulsion) is stabilized by emulsifying agent like gelatin.