You have been subscribed to a public bug:
QMediaPlayer accepts QUrl objects for the "setMedia" method, but the ubuntu
adapter to android MediaPlayer silently uses only the path component of that
URL, i.e. URLs like
http://192.168.178.29:8200/MediaItems/1750.mp3
are silently converted to
/MediaItems/1750.mp3
which is "no such file or directory" on the local device file system.
It's rather important for most music players to be able to stream
http:// URLs, like in this example to support DLNA/UPnP access.
There's a fix that requires both Qt and Android-MediaPlayer to recognize
the same string reprentations of URLs. It works for my device and IMHO
simplifies code. I'm not sure if it introduces any resource leaks, ie.
if there is a requirement to clean up somewhere.. Also I'm pretty sure
that the call to QUrl::toString() should be replaced with
QUrl::toEncoded() in order to support non-ASCII characters, but I don't
feel like compiling qubuntu-media again on my non-armhf machine to test
it, since pbuilder-dist is rather slow when doing that.
Nevertheless, I'm attaching my patches for libhybris and qtubuntu-media.
Please note that I've done the changes for libhybris in an unversioned
environment.. I *swear* I've branched those projects using bzr when
first setting up the Ubuntu Touch project, but somehow they are just
plain old files now. I noticed that too late, and tried to port all my
changes to an actual libhybris checkout, but I haven't tested the
resulting patch. I hope the intention of the patch is clear though.
** Affects: qtubuntu (Ubuntu)
Importance: Undecided
Status: Invalid
--
[qtubuntu-media] QMediaPlayer: only file:// URLs supported
https://bugs.launchpad.net/bugs/1197114
You received this bug notification because you are a member of Ubuntu Bugs,
which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs