Development in progress.. Enjoy your favorite music on your favorite sound system over your local network or send YouTube video to your smart TV. Simple network player for DLNA/UPnP devices allows you discover devices and playback your favorite media on them.
- Python (whatever you like: python 2.7+ or python3)
- youtube-dl to playback YouTube links
- Set next media
- Integrate local download proxy
- Stop/Pause playback
- Investigate if it possible to play images/video's on DLNA/UPnP powered TV (possible via local download proxy)
- Yamaha RX577
- Samsung Smart TV (UE40ES5507) via proxy
- please email me if it works or doesn't work with your device
dlnap.py [--list] [--all] [--ip <device ip>] [-d[evice] <name>] [-t[imeout] <seconds>] [--play <url>]
--ip <device ip>
ip address for faster access to the known device
--device <device name or part of the name>
discover devices with this name as substring
--all
flag to discover all upnp devices, not only devices with AVTransport ability
--play <url>
set current url for play and start playback it. In case of empty url - continue playing recent media
--pause
pause current playback
--stop
stop current playback
--timeout <seconds>
discover timeout
List compatible devices
> dlnap.py --list
Discovered devices:
[a] Receiver rx577 @ 192.168.1.40
[a] Samsung TV @ 192.168.1.35
List all UPnP devices
> dlnap.py --list --all
Discovered devices:
[x] ZyXEL Keenetic Giga @ 192.168.1.1
[a] Samsung TV @ 192.168.1.35
[x] Data @ 192.168.1.50
[a] Receiver rx577 @ 192.168.1.40
where
[a] means that devices allows media playback
[x] means that device doesn't allow media playback
By ip address
dlnap.py --ip 192.168.1.40 'http://somewhere.com/my_favorite_music.mp3'
Receiver rx577 @ 192.168.1.40
By device name
dlnap.py --device rx577 --play 'http://somewhere.com/my_favorite_music.mp3'
Receiver rx577 @ 192.168.1.40
Note: a part of the device name is quite enough: rx577 instead of Receiver rx577
Any compatible device
dlnap.py --play 'http://somewhere.com/my_favorite_music.mp3'
Receiver rx577 @ 192.168.1.40
comming soon..