Problem After integration kaltura sdk ios 3.0


#1

Hello,

i am new in ios but i am developing a simple app which help to play videos ,

After integrating sdk in my apps

class ViewController: UIViewController {

@IBOutlet weak var playerContainer: UIView!
   var player: Player?



override func viewDidLoad() {
    
    

    
            let contentURL="https://cdnapisec.kaltura.com/p/2215841/playManifest/entryId/1_w9zx2eti/format/applehttp/protocol/https/a.m3u8"
    
    // create media source and initialize a media entry with that source
    let entryId = "sintel"
    let source = MediaSource(entryId, contentUrl: URL(string: contentURL), drmData: nil, mediaFormat: .hls)
    // setup media entry
    let mediaEntry = MediaEntry(entryId, sources: [source], duration: -1)
    
    // create media config
    let mediaConfig = MediaConfig(mediaEntry: mediaEntry)
    
    do {
        self.player = try PlayKitManager.shared.loadPlayer(pluginConfig: nil)
        self.player!.prepare(mediaConfig)
        
       // self.playerContainer.addSubview(self.player!.view!)
        
        PlayerView.createPlayerView(forPlayer: player!).add(toContainer: self.playerContainer)
    } catch let e {
        // error loading the player
    }
    
       }

@IBAction func playClicked(_ sender: Any) {
    if self.player!.isPlaying {
        self.player!.play()
    }
    
}

}

when i clecked on play button i am getting the error below:

