views:

507

answers:

0

Hi,

I am developing an iPad application that plays videos from Internet Video Archive (IVA). I can play the IVA URL in iPad-Safari. But, I am able to get it streamed in my app. I am doing the following things to play the video:

  1. Add an outlet to webview in the nib.
  2. I have written the following code in my play method: NSString *myURl = //Internet Video Archive URL; the video is in mp4 format CGRect webFrame = [[UIScreen mainScreen] applicationFrame]; webview.frame = webFrame; [webview setDelegate: self]; [webview loadRequest: [NSURLRequest requestWithURL: [NSURL URLWithString: myURl]]];
  3. It gives the following error: Error Domain=WebKitErrorDomain Code=204 UserInfo=0x1b2e30 "Plug-in handled load"

I could play videos from other sites. Could someone help me to solve this problem?

Thanks in advance. Regards, Deepa