I already knew that camera app connects to the camera by using wireless, so a first thought was to connect to the camera AP and scan everything. Unfortunately nothing interesting found so I wanted to intercept all the traffic that app does via wlan0. After some search, trying to find an Android 7 app that could do that, I managed to find something but it was not capturing everything. However, it was quite enough to find what I needed.
Basically the camera app sends HTTP requests to camera IP on port 6642. Example: GET request to 192.168.43.1:6624/osc/info. Search on the web about this, found some LG developer resources where they mentioned the camera uses Open Spherical Camera API. This way I noticed some requests that can be sent to camera, but I wanted something that will make the camera stream. Eventually I found it. Steps are the following:
1. Open the camera and the application
2. Connect to the camera then close the application on your phone and disable wireless
3. On you PC, connect to the wireless network of the camera, by entering the same password you have set in the Android LG app
4. Use a software that can send HTTP requests (like Postman or Restlet Client DHC) and send a request like this:
- request type: HTTP
- URL: 192.168.43.1:6624/osc/commands/execute
- Body: {"name": "camera._startPreview", "parameters": {"sessionId": "c94e41"}}
- request header: Content-Type application/json
5. You will get back a response like this:
{
"results":{
"_previewUri": "udp://:1234"
},
"name": "camera._startPreview",
"state": "done"
}
6. Open VLC on your PC and open the network stream with the exact location as the above udp://:1234
7. Now you have live streaming from the camera and you could in theory inject this stream to Youtube. There is no audio though
8. To stop the live streming from the camera, modify the body of the request you sent in step 4 with {"name": "camera._stopPreview", "parameters": {"sessionId": "c94e41"}}
If someone could develop an Android app that makes use of this , input the audio from the phone and then broadcast, it would be nice.
Basically the camera app sends HTTP requests to camera IP on port 6642. Example: GET request to 192.168.43.1:6624/osc/info. Search on the web about this, found some LG developer resources where they mentioned the camera uses Open Spherical Camera API. This way I noticed some requests that can be sent to camera, but I wanted something that will make the camera stream. Eventually I found it. Steps are the following:
1. Open the camera and the application
2. Connect to the camera then close the application on your phone and disable wireless
3. On you PC, connect to the wireless network of the camera, by entering the same password you have set in the Android LG app
4. Use a software that can send HTTP requests (like Postman or Restlet Client DHC) and send a request like this:
- request type: HTTP
- URL: 192.168.43.1:6624/osc/commands/execute
- Body: {"name": "camera._startPreview", "parameters": {"sessionId": "c94e41"}}
- request header: Content-Type application/json
5. You will get back a response like this:
{
"results":{
"_previewUri": "udp://:1234"
},
"name": "camera._startPreview",
"state": "done"
}
6. Open VLC on your PC and open the network stream with the exact location as the above udp://:1234
7. Now you have live streaming from the camera and you could in theory inject this stream to Youtube. There is no audio though
8. To stop the live streming from the camera, modify the body of the request you sent in step 4 with {"name": "camera._stopPreview", "parameters": {"sessionId": "c94e41"}}
If someone could develop an Android app that makes use of this , input the audio from the phone and then broadcast, it would be nice.