Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

SetProtocolInfo: return in priority the non transcoded URL AND same mime type base #107

Open
lferrandis opened this issue Jul 16, 2013 · 1 comment
Labels

Comments

@lferrandis
Copy link
Contributor

When searching a matching resource url, we should not return the first that match the supported format, but we should return in priority the non transcoded URL, then any matching url.

We should also ensure to return in priority the same base mime type.
An object could have 2 audio URLs and 2 image URLs (cover). If we don't support the audio, we should not return the cover instead.

@jku
Copy link
Contributor

jku commented Jul 17, 2013

We might actually want to use the GUPnP-AV API that already does some of this :)

https://developer.gnome.org/gupnp-av/unstable/GUPnPDIDLLiteObject.html#gupnp-didl-lite-object-get-compat-resource

It seems to handle prioritizing non-transcoded resources. It doesn't handle the mimetype/upnp_class comparison but I think we should add the new functionality in gupnp-av and not in dleyna and then modify dleyna to use this function -- unless of course there was some good reason to do it inside dleyna.

@ghost ghost assigned jku Sep 5, 2013
@bhydex bhydex unassigned jku Oct 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants