• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Embended YouTube video
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Embended YouTube video


  • Subject: Re: Embended YouTube video
  • From: Neto <email@hidden>
  • Date: Tue, 4 Jul 2006 19:34:06 -0300

Sherm

Thanks for your answer, but I can't find any reference to HTML tags in the documentation.

I was able to load the page with:
-(IBAction)view:(id)sender
{
int i;
NSString *theLink;
i=[linksController selectionIndex];
theLink=[[links objectAtIndex:(int)(i)] valueForKey:@"url"];
[[webs mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:theLink]]];
}


But this code loads the whole page, and I need just the movie object the YouTube provides with this html code:

<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/-HkzeOFaZlo";></param><embed src="http://www.youtube.com/v/-HkzeOFaZlo"; type="application/x- shockwave-flash" width="425" height="350"></embed></object>


I can't find a way to plug this two things...

Best,


Neto






On Jul 4, 2006, at 1:26 PM, Sherm Pendley wrote:

On Jul 4, 2006, at 11:06 AM, Neto wrote:

Sorry for the newbie question...I know nothing about the WebKit.

Here's a good place to start:

<file:///Developer/ADC Reference Library/documentation/Cocoa/ Conceptual/DisplayWebContent/index.html>

The same document is on the web:

<http://developer.apple.com/documentation/Cocoa/Conceptual/ DisplayWebContent/index.html>

For their videos YouTube provides the link or the tag, for example:

<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/-HkzeOFaZlo";></param><embed src="http://www.youtube.com/v/-HkzeOFaZlo"; type="application/x- shockwave-flash" width="425" height="350"></embed></object>

Is there a way to use this tag in the WebKit?

You load it into a WebView the same way you would any other HTML. See the above guide for details.


sherm--

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Embended YouTube video
      • From: Sherm Pendley <email@hidden>
References: 
 >Embended YouTube video (From: Neto <email@hidden>)
 >Re: Embended YouTube video (From: Sherm Pendley <email@hidden>)

  • Prev by Date: Re: sort descriptor optimization
  • Next by Date: Re: Why does my custom view grow in the wrong direction?
  • Previous by thread: Re: Embended YouTube video
  • Next by thread: Re: Embended YouTube video
  • Index(es):
    • Date
    • Thread