vvAVPlayerEngine+Observation.swift:80 WARNING: error description: Optional(“No response for media file in 2s”), error domain: CoreMediaErrorDomain, error code: -12889
[2017-10-16 16:53:20.422] MessageBus.swift:66 INFO: post event: PlayerEvent.ErrorLog, with data: [“error”: Error Domain=com.kaltura.playkit.error.player Code=7100 “No response for media file in 2s” UserInfo={rootCode=-12889, rootDomain=CoreMediaErrorDomain, NSLocalizedDescription=No response for media file in 2s}]
2017-10-16 16:53:21.243816+0100 testkaltura[3062:115350] [aqme] 254: AQDefaultDevice (173): skipping input stream 0 0 0x0
2017-10-16 16:53:23.252501+0100 testkaltura[3062:115350] [aqme] 254: AQDefaultDevice (173): skipping input stream 0 0 0x0
2017-10-16 16:53:25.261096+0100 testkaltura[3062:115350] [aqme] 254: AQDefaultDevice (173): skipping input stream 0 0 0x0
2017-10-16 16:53:27.269596+0100 testkaltura[3062:115350] [aqme] 254: AQDefaultDevice (173): skipping input stream 0 0 0x0
[2017-10-16 16:53:27.343] AVPlayerEngine+Observation.swift:108 DEBUG: observeValue:: onEvent/onState
[2017-10-16 16:53:27.343] AVPlayerEngine+Observation.swift:119 DEBUG: keyPath:: currentItem.loadedTimeRanges
[2017-10-16 16:53:27.343] MessageBus.swift:66 INFO: post event: PlayerEvent.LoadedTimeRanges, with data: [“timeRanges”: [[PKTimeRange] - start: 0.0, end: 3.90095238095238, duration: 3.90095238095238]]
[2017-10-16 16:53:27.344] AVPlayerEngine+Observation.swift:108 DEBUG: observeValue:: onEvent/onState
[2017-10-16 16:53:27.344] AVPlayerEngine+Observation.swift:119 DEBUG: keyPath:: currentItem.loadedTimeRanges
[2017-10-16 16:53:27.344] MessageBus.swift:66 INFO: post event: PlayerEvent.LoadedTimeRanges, with data: [“timeRanges”: [[PKTimeRange] - start: 0.0, end: 3.90095238095238, duration: 3.90095238095238]]
2017-10-16 16:53:29.278231+0100 testkaltura[3062:115350] [aqme] 254: AQDefaultDevice (173): skipping input stream 0 0 0x0
[2017-10-16 16:53:29.351] AVPlayerEngine+Observation.swift:80 WARNING: error description: Optional(“No response for media file in 2s”), error domain: CoreMediaErrorDomain, error code: -12889
[2017-10-16 16:53:29.351] MessageBus.swift:66 INFO: post event: PlayerEvent.ErrorLog, with data: [“error”: Error Domain=com.kaltura.playkit.error.player Code=7100 “No response for media file in 2s” UserInfo={rootCode=-12889, rootDomain=CoreMediaErrorDomain, NSLocalizedDescription=No response for media file in 2s}]
2017-10-16 16:53:31.286816+0100 testkaltura[3062:115350] [aqme] 254: AQDefaultDevice (173): skipping input stream 0 0 0x0
2017-10-16 16:53:33.295402+0100 testkaltura[3062:115350] [aqme] 254: AQDefaultDevice (173): skipping input stream 0 0 0x0
2017-10-16 16:53:35.304163+0100 testkaltura[3062:115350] [aqme] 254: AQDefaultDevice (173): skipping input stream 0 0 0x0
[2017-10-16 16:53:36.080] AVPlayerEngine+Observation.swift:108 DEBUG: observeValue:: onEvent/onState
[2017-10-16 16:53:36.081] AVPlayerEngine+Observation.swift:119 DEBUG: keyPath:: currentItem.loadedTimeRanges
[2017-10-16 16:53:36.081] MessageBus.swift:66 INFO: post event: PlayerEvent.LoadedTimeRanges, with data: [“timeRanges”: [[PKTimeRange] - start: 0.0, end: 5.85142857142857, duration: 5.85142857142857]]
2017-10-16 16:53:37.312572+0100 testkaltura[3062:115350] [aqme] 254: AQDefaultDevice (173): skipping input stream 0 0 0x0
2017-10-16 16:53:39.321191+0100 testkaltura[3062:115350] [aqme] 254: AQDefaultDevice (173): skipping input stream 0 0 0x0
2017-10-16 16:53:41.329740+0100 testkaltura[3062:115350] [aqme] 254: AQDefaultDevice (173): skipping input stream 0 0 0x0
2017-10-16 16:53:43.338699+0100 testkaltura[3062:115350] [aqme] 254: AQDefaultDevice (173): skipping input stream 0 0 0x0
2017-10-16 16:53:45.347100+0100 testkaltura[3062:115350] [aqme] 254: AQDefaultDevice (173): skipping input stream 0 0 0x0
2017-10-16 16:53:47.355749+0100 testkaltura[3062:115350] [aqme] 254: AQDefaultDevice (173): skipping input stream 0 0 0x0
[2017-10-16 16:53:48.131] AVPlayerEngine+Observation.swift:108 DEBUG: observeValue:: onEvent/onState
[2017-10-16 16:53:48.132] AVPlayerEngine+Observation.swift:119 DEBUG: keyPath:: currentItem.loadedTimeRanges
[2017-10-16 16:53:48.132] MessageBus.swift:66 INFO: post event: PlayerEvent.LoadedTimeRanges, with data: [“timeRanges”: [[PKTimeRange] - start: 0.0, end: 7.31428571428571, duration: 7.31428571428571]]
2017-10-16 16:53:49.364208+0100 testkaltura[3062:115350] [aqme] 254: AQDefaultDevice (173): skipping input stream 0 0 0x0
[2017-10-16 16:53:51.094] AVPlayerEngine+Observation.swift:80 WARNING: error description: Optional(“Media file not received in 14s”), error domain: CoreMediaErrorDomain, error code: -16830
[2017-10-16 16:53:51.095] MessageBus.swift:66 INFO: post event: PlayerEvent.ErrorLog, with data: [“error”: Error Domain=com.kaltura.playkit.error.player Code=7100 “Media file not received in 14s” UserInfo={rootCode=-16830, rootDomain=CoreMediaErrorDomain, NSLocalizedDescription=Media file not received in 14s}]
2017-10-16 16:53:51.372753+0100 testkaltura[3062:115350] [aqme] 254: AQDefaultDevice (173): skipping input stream 0 0 0x0
2017-10-16 16:53:53.381334+0100 testkaltura[3062:115350] [aqme] 254: AQDefaultDevice (173): skipping input stream 0 0 0x0

need help