iOS SDK initWithURL doesn't work

I’m trying to create an iOS app using Kaltura sdk and ran across a strange behavior: player created using initWithURL redirects to safari instead of playing the stream in the app. Here is a code sample:

self.kplayer = [[KPViewController alloc] initWithURL:[NSURL URLWithString:@""]];
self.kplayer.view.frame = CGRectMake(0, 64, 320, 200);
[self.view addSubview:self.kplayer.view];

Please suggest a workaround/fix

Hey @MaxM,

Please follow below document to setup our player SDK in the right way.



cc @itay_kinnrot, @oren_melamed

thanks for the reply.

the page to refer to doesn’t explain how to play a stream not hosted on kaltura cdn as far as i see. what i need is ability to play content by providing the url (see the original question)