[Originally posted posted by @pszafer on Jul 24, 2011 at https://github.com/htgoebel/coherence/issues/2].
Hello,
There is an issue in coherence to cooperate with Windows Media Player (maybe only 12 version).
Don't know why, but WMP, when establishing files content on server, doing UPNP method:
I've checked what Samsung DLNA Server doing during UPNP Search made by WMP12, it is returning Error 707.
Then WMP12 doing UPNP Browse and everything working correctly.
So there are 2 solutions for this issue:
1)
in path coherence/upnp/devices/media_server.py
method: getChildWithDefault
change if:
if(headers.has_key('user-agent') and
(headers['user-agent'].find('Xbox/') == 0 or # XBox
headers['user-agent'].startswith("""Mozilla/4.0 (compatible; UPnP/1.0; Windows""")) or # wmp11
path in ['description-1.xml','description-2.xml']):
to:
if(headers.has_key('user-agent') and
(headers['user-agent'].find('Xbox/') == 0 or # XBox
headers['user-agent'].startswith("""Mozilla/4.0 (compatible; UPnP/1.0; Windows""") or # wmp11
headers['user-agent'].find('Windows-Media-Player/12.0') != -1) and #wmp 12
And then it is working.
In file coherence/upnp/devices/media_server.py
method: getChildWithDefault
you need to pass to file:
coherence/upnp/services/servers/content_directory_server.py
information that this is WMP12 (kwargs)
and return failure.Failure(errorCode(707))