Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 07-14-2011, 06:21 AM   #1 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 83
djp_phillips is on a distinguished road
Smile Play YouTube video from a button

Hello,

I have a TableView and each row is a different youtube video object I've got from their data API, I've got a thumbnail and a few bits on info in the cell, I would like to be able to tap the cell and start the video playing.

I can't seem to find a way of initiating the youtube video without the UIWebView. I need to stay in my app so I can't call the YouTube application.

Any thoughts ?
djp_phillips is offline   Reply With Quote
Old 07-14-2011, 06:28 AM   #2 (permalink)
Registered Member
 
Join Date: Apr 2011
Posts: 136
Allah is on a distinguished road
Default

I've found a minor workaround, it might not produce exact wanted results, but I'm sure you could overlay an image or something:

How To Play YouTube Videos Within an Application | iPhone Development Blog
Allah is offline   Reply With Quote
Old 07-14-2011, 06:29 AM   #3 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

mmm....what's the problem using a UIWebView exactly?
How To Play YouTube Videos Within an Application | iPhone Development Blog
__________________
dany_dev is offline   Reply With Quote
Old 07-15-2011, 06:36 AM   #4 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 83
djp_phillips is on a distinguished road
Default

Well, the problem is that ugly play button and the youtube logo, also the image is loaded only after a short delay, this is what I've achieved:



I managed to place a webview behind the thumbnail and hide it from view, when I tap the cell I penetrate the webview and look for the play button, which I then send a tap action to programmatically. So I ended up with everything I needed

Last edited by djp_phillips; 07-15-2011 at 06:53 AM.
djp_phillips is offline   Reply With Quote
Old 12-06-2011, 08:02 AM   #5 (permalink)
Registered Member
 
Join Date: Dec 2008
Posts: 46
peachGames is on a distinguished road
Default

djp_phillips: Do you have the code for this? I need exactly the same.
peachGames is offline   Reply With Quote
Reply

Bookmarks

Tags
play, tableview, webview, youtube

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 370
9 members and 361 guests
apatsufas, chemistry, Kirkout, leostc, lzwasyc, MarkC, Sami Gh, SamorodovAlex, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,664
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Leslie80
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:39 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0