Camera video from phone to phone

Mark Read

Well-Known Member
Licensed User
Longtime User
Evening to all.

Is it possible to have an app as service running on phone 1, then sent a sms from phone 2. Phone 1 turns on its camera and streams video to phone 2. Hope thats clear.

Of course both parties would know what is happening. Just to clear, this has to do with safety and not spying!

How would I start?

Regards
Mark
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Check Camera library. There is a new Preview event which you can use to take a preview image every x milliseconds (don't try to handle all frames) and send it.

SMS interception:
Intent Filters - Intercepting SMS messages in the background

You should use PhoneWakeState to wake up the device, start the activity, start the camera and then send the frames.
 
Upvote 0

Mark Read

Well-Known Member
Licensed User
Longtime User
Thanks Erel for the information.:)

I have found most of the parts that I need. Only one point is not clear.

How do I send the video from phone 1 to phone 2 over the network, bearing in mind, the phones could be miles apart?. Sending each frame as a mms would be expensive. Do I need a server somewhere to upload to and then download? This is my main problem! I looked at my phone when connected to 3G and I see no IP which I could use.

Best regards
Mark
 
Upvote 0
Top