option.setOptionValue(15, forKey: PLPlayerOptionKeyTimeoutIntervalForMediaPackets)
/// Indicate Latency Option
option.setOptionValue(2000, forKey: PLPlayerOptionKeyMaxL1BufferDuration)
option.setOptionValue(1000, forKey: PLPlayerOptionKeyMaxL2BufferDuration)
/// HardWare Encoding/Decoding Option
option.setOptionValue(false, forKey: PLPlayerOptionKeyVideoToolbox)
option.setOptionValue(kPLLogDebug, forKey: PLPlayerOptionKeyLogLevel)
self.player = PLPlayer(url: rtmpURL, option: option) <---- Make Problem Here
self.player.delegate = self
if let playerView = self.player.playerView {
self.view.addSubview(playerView)
playerView.snp.makeConstraints({
$0.center.equalTo(self.view)
$0.width.height.equalTo(self.view)
})
}
Error Description
libc++abi.dylib: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: '-[__SwiftValue intValue]: unrecognized selector sent to instance 0x2812bac70'
terminating with uncaught exception of type NSException
Initialization Issue
Project-Bridging-Header.h
Initialization Code
Error Description