rvi / ONVIFCamera

Pod and example on how to connect to an ONVIF camera
MIT License
88 stars 18 forks source link

Issue after importing ONVIFCAMERA #9

Closed skromandev closed 4 years ago

skromandev commented 4 years ago

I get an error "soapengine.h" file not found and Could not build Objective-C module 'ONVIFCamera'.

Please suggest solution for this using Xcode 11.2

rvi commented 4 years ago

Did you run pod install?

skromandev commented 4 years ago

Yes , I did. No issues or warning from pod end . Issue is with respect to some parser.

On Tue, 7 Jan 2020 at 18:23, Remy Virin notifications@github.com wrote:

Did you run pod install?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rvi/ONVIFCamera/issues/9?email_source=notifications&email_token=AN6WXQ23IZHCKXNFTD7FBVDQ4R3NTA5CNFSM4KDVBOQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIIYOPA#issuecomment-571574076, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN6WXQ2A4NNMTNUEHZW4T2TQ4R3NTANCNFSM4KDVBOQA .

skromandev commented 4 years ago

So basically the errors faced when run on simulator or actual device is like below :

2020-01-08 10:43:23.181137+0530 IPCAMERA[941:27397] creating player instance using shared library

2020-01-08 10:43:23.240753+0530 IPCAMERA[941:27397] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x600001e1bf40> F8BB1C28-BAE8-11D6-9C31-00039315CD46

nil

2020-01-08 10:43:32.294816+0530 IPCAMERA[941:31554] Initializing SOAPEngine v.1.41

2020-01-08 10:43:33.584808+0530 IPCAMERA[941:31829] [] nw_proxy_resolver_create_parsed_array [C1 proxy pac] Evaluation error: NSURLErrorDomain: -1004

2020-01-08 10:43:33.646171+0530 IPCAMERA[941:31828] CredStore - performQuery - Error copying matching creds. Error=-25300, query={

}

2020-01-08 10:43:33.661012+0530 IPCAMERA[941:31831] [] nw_proxy_resolver_create_parsed_array [C2 proxy pac] Evaluation error: NSURLErrorDomain: -1004

2020-01-08 10:43:33.800516+0530 IPCAMERA[941:31831] [] nw_proxy_resolver_create_parsed_array [C3 proxy pac] Evaluation error: NSURLErrorDomain: -1004

:1: parser error : Start tag expected, '<' not found

Error 404: Not Found

^

:1: parser error : Start tag expected, '<' not found

Error 404: Not Found

^

:1: parser error : Start tag expected, '<' not found

Error 404: Not Found

^

Can't connect to the camera for an unknow reason. Status code: 404

SOAP REQUEST: Optional("http://www.onvif.org/ver10/device/wsdl/GetServices http://www.onvif.org/ver10/device/wsdl/GetServices")

response: Optional([:])

And I am not able to figure out this .

So can you please throw some light on this ?

Also I am getting the same error on simulator end when tried that sample key.....

And would this be solved on buying soap license because I tried with simulator and same error came . I have ip of my camera as "192.168.0.2" and nothing else , would this much sufficient help me in streaming ? Or something else is needed on server end ?

Please educate me on this.

Thanks & Regards

On Tue, 7 Jan 2020 at 18:23, Remy Virin notifications@github.com wrote:

Did you run pod install?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rvi/ONVIFCamera/issues/9?email_source=notifications&email_token=AN6WXQ23IZHCKXNFTD7FBVDQ4R3NTA5CNFSM4KDVBOQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIIYOPA#issuecomment-571574076, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN6WXQ2A4NNMTNUEHZW4T2TQ4R3NTANCNFSM4KDVBOQA .

rvi commented 4 years ago

I never saw this before. Try to remove CredStore, try just with my demo app and nothing else, it should work.

skromandev commented 4 years ago

Using latest pods for mobilevlckit 3.3.9, still facing the issue .

rvi commented 4 years ago

Yes this has nothing to do with VLC. you’re camera might return an invalid response, you can debug and print it, you will be able to check its validity online. Have you remove CredStore?

skromandev commented 4 years ago

Where is credstore and what is it not able to find it trough normal search?

On Thu, 9 Jan 2020 at 01:01, Remy Virin notifications@github.com wrote:

Yes this has nothing to do with VLC. you’re camera might return an invalid response, you can debug and print it, you will be able to check it’s validity online. Have you remove CredStore?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rvi/ONVIFCamera/issues/9?email_source=notifications&email_token=AN6WXQ7PS2OA4GXVSYKWII3Q4YSYPA5CNFSM4KDVBOQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEINWOIY#issuecomment-572221219, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN6WXQ4ATCPCPQBXIQYEB3DQ4YSYPANCNFSM4KDVBOQA .

rvi commented 4 years ago

My bad, I thought it was an external library, but it's used by iOS, maybe this thread can help you.

skromandev commented 4 years ago

OK thanks.

On Mon, 13 Jan 2020 at 19:10, Remy Virin notifications@github.com wrote:

My bad, I thought it was an external library, but it's used by iOS, maybe this thread https://stackoverflow.com/questions/46099940/credstore-perform-query-error can help you.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rvi/ONVIFCamera/issues/9?email_source=notifications&email_token=AN6WXQZHGY5RJ3U5Y34LY7LQ5RVL5A5CNFSM4KDVBOQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIYXU7I#issuecomment-573667965, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN6WXQZTIJAMTTTOOVFAOCDQ5RVL5ANCNFSM4KDVBOQA .

skromandev commented 4 years ago

Hi,

I finally got it working using the url "rtsp://192.168.225.225:554/12" . Now , I identified the port "554" using other ip camera based apps as RTSP uses it . I am not sure what this "/12" means and why this is appended and how to obtain that?

rvi commented 4 years ago

Sorry, I don't know, it wasn't the case with the cameras I used.

rvi commented 4 years ago

Closing this one as the problem is fixed in #10