问题
I have seen some Java servers wich can control WMP with an android device or such. But how do you make a server that controls WMP. What do you need for it?
Thanks.
回答1:
Windows Media Player supports UPnP for server discovering and DLNA for remote controlling.
Say if you want to create a client app (Android or whatsoever using Java) to remote control Windows Media Player:
Use UPnP to discover available WMP server on network with zero configuration.
Use DLNA to remote control available WMP server on network, for example, expose playlist, control volume and etc.
Java library implements UPnP/DLNA: Cling
Hope this make sense.
来源:https://stackoverflow.com/questions/10889194/java-control-windows-media-player-with-java