Media stream image collection iteration

Does anyone know how to iterate on images retrieved from a stream like
In a twig template that would be

set images = page.media(“image://*.jpg”)
for image in images
image.html()
endfor

Thanks in advance