How to embed a Youtube video and Podcasts into an iphone app - iphone

I have an app which requires the Youtube videos and Audio Podcasts to be played inside my app and not giving out control to youtube player or safari.
What is the method that can be used to embed Youtube videos and Audio Podcasts into my iphone app?
Any tutorials about the above issue are most desirable as I am new into this.
Please give ur suggestions.
Your suggestions are welcome.
Thanks in Advance!!

If you want to embed and play videos inside your app then copy videos to your app's resource folder(.mp4 or .m4v format is desired) and use MPMoviePlayerViewController class instance to play the video. :)

Related

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.

How to manually add auido files in photo gallery in iphone

I am new to iphone programming. Can any body tell me that how to manually add audio files inside the photo gallery? I got some link like we can manually add video inside the simulator but that is only video. I want audio files,too. I have searched in google but I didnt find any where how to add audios files inside photo gallery.
Please can any body tell me.
Thanks
The iPhone's photo gallery does not support audio files.
You can not add audio files to Photo Library. But you can use iPod Library Access Programming Guide for same approach.
Also refer AddMusic demo. AddMusic demonstrates basic use of iPod library access, part of the Media Player framework. You use iPod library access to play songs, audio books, and audio podcasts that are synced from a user's desktop iTunes library. This sample uses the Media Player framework's built-in user interface for choosing music.
AddMusic also demonstrates how to mix application audio with iPod library audio

How can I embed a video on my website in order to work on an iPhone and what video format is required?

I have seen several sites where they are able to create links to videos and they actually open on the video player of the iPhone, iPad or iPod.
This is obviously not a flash player video, and they don't seem to be embedded from youtube.
So I was wondering how can I add a video on my site that can be opened on an iPhone, and also what type of format is required for this?
Thanks
HTML5 Video works on iOS devices, see http://html5video.org
and here is a decent player plugin
http://videojs.org

Loading youtube video in my phonegap iphone app

Hi all im trying to load youtube/Dailymotion video using the iframe method in my phonegap app on iphone but everytime i play the video the alert message popsup saying this movie could not be played please help
Have you tried playing a non-commercial video, like a tutorial or something? If that plays you know at least that it is possible to play certain videos. There may be restrictions for playing some 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?