Download Video from YouTube in iphone Application - iphone

In one Application i use YouTube Video for display i want first that video download from YouTube then it play from locally from downloaded source.
This is Possible.....If yes then provide suggestion...

You can use PSYouTubeExtractor.h class
It can get youtube mp4 video url and than downloading and viewing is not a problem
Here is my example
https://github.com/comonitos/youtube_video

You have to download your video through file location url using NSURLConnection .After that you can MPMovieplayerContoller to run that video.you can google to get example for NSURLConnection and MPMovieplayerController.

Related

How to download video from youtube and also trim or cut that downloaded video in iphone sdk?

I want to download video from youtube. Then the downloaded video should saved and user can also play it in offline mode and user can also trim or edit that downloaded video.
I have searched a lot on Google and i find some answers but they didn't satisfy my question.
This question tell downloading video from youtube may reject your application is this true?
The screen shot from apple. YouTube Terms & Condition are also not allowing to download videos. Read section 5-B.
I have also try to load some examples for video downloading from youtube but they all failed for loading video MyTube , YouTube , SCBTube , PSYouTubeExtractor
Some questions related to youtube download. and for video trimming or cutting i am following this code .
is this downloading is possible or not ?
Downloading is, in some cases, possible, but it's against the YouTube T&Cs...so yeah, don't do it. Furthermore, even if you did implement this not all videos on YouTube are actually available in the appropriate H.264 format (e.g, videos which require advertising or content protection are often not available).

Playing video from youtube link without UIWebView

I want to play a video in my app from youtube link e.g: http://www.youtube.com/watch?v=Uner-3tTY1I.
But i don't want to redirect the user to any web view in the app. Just want to play that video in the video player in the current view of my application.
Is it possible to play the video without redirecting to UIWebView? If possible, how can i do this? Thanks for the help in advance.
The only allowed way seems to be using UIWebview. Doing it other way will violate youtube copyrights.
However there are few open source libraries out there. You can use it at your own risk.
Just use XCDYouTubeVideoPlayerViewController. It uses progressive download + MoviePlayer and AVFoundation frameworks.
To play this video you need to have the link to the video stream that is associated with video you want to play. Unfortunately this isn't so simple to get this link for some movies on YouTube since this link can be encoded for some movies (channel VEVO for example). Read this for more information about encoded links http://www.jwz.org/blog/2013/06/youtube-download-counter-countermeasures-applied/.
Unfortunattely as for now there is no simple way to decode these links. Despite this, you can get the source link for the not encoded films without bigger problems using some calls to the YouTube Api.

why quicktime video don't play in moodle

Using Moodle, can play .flv file but can't paly quick time video foarm and force downlaod.
I want to direct play in website.pls,suggestion me
You can use JW player plugin to upload quick time video. Even you can use media plugin which is in Moodle plugin site to upload videos.

Download youtube video through gdata-objectivec-client

I am developing an iphone app in which i have to integrate the youtube api.
I am using gdata-objectivec-client library for iphone
http://code.google.com/p/gdata-objectivec-client/
I am able to search, like, dislike, upload video etc. through this library but i don't know how to stream and download the video from youtube using this library as there is no class for this.
My question is that is it possible to download/stream the youtube video through gdata-objectivec-client library?
Thanks in advance.
You cant download youtube video using API. Its against thier Terms and conditions.
But streaming is possible i think.
Check this post
iphone:How to stream and play youtube video with in application using MPMoviePlayer?

Auto launch the video player in Android from the browser like an iPhone does

I have just created and iPhone web app, which has some x264 (mp4) video files on it. When I link directly to the file on the iPhone and the user taps the link, the video player is loaded and the video starts playing.
Using the app on an Android phone causes the browser to download the video instead of just playing it. Is there a way to force a video player to just boot up and play the video not download it?
Thanks in advance.
You should know that Android is quite strict regarding the video streams that you can stream. To be able to watch a stream a video (progressively watch and download) the video container must be correctly formatted.
There are many ways to create a container suitable for progressive streaming. You can look it up here: http://groups.google.com/group/android-beginners/browse_thread/thread/2a801ce5f71b5aaf?pli=1
I have successfully created a streamable video. Try to open it from your browser: http://students.mimuw.edu.pl/~nh209484/Video000.3gp