Constant loading when trying to view live stream from app.

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:

  1. Check the user rights in the management client. Does the user have rights to login in the mobile apps?
  2. Try to log in and run the video stream using the web client
  3. Try to log in and run the video stream using the mobile client app (also we have samples in the git repository)
  4. 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

  1. Yes
  2. Able to see video stream from web client
  3. When running stream from mobile client this is the error code we get: XProtect Code -7, HTTP 410. On the xprotect mobile app when testing, a camera will display as lost connection although video streams on the web client
  4. No error codes there.