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

Coherence cooperation with Windows Media Player #14

@htgoebel

Description

@htgoebel

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions