0

I have picked the images and video from phpicker and saved them in same folder in documents directory. Now i want to show them in same collection view ..

I tried getting the urls using contentsOfDirectoryAtPath and it returned an array of urls of all the photos and videos. What should be the next step ?

How to know the media type of each url in array that if that url is of image or video? and then how to set imageview if url is of image and set uiview with av video if url is of video.?

Ark Ark
  • 1
  • 2

0 Answers0