[mythtv] seekable and streamable music from http servers in mythmusic
Markus Schulz
msc at antzsystem.de
Thu Dec 4 19:00:15 UTC 2008
hello,
I've written a QHttpFilestream class which implements an QIODevice (QT4
version) interface. With this interface you can stream and seek in
music files from http servers.
I've done a short test with a quick hack in mythmusic (musicplayer.cpp):
if(m_currentFile.startsWith("http://"))
m_input = new QHttpFilestream(m_currentFile);
else
m_input = new QFile(m_currentFile);
and some further small hacks (building path of file from db-query) and
can play now these manually entered music streams.
Now i would like to expand mythmusic with a new tree entry (beside "All
playlists" and "Your music") called Streams.
Personally i would like to build a more generic way of building the tree
below "Streams" with support for different backends, cause for myself
i'm write one for a private service (code is unusable for others).
Now i need some input if others already working at similar things (found
some pointers inside the mythmusic code) and whats the requirements to
be generic enough to support other services?
--
Markus Schulz
More information about the mythtv-dev
mailing list