Search code examples
androidupnp

UPnP MediaServer for stream2android


I am working on an UPnP implementation for Android. I have downloaded a MediaRenderer code stream2android. I compiled it and it's working fine. Now I want to install a MediaServer. I have few questions.

  1. Which MediaServer should I install for stream2android?
  2. Has the server to be on an Android device or can I install it on other Linux too?
  3. Can I install and linux based MediaServer.

Any input will be helpful.

Edit:- One more thing i want to ask, android framework has already some class like

WifiP2pUpnpServiceInfo http://developer.android.com/reference/android/net/wifi/p2p/nsd/WifiP2pUpnpServiceInfo.html

WifiP2pUpnpServiceRequest http://developer.android.com/reference/android/net/wifi/p2p/nsd/WifiP2pUpnpServiceRequest.html

so instead of using any library, can we directly use this class. By reading these class it's not very clear, how we can use them. I am not asking for any sample code or something, just a little detail about these classes.

Thanks in advance


Solution

    1. stream2android is MediaRenderer only, you cannot "install MediaServer for it". It is using CyberLink Java library for basic UPnP support and builds just MediaRenderer on it. If you want stream2android to act as MediaServer too, you can implement it yourself on the CyberLink. Get an idea at x360mediaserver which implements MediaServer with CyberLink.

      Or you can install any of the existing MediaServers for Android.

    2. MediaServer can be any device capable of TCP and UDP socket communication. It is roughly equivalent to a webserver. So it can be your Android device, other Linux too. Or Windows. Or Symbian if you want.

    3. I don't understand the question.