Android integration, remote control.

  • 1
  • Question
  • Updated 4 years ago
  • Answered
Hi,

I am an android developer working with new technologies, and i have just discovered rise vision, it has a very wide panel of features and use-cases.
However I am trying to find some android API or example for remote controlled displays apps but i can only find some rise vision docs on javascript.
I looked at Cenique apps that seemed to manage to do some features like waking up displays, putting them to sleep etc...
Do anyone has some advice on how to do it? Or any way to remote control some displays and the informations within?

Thank you in advance, and sorry in advance if i could not find any similar posts.
Photo of Lambert

Lambert

  • 100 Points 100 badge 2x thumb

Posted 4 years ago

  • 1
Photo of William Oneal

William Oneal, Champion

  • 13,770 Points 10k badge 2x thumb
There isn't really much out there to control a TV with android. I know there are a few things out there that can but some of those devices can be just as expensive as the android device. For the app that i have i am looking into prolific usb to RS232. They have example apps to look through with a library to use, but it may or may not work. Still working progress for me to learn how prolific apis work to incorporate it in the app. There are also some bluetooth to RS232 devices out there so that you can send a signal through bluetooth, but thats expensive to do when your trying to lower cost to clients.  
Photo of Lambert

Lambert

  • 100 Points 100 badge 2x thumb
Thank you for your answer, i understand the problems for a direct control with devices.
It was more of a CMS control and management that i was talking about, sending request of controlling the web console, and its features with an android devices. It would be simpler than controlling desktop remotely. I understand the abstraction level but for developer it would be a huge asset.
Photo of William Oneal

William Oneal, Champion

  • 13,770 Points 10k badge 2x thumb
What request are you wanting to send? If your saying restart reboot and the schedule reboot then that can be done. It's tricky but it works in my app so I know it can be done. Other things might be a diffent story because android is supported through third parties so rise isn't going to add features just for android. Thats on the third parties like me.
Photo of Lambert

Lambert

  • 100 Points 100 badge 2x thumb
That's exactly the kind of request i want to send. I would like to start to display a content or stop it with an android app. I actually don't know how to begin, and how it could work.
Could you share some example or code with me ?
Thank you.
Photo of William Oneal

William Oneal, Champion

  • 13,770 Points 10k badge 2x thumb
I specifically won't give out code but i can point you in the right direction though. The place to look is in github at this link https://github.com/Rise-Vision . The best place for coding in android is look at the native player. It was written in java so it should be easy to see how they did it and turn it into android. Now grant it the coding is a bit difficult to read and i had issues looking at it. To get restart and reboot to work though is as simple as making a server socket listening to the port in which in this case it 9449. From there its about parsing the data and doing what needs to be done like restart or reboot. Also reboot needs root access so beware of that. Something else is use the HHTpConstraits and HttpUtils from the native player because somewhere down the road you will need to send things back to the viewer and instead of figuring it out just use what they use to make it easier on yourself. Thats about all i can give. 
Photo of Lambert

Lambert

  • 100 Points 100 badge 2x thumb
Thank you, this is great help. I will look into this.