11
edits
| Line 27: | Line 27: | ||
In Gecko, DataSource(frameworks/base/media/libstagefright/DataSource.cpp sniff()) will sniff the files and try to find the corresponding extractor. You can find how many and which formats supported in RegisterDefaultSniffers(). | In Gecko, DataSource(frameworks/base/media/libstagefright/DataSource.cpp sniff()) will sniff the files and try to find the corresponding extractor. You can find how many and which formats supported in RegisterDefaultSniffers(). | ||
*'''MIME mapper in Gaia''' | *'''MIME mapper in Gaia''' | ||
There is a mime and file extension mapping list in Gaia. Currently this is used for those media files not in storage, like mail attachment. It can be used to get file extension by passing MIME type. | There is a mime and file extension mapping list in Gaia(http://mxr.mozilla.org/gaia/source/shared/js/mime_mapper.js). Currently this is used for those media files not in storage, like mail attachment. It can be used to get file extension by passing MIME type. | ||
edits