We believe the error is in the func videoConnection(_ videoConnection: XPSDKDownstreamVideoConnection, failedWithError error: Error) delegate method of the XPSDKVideoConnectionDelegate. It is happening after we are requesting the stream from the SDK with the following:
@objc open class func requestStream(forCameraID cameraID: XPSDKViewID?, size: CGSize, method: XPSDKVideoConnectionMethod, signal: XPSDKVideoConnectionSignal, fps: Int, compressionLevel: Int, userInitiatedDownsampling: Bool, keyFramesOnly: Bool, resizeSupported: Bool, time: NSDate?, upstreamImageQuality: Float, closeConnectionOnError: String?, successHandler: @escaping (MIPSDKMobile.XPSDKResponse, XPSDKVideoConnection) → Void, failureHandler: MIPSDKMobile.FailureBlock?)
How do I go about resolving this or where should I look for more information on this error.
Hello,
Thanks for reaching out! Have you checked the samples for MobileSDK? You can see it here: https://doc.developer.milestonesys.com/mipsdkmobile/reference/WebSDKdoc/index.html
The error from the mobile server log says that there is a connection error and this is the reason for missing video. So I can suggest to try several things that could be helpful for you:
- Check the user rights in the management client. Does the user have rights to login in the mobile apps?
- Try to log in and run the video stream using the web client
- Try to log in and run the video stream using the mobile client app (also we have samples in the git repository)
- Try to check the response code from the connect and login requests in your app (you can check them in the MobileSDKLiveSample for example - https://github.com/milestonesys/mipsdk-mobile-ios/tree/main/Samples/MobileSDKLiveSample)
Let me know if that helps. Have a great day!
Best regards,
Pavlina Petlova