We have integrated some customer decoder with android multimedia framework by writing OMX component.
When we play video usually we have mime type of VIDEO like video/avc
.
If we have multiple decoder component of same mime type, so where we decided or how in android multimedia framework ?
Can anybody point that particular AOSP
code or can explain how this happen ?
There has been a related question on this topic where majority of the steps were covered in this answer.
In the parseXML
function, the list is populated by going through the media_codecs.xml
file and the codecs are listed in the order in which they are listed i.e. first codec in the file will be the first one in the list to be tried, when we have multiple codecs for same MIME
type.
In case one wishes to ensure that their custom codec is employed, it should be enlisted as the first codec in the media_codecs.xml
for easier integration.