If you are trying to do this bit: [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.youtube.com/v/oHg5SJYRHA0&f=gdata_videos&c=ytapi-my-clientID&d=nGF83uyVrg8eD4rfEkk22mDOl3qUImVMV6ramM"]];
I dont think it'll work - from memory, this tries to open the youtube app on the phone and the emulator doesn't have that (_I think - I dont recall seeing it!_) If you can get a reference to a h.264 video from the api (the same one that HTML5 uses) then you might be able to just load that into a MovieController (UIMoviePlayerController? Sorry, I can't remember the exact class). I did that with BBC iPlayer here: https://github.com/nicwise/onthetelly https://github.com/nicwise/onthetelly/blob/master/iplayeroffline/ProgramDetailViewController.xib.cs#L84 Warning tho: that app was written in MonoTouch 2 (I think! might have been 3). I've not even opened the project in over _2_ years!! I suspect it'll crash and burn, but the source may be useful. On Wed, Jul 25, 2012 at 5:03 AM, Aziz <[email protected]> wrote: > Thanks so much Mike & Nic .. > > it works great ! > > I tried the second method here about playing youtube video in the app > without leaving it : > http://apiblog.youtube.com/2009/02/youtube-apis-iphone-cool-mobile-apps.html > > it does't work with me ( may be because I'm trying it with the simulator !) > > is that right ?! > > another thing .. you used : video.Title to get the video's title .. > should I use : video.WatchPage to get the url to use it in question 1 ?! > > Thanks so so much >3 > > > > -- > View this message in context: > http://monotouch.2284126.n4.nabble.com/Youtube-Client-Library-in-monotouch-tp4655973p4656157.html > Sent from the MonoTouch mailing list archive at Nabble.com. > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa Earnest: Self-employed? Track your business expenses and income. http://earnestapp.com Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
