Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

gwelmarten

macrumors 6502
Original poster
Jan 17, 2011
476
0
England!
Hi

I am trying to access youtube.com through a WebKit WebView in my native Mac App.

The problem is that YouTube videos just show as black squares (see image below). However, if I click them they start to play (but stay black) - the sounds starts. I can also right click and the YouTube right click menu comes up (with things like 'Stats for Nerds').

Does anyone know what is happening here?

I use the standard WebView component, dragged in in Interface Builder. In my header I have the standard:

Code:
IBOutlet WebView *firstWebView;
and in my .m the standard:

Code:
[firstWebView setHidden:FALSE];
[[firstWebView mainFrame] loadRequest:[NSURLRequest requestWithURL: [NSURL URLWithString:@"http://youtube.com"]]];
The same thing happens when I access a site with an embedded YouTube video.

Thanks!

Sam
 

Attachments

  • Screen Shot 2013-11-22 at 21.46.49.png
    Screen Shot 2013-11-22 at 21.46.49.png
    20.3 KB · Views: 572
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.