Skip to content
/ dlnap Public
forked from cherezov/dlnap

Simple python over the network media player to playback on DLNA/UPnP devices

License

Notifications You must be signed in to change notification settings

rako9000/dlnap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 

Repository files navigation

dlnap

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.

Requires

  • Python (whatever you like: python 2.7+ or python3)
  • youtube-dl to playback YouTube links

TODO

Supported devices

  • Yamaha RX577
  • Samsung Smart TV (UE40ES5507) via proxy
  • please email me if it works or doesn't work with your device

Usage

Overview

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

Discover UPnP devices

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

Playback media

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

Send YouTube videos to smart TV

comming soon..

About

Simple python over the network media player to playback on DLNA/UPnP devices

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%