I am developing an android app which basically connect 2 smartphones over Bluetooth. The purpose of the connection is to control one device camera (slave) and take pictures/videos with the other device(master).
I have created a Bluetooth connection between the devices, one is acting as a client and the other as a server. Server is turning on the camera and listens if the client is making any action(shoot,zoom,etc.).
Now, the question is how the server(slave) is showing the client(master) his camera feed?
I can transfer bytes between the devices and after reading some articles about this issue, I think that the bytes should be compressed into frames(by the slave) and then opened as images and displayed on the screen(on the master).
Anyone knows what will be the best way to do that? Any recommended protocol or API? What are the pros and cons for different approaches?
Any help will be appreciated.