I'm using the IOS SDK.
Trying to Publish a stream and getting
Error Domain=OTSessionErrorDomain Code=2000
Code:
session = OTSession(apiKey: kApiKey,
sessionId: kSessionId,
delegate: self)
var error: OTError?
session.connect(withToken: kToken,
error: &error)
let settings = OTPublisherSettings()
settings.cameraResolution = .high
settings.cameraFrameRate = .rate30FPS
guard let publisher = OTPublisher(delegate: self, settings: settings) else { return }
session.publish(publisher, error: &error)
I'm getting the error on session.publish
Any idea what can be the problem?
I cant find any list of internal error options.
When i run the example SimpleVideo app with the same credentials everything works good.
Thanks