Hi, everyone!

The HTML page is as follow:

<OBJECT id="StormPlayer" width = 800 height = 400 data = "1.wmv"></OBJECT>

when webkit detect the object, it automatically thought the mimetype of this
object is "video/x-ms-wmv"
when I change the data attribute to "1.avi", webkit thought the mimetype is
"video/x-msvideo"

I really want to know how does webkit do this kind of judge. I search the
src code with the key word "video/x-ms-wmv", but I got nothing.
Currently I only know two functions may work with this:
RenderPartObject::updateWidget and HTMLObjectElement::parseMappedAttribute,
but I can't find out how does webkit check the "data" attribute and decide
which mimetype to use.

Could you give me some tips?
Thanks!
_______________________________________________
webkit-dev mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to