title: Need to show Videos and images in uicollectionview
body: <p>How to show videos and images in UICollectionview.<br>
  I given URL for this view :</p>
  
  <p><a href="http://exarcplus.com/check.png" rel="nofollow">http://exarcplus.com/check.png</a></p>
  
  <p>The images and videos fetch from server using JSON.</p>
  
  <p>code for images fetch from server:</p>
  
  <pre><code>NSDictionary *appsdict = [array_all objectAtIndex:indexPath.item];
  NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:[appsdict objectForKey:@"url"]]];
  [NSURLConnection sendAsynchronousRequest:request queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *error) {
          [cell.image_gallery setImage:[UIImage imageWithData:data]];
      }];
  ////////but don't know how to fetch videos from server
  </code></pre>