Skip to content
This repository has been archived by the owner on Jul 8, 2022. It is now read-only.

Coherence cooperation with Windows Media Player #14

Open
htgoebel opened this issue May 21, 2014 · 0 comments
Open

Coherence cooperation with Windows Media Player #14

htgoebel opened this issue May 21, 2014 · 0 comments

Comments

@htgoebel
Copy link
Member

[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:

  • UPNP Search.

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))

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant