Application to download video from youtube - iphone

I making an application to view videos form youtube, and I think it is very easy to write a code to make the user be able download the videos and save it in the documents folder of the application, my questions are:
1) is it legal to do this, and is there any concern of the application being rejected?
2) is it possible to make the user watch the video and when he finish (watched all the video) get this data and save it, (not to download it again since he already watched the video and downloaded it).

I believe that this is a grey area. In general, you are not allowed to download copyrighted videos without paying for them. The official YouTube stance is rather interesting. This link tells you http://support.google.com/youtube/bin/answer.py?hl=en&answer=56100 that it is not supported except in one instance, that is, if you are downloading your own videos.
It then goes on to list various restrictions and policies on downloading your own videos. Note however, that not supported does not mean debarred. For further reading, please visit this link: http://news.cnet.com/8301-13739_3-9936833-46.html which is more readable for the general audience than a litany of policies. Therefore, in response to your questions:
This is in a grey area. Your application may or may not be rejected. Organizations are cracking down on copyrighted videos up on websites like YouTube. However, YouTube does not explicitly debar your application. A cursory Google search will reveal that there are many applications which allow you to download YouTube videos. For ethical concerns, I will not post any here.
What do you mean when you say "this data"? If all you are interested in are usage and view statistics of users on YouTube then I urge you to look at the YouTube API where you can do all this fun stuff without resorting to downloading a whole bunch of videos in your application.

1) Depends on luck. but, may be rejectd. Is far more likely to be rejected.
becauseof following Youtbe TOS. My app had been rejected by Apple.
For the following reasons:
22.4
We found that your app contains information that may allow its users to download YouTube content, which is not in compliance with the YouTube Terms of Service.
"...You shall not download any Content unless you see a "download" or similar link displayed by YouTube on the Service for that Content. You shall not copy, reproduce, distribute, transmit, broadcast, display, sell, license, or otherwise exploit any Content for any other purposes without the prior written consent of YouTube or the respective licensors of the Content. YouTube and its licensors reserve all rights not expressly granted in and to the Service and the Content."
also refer following site question. that's very important. you will definitely need to read.
http://www.iphonedevsdk.com/forum/business-legal-app-store/88260-youtube-downloader.html
2) Available. But, like I said above, to download YouTube video have a potential risk.

1) is it legal to do this, and is there any concern of the application
being rejected?
I'm not sure it's illegal; but it's definitely against YouTube's TOS. And, if you plan on getting your app approved in the App Store, then trust me : forget it.
2) is it possible to make the user watch the video and when he finish
(watched all the video) get this data and save it, (not to download it
again since he already watched the video and downloaded it).
Yep, that's doable.

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.

My clips never gets HD quality on Facebook

I have a problem uploading videos to Facebook and keep the original quality. I have tried every step and various solutions but it still never get HD (1080p) quality as the source file are. The highest I get is 720p.
I have Premiere Pro CC, the lastest version, and I have tried almost every codec settings there is. My file is in good quality 1080x1080 and when I export it the video looks great on the computer and even on Youtube.
Unfortunately with Facebook I can't get it to Work on my customers Facebook Page and the material looks crap.
There are other firms also uploading videos to the pages and theire content gets HD quality.
I have tried:
Alomost every codec setting recomended out there with h264.
I have checked the HD-box in Video Settings on my Facebook.
I have tried export it in Apple ProRes HQ and uploaded 1-2 GB files.
I have downloaded HD 1080p material from Youtube and uploaded to FB.
I have tried upload directly and even schedule it for weeks later.
Unfortunately there is still no luck.
Anyone out there having a solution I should try?
So I had the same problem for ages! and after a LOT of research, the only real answer I found is that Facebook gives different priorities to different users (ex: Verified and Not Verified).
So it has nothing to do with your rendering export settings...
It's all Facebook decisions...
It sounds like it may simply be a problem with the upload handling. You should be fine utilizing the native Facebook codec though it never hurts to rebuild it. There's explicit steps you can take here regarding Facebook codec standards: https://blog.pond5.com/12628-social-media-export-settings-in-adobe-premiere-pro-the-ultimate-guide/
Here's a few things I recommend for troubleshooting:
check that HD gear in the bottom right corner includes 1080. If it only goes up to
720, check to make sure your file is indeed 1080x1080.
make sure you are the one uploading directly into your customer's Facebook page.
after you've uploaded it, give it 10-20 minutes and check on it again. It's possible that they haven't finished converting the file to the proper quality if you immediately view it after upload.
I have the same issue. The best answer you have to speak someone with Technical support and this is only possible if you publish this question everywhere over the internet because the regular support are trained only to send you useless articles.
Secondly Youtube is the king of HD and 4K videos so far. Check out my 4K video. When i try to upload this 4K video on my facebook page. They simple create error. Then i downgrade it to 1080p and after upload it only watchable in 720p. Since, facebook do not care about real creator they will never reply your comments on time so get some real one from linkedin or nudge again and again their support by calling and emailing them back to back so they force to add a real technical guy in your discussion and he will solve your issue on your facebook page.
Drop me your page link on my Instagram Profile. i will add you in my discussion with facebook technical team.

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.

iphone video streaming

So, I recently submitted my first iphone app to Apple.
I did not stream my videos and they are over 10 minutes long, so my app was denied because I did not use HTTP Live Streaming.
So, we stream live videos every week. Those files are stored somewhere, but I am a little unsure of where. I want the video files that I made a feed for to be converted into streamed videos. But I don't want to use Apple's HTTP Live software. I do not know how to code into streamed video.
Is there anyway to either figure out where my streamed files are storing or is there a software that will convert videos into streamed video? Will take any suggestions.
Thanks
The main problem is that you must use HTTP Live Streaming if you wan't your app to be approved, and also be aware of the Apple restrictions (you must set different bitrates, one of 64kbps or lower).
If you don't want to use Apple tools, you can use ffmpeg. Take a look at ioncannon.net http://www.ioncannon.net/programming/452/iphone-http-streaming-with-ffmpeg-and-an-open-source-segmenter/
With Apple tools is easier. You just need mediafilesegmenter/mediastreamsegmenter.
There is also professional services out there, but not free, that will take care of all the process.
If you don't know where are your files, maybe you can use a sniffer and check where is your computer "listening to".
The easiest solution is to simply require that your users be on WiFi in order to watch the videos. The 10 min. / 5MB restriction only applies to video that is sent over Cellular networks, not WiFi. See Apple's "Reachability" code for an example of how to test the user's network connection at run-time.

How to link to the iTunes store from iPhone app?

I am trying to set up an application in which users will be able to stream music. When the user is streaming a MP3, I'd like to set up a link to the iTunes store to buy the MP3.
How can I do that? I feel like there should be some simple way of doing so using the song title and artist name, am I mistaking?
Thanks
You can experiment with the iTMS Link Maker that Apple provides and see how the links are formed. In addition, here is the iTMS Link Maker FAQ.
See this blog post about how to query the iTMS Link Maker automatically. Basically, you can query the iTMS Link Maker and get an XML document back that your application can process.
The iTunes Store Web Service Search API (pdf), although old and incomplete, documents how to search for content in the iTunes store and returns a JSON string with results.
The iTunes Store Web Service Search API allows you to place search fields in your website to search for
content within the iTunes Store. You can search for a variety of iTunes Store content; including movies,
podcasts, music, music videos, audiobooks, and TV shows. You can also call an ID-based lookup request to
create mappings between your content library and the iTunes Store content library.
Queries are sent to base url:
http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStoreServices.woa/wa/wsSearch?parameterkeyvalue
Where parameterkeyvalue can be one or more parameter key and value pairs indicating the details of your
query.
Ok, I had this same problem and the answers here did not give me enough info. So I asked this question again with different wording, and continued to search for an answer. I ended up answering my own question in the other question, and have posted the code to do this over there.
You can find the question at:
Opening iTunes Store to specific song
It contains all the code you will need to open the iTunes Store to the specific song specified by song name and song artist.
I hope this helps someone.
Creating a link to the app store could be very problematic. I suggest you use a simple library called iLink that I found when searching for a solution for this exact issue. It would figure out everything and create the link you need that would work always. Another great thing is that it is super easy to use.