Davidkob
Posts: 2
Joined: Mon May 02, 2016 2:23 pm

Controlling rpi video output with android phone

Mon May 02, 2016 2:49 pm

Hello

As part of image processing project I wrote a Python program on the rpi2 that opens any usb cam connected to the pi in a window and another GUI in a new window that controls the image and makea some other manipulations on the image.
This video is shown on a monitor via the rpi composite output.

I want to open the GUI in my Android smartphone to control the video and change it according to the buttons pressed in the GUI. (It is very important that the video output of the pi will change and will be shown in the monitor).

I tried doing it with SSH to the pi via my smartphone but it opens a new session and not changing the video output of the pi.

Can you please suggest some new ideas to make it possible?

Thanks

dgrubb
Posts: 8
Joined: Wed Mar 02, 2016 5:25 pm

Re: Controlling rpi video output with android phone

Mon May 02, 2016 4:03 pm

There are a few different ways of approaching this but the decision is really going to be dictated by what you are comfortable doing in the Android application.

You could set up a mini-HTTP server on the Pi and use HTTP requests to trigger playback.
You could implement some other existing network protocol such as XML-RPC or JSON-RPC.
You could simply open a raw socket on the Pi and send raw bytes from the Android application according to your own protocol.
etc etc

Also, should any client be able to connect to the Pi and set the video playback, or is an authentication step a requirement? Just about any signalling method you come up with will probably be very easy to implement as part of your Python program and it's really defining the wider use-case which will take more work.

Davidkob
Posts: 2
Joined: Mon May 02, 2016 2:23 pm

Re: Controlling rpi video output with android phone

Tue May 03, 2016 3:43 pm

Thanks for your reply,
Authentication step is not a requirement, I'm looking for the easyest and quickest way to do it.
Ill try looking for implementing network protocols but it sounds like alot of work..

Do you know any other ways? maybe somehow rdp to the pi with Android?

Return to “Advanced users”