Whats the best method of communication for a media remote ?

ls9pq

New Member
Ive just started using this program , and have to say it is billiant.

I am trying to make a media remote for my computer and not sure whats the best method of communication between the pc and my android.

Im not too bad programing the computer side its the android side im a bit stuck on.

The basic thing i want to do is send commards to the computer and recieve image and text infomation (cover and now playing etc).



my two methods i was looking at is....


1) Web server (http get)


I started messing around with this but soon gave up as i wasnt sure on how to refresh the image automatically when the track changed etc.

Sockets

I would really like to uses this but im not sure how difficult it would be to send an image down from the pc. And im thinking using AsyncStreams is the best option as data will be going both ways ?



Any advice on where to go next would be a great help , some sample code would help even more.

Thanks for reading
luke
 

ls9pq1

New Member
Licensed User
Longtime User
Thanks for your reply .

thats does look very useful although you can send strings of data back and forth.

I think i may use your server to host files and images ect and maybe have a seperate socket connection to do all my commards and text.

Thanks again for your time.

If you have any other ideas please let me know.

cheers
Luke
 
Upvote 0
Top