0

I’m currently in the process of developing an iOS app for a music producer but he wants all his music videos that are on different channels on YouTube for example, SBTV, GRM Daily, RinseFM, Boiler Room etc. But the only way I can think of is through JSON is there a way to put a link in the JSON file or would it have to be done through Xcode/Swift.

I’m open to suggestions and greatful for your responses!

Thanks

rmaddy
  • 314,917
  • 42
  • 532
  • 579

1 Answers1

0

Yes you could do that, the JSON may look something like this (this excerpt is from a Node.js server), then you could play the video with a WKWebView. Here is the official apple documentation, https://developer.apple.com/documentation/webkit/wkwebview

var videos = [

{
    name: "Video One", 
    videoURLString: "Youtube.com/whatever",
}, 

{
    name: "Video Two", 
    videoURLString: "Youtube.com/whatever", 
}
]; 
Echizzle
  • 3,359
  • 5
  • 17
  • 28
  • oh that's awesome!, also in the string you'll be able to include preview of the video thumbnail etc? – Ryan Couch Nov 24 '17 at 21:47
  • Yes that can be done, this answer may be helpful https://stackoverflow.com/questions/32691304/ios-how-to-get-thumbnail-from-video-without-play – Echizzle Nov 25 '17 at 20:21