We are developing an iPhone app where we need to allow users to search and see videos within the app itself.
I have seen this link
How to incorporate youtube into iPhone app? but I have a doubt. Why can’t we simple use NSURLResponse object to retrieve the response and parse it.?
Are they any other easier approaches to implement this functionality?
You CAN just hit a search URL for youtube and parse the data that you get back. The only problem with that is the app would not remain stable. IF youtube were to change the layout of the page, or the names of the tags your app would more than likely crash or become unresponsive.
Using the API’s that YouTube has created for your specific needs, would make the app much more stable.
Its unlikely the API would change without YouTube giving you prior notice which will allow you to make the changes need to your app before the update happens.
Do it right the first time. Heres the API link! 🙂
http://code.google.com/apis/youtube/getting_started.html#data_api
Query the server, get the response, and parse the data into a UITableView.