[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: mimetype related problem with KPlayObject (affects multimedia streaming)
From:       David Faure <david () mandrakesoft ! com>
Date:       2002-02-21 19:19:44
[Download RAW message or body]

On Wednesday 20 February 2002 13:58, Matthias Welwarsky wrote:
> Hi all,
> 
> I have been making some experiments with kaboodle and streaming multimedia 
> data over http (or any ioslave).
> 
> It seems that all data is signalled as "application/octet-stream", and the 
> factory contains a hack to hardcode the generation of a mp3 playobject in 
> this case - which of course fails miserably if the data is actually of some 
> other type.
> 
> KMimeType::findByURL() is used to determine the mimetype of the url, which 
> seems to resort to application/octet-stream if the file is not local.
> 
> Can this be circumvented somehow?

Yes, don't use findByURL ;)
Use the mimeType signal emitted by the ioslave during its get() operation,
or use KIO::mimeType(), or use a class that inherits KRun....

-- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://people.mandrakesoft.com/~david, http://www.konqueror.org
KDE 3.0: Konquering the Desktops


 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic