Hello.
how to make an application using that user can download videos from youtube in iphone/ipod and can watch it later.
3 Answers
Hi Jay
I assume you have worked with Google to licence their videos of for offline use within your app? This will be a much harder process than the actual code.
To achieve this though you will need to go through these steps;
- Use HTTPClient to retrieve a the web page the Video is shown in, this can be done using their standard URL and the unique video code.
- Parse the HTML that was returned - looking for the EMBED, OBJECT or VIDEO tag dependant on how the page is made up using Regular Expressions. There are different pages for each main type.
- Take that returned snippet and another Regular Expression to determine the URL portion.
- Use HTTPClient again to download that File.
- Done.
BTW you should remember that iOS can only show MP4 style video and not flash videos, so downloading anything ending .swf or .flv will not help, but .mp4 or .mov will be more likely.
Good luck.
simply provide logic to get the flashVideo downloader functionality. for this you will have to google it that how to support flash video download in iphone app. you will get bunch of articles. my suggestion for you is, use module development approach for this.
1: build a native module and use it in titanium app. 2: to build native module you will get helping code from all these links.
hey Jay, i was looking for your problem, i found this is useful and its java script based so, it will work with titanium as well. checkout this link
Your Answer
Think you can help? Login to answer this question!