![]() |
Controling media player from remotely
How to control the media player in diablo or chinook, from the network:
I use my n800 as upnp client, it's plugged to my stereo. the upnp server, coherence (great) is on my server which is always on. Problem, the stereo is much too far from the sofa and I usually prefer to stay on my sofa rather than having to stand up everytime I want to change tracks, change volume etc.. :) media player does not use dbus when switching to next track. so I did not find a documented way to control the media player. by connecting to /tmp/mediaplayer-engine.socket, it's possible to send commands or read status, song information,, etc.. Install socat, it's used to reroute one unix stream to another. great tool. so.. on the nokia device, reroute a tcp socket to this unix socket /tmp/mediaplayer-engine.socket: socat -v tcp-l:6666,reuseaddr,fork unix:/tmp/mediaplayer-engine.socket from my sofa (running linux of course) echo "next" | socat - tcp:ip_nokia:6666 or if you prefer netcat (available on windows too) echo "next" | nc ip_nokia 6666 other commands (do the same with | nc ip_nokia 6666)
There are others but these are the most important. |
All times are GMT. The time now is 23:52. |
vBulletin® Version 3.8.8