[haiku-development] Re: Ogg detection in MediaPlayer

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 11 May 2009 10:22:50 +0200 CEST

"Jonas Sundström" <jonas@xxxxxxxxxxx> wrote:
> But this still does not update the list itself,
> and having codec (de-)installers run scripts to
> add/remove MediaPlayer Supported Types seems wrong
> to me, esp. since MediaPlayer is merely one of a
> multitude of possible Media Kit users. Codecs should
> not go around patching the resources of all Media Kit
> clients.

Exactly, that's clearly not the way to go!

> Leaving it up to the user to changes Supported Types
> is also bad.
>
> That´s why I suggested that MediaPlayer itself should
> update its Supported Types based on information on
> supported media formats available to it from the Media
> Kit. (If not available, it should be!) But as François
> pointed out, this won´t work in a multiuser setup where
> applications are likely read-only.
>
> So, I don´t know how to perfect this.

I simply cannot be perfected based on the MIME type; you cannot know
whether you support a given a file on the MIME type alone, unless it's
MPEG-1 or something like that. The way we currently using is the only
way this could possibly work, with the exception that we should also
accept application/* as possible type.
OTOH we could introduce a way to detect the codec from a file more or
less quickly via the Media Kit.
This would still not be blazingly fast which is what Stephan requested.
I think we're good to go in any case -- if the MediaPlayer cannot play
a certain file, it's perfectly okay (and less confusing) if it just
tells you this instead of it not accepting the file at all.

P.S. why still ´ instead of '? It's really ugly to read :-)

Bye,
   Axel.


Other related posts: