EliasKotlyar / Xiaomi-Dafang-Hacks

4.19k stars 1k forks source link

Android app source? #399

Closed sonny-chen closed 6 years ago

sonny-chen commented 6 years ago

The Android DafangCam app has a couple of problems:

1) Access to config control (status.cgi) fails to work when a self signed SSL certificate is used on the cam side, and 2) fixing the above by disabling the https redirect cam side allows the app's controls to work, but the app mistakenly sends certain commands when initializing the RTSP stream, at least for the Dafang, causing the stream to fail loading (black video).

Is the source code available so we can try to fix these?

Thanks.

jmtatsch commented 6 years ago

Do you mean tinyCam?

sonny-chen commented 6 years ago

I mean this one: https://play.google.com/store/apps/details?id=io.ext.medinvention.dafangcam

I am not aware of tinycam (will give it a try) but DafangCam is the one recommended by the main readme file.

jmtatsch commented 6 years ago

Wasn’t aware that someone is developing a Dafang hack app. Maybe you ask the author if there is an open source repo.

amagnolo commented 6 years ago

In my case, using the DafangCam app kills the rtsp service and starts the mjpeg service instead. It took a while to figure it out, I thought that there was something wrong with the camera before finding out that the culprit was the app. Couldn't find the source code either. I think that recommending the use of that app (apparently broken) is not the best suggestions for newcomers.

Dopeyr commented 6 years ago

@mmohamed Any thoughts on the comment above?

sonny-chen commented 6 years ago

With the readme recommending the app, and the app's page linking back here, I thought the two projects are developed together -- sorry if I asked at the wrong place.

Meanwhile, my workarounds are disabling https redirect as mentioned above, and commenting out the RTSP service controls in status.cgi.

mmohamed commented 6 years ago

Hi,

At first I made this app to control the Cam with the first version of the hack. I planned to share the source code on Gitlab, but after publication on AppStore, my repo contains personal data (password for CI server, keystore for Google protect, ...) and I must clean the repo and its history before sharing it on Github.

As soon as it will be done I will inform you.

For self signed SSL Certificas problem, I will solve it on next release and for the starting of the mjpeg service, it is done on purpose because the HLS does not always work but I will make it optional to the configuration of the cam and dis-synchronize the other calls.

If you want to install the beta release to have the fixes quickly available.

If you encounter problems you can use this issue or directly on medmarouen[at]gmail.com

Dopeyr commented 6 years ago

Thanks @mmohamed, great to hear you're working on it :)

jmtatsch commented 6 years ago

Closing this as question is answered.