Virtual camera upload failed
PlannedNX 5.1.0.37133
I followed this tutorial using an Android phone:
How to Import Files to Camera Archive Using API
There are no error messages, but the video upload has never succeeded. When I upload the video using NX Witness Client on Windows, it works fine.
I also read in other articles that the extend needs to reach 100, but when I checked every second for five minutes, it still stayed at 0. Some people also mentioned that consuming should become false, but I still haven't succeeded in uploading.
lockResult
{"error": "0", "errorId": "ok", "errorString": "", "reply": {"consuming": false, "locked": true, "progress": 0, "success": true, "token": "{464950c3-b00d-435c-a06c-d48814d1fdb9}", "userId": "{99*15-5b-4e-8f-79********1e}"}}
consumeResult
{"error": "0", "errorId": "ok", "errorString": "", "reply": {"consuming": true, "locked": true, "progress": 0, "success": true, "token": "{00000000-0000-0000-0000-000000000000}", "userId": "{99*15-5b-4e-8f-79********1e}"}}
extendResult
{"error": "0", "errorId": "ok", "errorString": "", "reply": {"consuming": true, "locked": true, "progress": 0, "success": true, "token": "{00000000-0000-0000-0000-000000000000}", "userId": "{99*15-5b-4e-8f-79********1e}"}}
extendResult
{"error": "0", "errorId": "ok", "errorString": "", "reply": {"consuming": false, "locked": true, "progress": 0, "success": true, "token": "{00000000-0000-0000-0000-000000000000}", "userId": "{99*15-5b-4e-8f-79********1e}"}}
releaseResult
{"error": "0", "errorId": "ok", "errorString": "", "reply": {"consuming": false, "locked": false, "progress": 0, "success": true, "token": "{00000000-0000-0000-0000-000000000000}", "userId": "{00000000-0000-0000-0000-000000000000}"}}
I execute extend
twice because I read in other articles that consuming
needs to be false
for it to work properly. However, whether I execute it once or twice, it still doesn't upload successfully. The only difference is whether release
succeeds or not.
Below are the messages displayed in the backend:
2024-07-01 15:13:36.522 1348 INFO nx::vms::common::p2p::downloader::Downloader::Private(0x1ece3720340): Starting for 20240625_10_58_02
2024-07-01 15:13:48.445 1348 INFO nx::vms::common::p2p::downloader::Downloader::Private(0x1ece3720340): Stopping download for 20240625_10_58_02
2024-07-01 15:13:48.452 1348 INFO nx::vms::common::p2p::downloader::Downloader::Private(0x1ece3720340): Stopping download for
2024-07-01 15:13:49.482 18c4 INFO nx::vms::common::p2p::downloader::Downloader::Private(0x1ece3720340): Stopping
2024-07-01 15:13:57.827 1348 INFO nx::vms::common::p2p::downloader::Downloader::Private(0x1ece3720340): Starting download for 20240625_18_08_29
2024-07-01 15:14:02.190 1348 INFO nx::vms::common::p2p::downloader::Downloader::Private(0x1ece3720340): Stopping download for 20240625_18_08_29
2024-07-01 15:14:02.194 1348 INFO nx::vms::common::p2p::downloader::Downloader::Private(0x1ece3720340): Stopping download for
When I use Node.js, I can use while true to extend until the progress reaches 100 and then return. However, when I use the same code and process in React Native, even after running for 5 minutes or longer, the progress still remains at 0.
-
Hi CHIWEN TSENG,
Thank you for your questions and report. Unfortunately, the description provided contains limited information, so we are unable to provide much assistance based on the current information.
1) DEBUG Log Information
The log contains INFO level details. To better assist you, we kindly suggest providing the DEBUG level log while replicating the issue, as DEBUG level logs contain essential information.2) Request Body
We see the results in the response, but the request body sent to the media server is not visible. Could you please provide the request body for these requests? This will help us understand the procedure better.3) Article Reference
You mentioned reading articles suggesting "extend" to be 100. Could you please share what and where these articles are? Additionally, "extend" is not recognized as a parameter, so could you clarify what you mean by extending to 100?4) Programming Language
The issue is likely not related to the programming language but rather how the procedure is implemented. There may be differences in file uploads or other processes. However, due to the limited information provided, we are unable to accurately diagnose the reasons.In summary, the current information is limited. We kindly ask you to provide the details listed above to better understand what you have done and the issues you are facing.
Thank you for your cooperation.
0
Please sign in to leave a comment.
Comments
1 comment