试试用python控制电视
# @file dlnap.py
# @author cherezov.pavel@gmail.com
# @brief Python over the network media player to playback on DLNA UPnP devices.
dlnap.py [--ip ] [-d[evice] ] [--all] [-t[imeout] ] [--play ] [--pause] [--stop] [--proxy]
--ip - ip address for faster access to the known device
--device - discover devices with this name as substring
--all - flag to discover all upnp devices, not only devices with AVTransport ability
--play - set current url for play and start playback it. In case of url is empty -continue playing recent media.
--pause - pause current playback
--stop - stop current playback
--mute - mute playback
--unmute - unmute playback
--volume - set current volume for playback
--seek - set current position for playback
--timeout - discover timeout
--ssdp-version - discover devices by protocol version, default 1
--proxy - use local proxy on proxy port
--proxy-port - proxy port to listen incomming connections from devices, default 8000
--help - this help
1