suconghou / dlna-python

simple dlna client & server in pure python
19 stars 5 forks source link

need DLNA player simple sample #3

Open naughtyGitCat opened 4 months ago

naughtyGitCat commented 4 months ago

Is there any DLNA player code sample, that receives control commands and plays audio/video on a speaker or screen?

best wishes

suconghou commented 4 months ago

receives control commands

once your MediaRenderer server has been found , it has become a http communication, user send a http request SetAVTransportURI, it is your server's responsibility to parse and startup the player https://github.com/suconghou/dlna-python/blob/master/main.py#L1192