How to access the Camera via Bluetooth?

This is what I would like to achieve. I have 2 Android devices, I would like to access the camera of the second via Bluetooth and display the preview on the first.

Any clues on how to do this?

Basically, I would like to get a camera instance of another Android device via Bluetooth.

+4
source share
1 answer

Short answer:

You cannot get a direct copy this way. That is, you will not get a camera object that you can use normally. Instead, you have to fake it enough.

Long answer:

bluetooth . , , "" , - . 1 2.

1 ( ..). , 2.

2 1.

:

1. 1 " " 2. 2, , . 2 Bluetooth.

- , , "" - , . , , .

EDIT:

, , .

:

10-15 2 1, . / .

Camera.PreviewCallback:

onPreviewFrame(byte[] data, Camera camera); :

http://developer.android.com/reference/android/hardware/Camera.PreviewCallback.html#onPreviewFrame (byte [], android.hardware.Camera)

setPreviewCallback(Camera.PreviewCallback cb)

(, , onPreviewFrame), .

4) .

, , , , .

:

JNI . . , , .

+5

Source: https://habr.com/ru/post/1531400/


All Articles