GNOME Bugzilla – Bug 576023
Can't stream non-file:// files using UPNP
Last modified: 2018-05-24 14:12:44 UTC
Originally at: https://bugzilla.redhat.com/show_bug.cgi?id=486817 That's the code: uri = self.shell.props.db.entry_get(entry, rhythmdb.PROP_LOCATION) if uri.startswith("file://"): location = unicode(urllib.unquote(uri[len("file://"):])) # add a fake resource for the moment res = DIDLLite.Resource(location, 'http-get:*:%s:*' % mimetype) if size > 0: res.size = size if self.duration > 0: res.duration = self.duration if bitrate > 0: res.bitrate = str(bitrate) item.res.append(res) We should get the local fuse path from the file if it's available, and not add the entry if we can't get a local file for the uri.
This should mostly work with rygel. It doesn't work for files on mtp devices, as rygel doesn't know what to do with xrbmtp:// URIs. Not sure what to do about that.
Is this still relevant? I don't think rhythmbox does UPnP sharing any more since coherence was dropped in 2011.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/rhythmbox/issues/709.