How to incorporate YouTube into iPhone app - iphone

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.

Related

Using Youtube as video storage for my app

I am still relatively new to these topics.
I am programming my app in Flutter and I can already use Flutter to play a foreign video from Youtube in the app.
I want to upload in Youtube all my video resources as private to be able to display them in my app.
Is there any documentation on how to do this? What are the costs per request?
Is Youtube even right for such a mobile app?`
I was going to use Firebase cloud storage, but think that can get very expensive once I release the app.
What other options would I have?
This question isn't really suitable for StackOverflow, since it's basically just asking whether you can use YouTube.
That being said, as long as you don't violate the T&C of YouTube and you're fine with storing all your videos on their platform, yes, you can do this. Using YouTube this way is free as of now. But note that there is a difference between "private" and "unlisted".
You can create a profile on youtube, upload as many videos as you want and list them as unlisted, meaning you can only find the video if you have the link, then in your app link the vides to whatever selection method you have. so ex I have a button when clicked launches a specific unlisted youtube url link and plays the video.
It would be the same as if someone was searching your video publicly and playing it, both are free.

Is it legal to publish youtube videos at flutter app?

I want to use YouTube videos as part of my apps using YouTube API and web view
I just wonder what are all the issues that I can face
https://www.youtube.com/static?gl=CA&template=terms . you must adhere to their TOS rules. And like it or not, They reserve the right to shut you down at any time they so choose.

Detect video is going to be played in UIWebView

I want something similar to this:
https://itunes.apple.com/us/app/video-download-ibolt-downloader/id481606548?mt=8
I want to detect there is any video in web page and want to download that stream into iphone device.
In console media players tells that it is setting the movie path to some URL. There must be a way to download stream and save in local device.
P.S: I know how to download a video file. I want it using online streaming or from sites which does not provide a download link.
P.S++: Video download from HTML + UIWebView is not helpful.
Thanks.
The post is old but it might be worth to clear this
Those apps are probably using undocumented API. Apple doesn't accept private API when apps are submitted to the app store, however they might not be looking for usage of undocumented notifications
You can find more information in here and here
Those apps show you the download button after you click video, and after the video starts. So probably they are listening for media playback notifications and get the url from MPMoviePlayer instance.
By the way, apple doesn't allow apps that download videos from youtube. There might be some apps on the app store that does that, but I recently got rejected because of this. It might not be worth the hassle, as most big video streaming websites don't want people downloading their videos and work hard to make sure that they don't.

Adding photo upload to an iPhone App that's mostly HTML5/JS

I'm working on an iPhone App that's HTML5/JS displayed in a single UI Webview. I'd like to add photo upload capabilities, and I'm wondering what the best approach would be to extend the iPhone app with the necessary classes to pick a photo and upload via an API. I'd also like to trigger the display of the photo picker via JS if that's possible.
I know it's possible to use a framework like PhoneGap to do this, but I don't want to migrate the whole app to a new framework yet. Also, sorry for the "how to" type question - I normally ask about specific problems after I've exhausted my efforts, but I'm pretty new to Objective C, so I'd appreciate some guidance, even if it's just a simple design explanation.
the image picker (UIImagePicker) is fairly straightforward to work with: http://developer.apple.com/library/ios/#documentation/uikit/reference/UIImagePickerController_Class/UIImagePickerController/UIImagePickerController.html
and for an API, are you sending it to an existing system? or creating your own. You just need to craft an NSMutableURLRequest with POSTED data in a multi-part format, and then handle the image portion appropriately in your server.
this might help: upload image from iPhone application

Iphone and Youtube api

I want to retrieve uploaded videos from a certain youtube channel and I want to display the list in a UITableView. Then when user clicks on a row the video will play. Is this possible to do with youtube API?
Im new to iPhone app development and I need to get this done asap. Can some one provide some code samples or point me in the right direction. I cant find much useful stuff on the net
Please Help
Maybe a good start is
Google Data APIs Objective-C Client Library
or
Google Data APIs Examples