• 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: Sherm Pendley <email@hidden>
  • Date: Tue, 4 Jul 2006 19:47:09 -0400

On Jul 4, 2006, at 6:34 PM, Neto wrote:

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

Of course not - you're looking at Cocoa docs, not HTML docs, and there's nothing at all Cocoa-specific about the HTML. An HTML reference can be found at <http://w3c.org>


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

Of course it does - that's what you asked it to do, load the whole page pointed to by theLink.


, 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>

Simple - just make an NSString with that code, and use WebFrame's - loadHTMLString:baseURL: to load it.


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


References: 
 >Embended YouTube video (From: Neto <email@hidden>)
 >Re: Embended YouTube video (From: Sherm Pendley <email@hidden>)
 >Re: Embended YouTube video (From: Neto <email@hidden>)

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