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:@"http://djing.com/tv/androoidhi.m3u8"]];
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.
https://vpaas.kaltura.com/documentation/Mobile-Video-Player-SDKs/iOS-Getting-Started.html

Best,

Eliza

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)