Webview + FlashVideos

S

SxDx

Mitglied
Thread Starter
Dabei seit
21.06.2008
Beiträge
43
Reaktionspunkte
0
Hallo,

ich schreibe derzeit ein Programm mit einer WebView, und möchte das darin auch Youtube Videos usw. angezeigt werden.
Die MIMETypes habe ich bereits registriert:
Code:
NSMutableArray *newMIME = [[NSMutableArray alloc] initWithArray:[WebView MIMETypesShownAsHTML]];
	NSArray *mimeArray = [[NSArray alloc] initWithObjects:@"application/x-shockwave-flash",@"video/x-flv", @"video/mp4", @"video/x-m4v", 
						  @"audio/mp4a-latm", @"video/3gpp", @"video/quicktime", @"audio/mp4",nil];
	[newMIME addObjectsFromArray:mimeArray];
	[WebView setMIMETypesShownAsHTML:newMIME];
Aber immer wenn ich youtube oder ähnliches aufrufe stürzt das Programm sofort ab.
Was mache ich falsch?

mfg
SxDx
 
Zurück
Oben Unten