我试图在我的项目中集成一个库,这里是指向github的链接https://github.com/rinov/YoutubeKit/tree/0.1.2
但我收到此错误"自用方法调用' defaultConfiguration'之前' super.init'调用"在这两种方法中
public init(frame: CGRect = .zero, playerVars: [String: AnyObject]) {
super.init(frame: frame, configuration: defaultConfiguration())
commonInit()
self.playerVars = playerVars
}
public init(frame: CGRect = .zero, playerVars: [VideoEmbedParameter] = []) {
super.init(frame: frame, configuration: defaultConfiguration())
commonInit()
guard !playerVars.isEmpty else { return }
var params: [String: AnyObject] = [:]
playerVars.forEach {
let property = $0.property
params[property.key] = property.value
}
self.playerVars = params
}
任何帮助吗??