Apps Custom Video Codec integration


Hi, I want gallery to list my custom file with *.xyz extension. I am planning to implement a video codec in stagefright library by adding it as a OMXComponent. Now, my doubt how to map my custom extension to my codec. How to make gallery list my file as all other file and direct the media player to play the video file using my codec? I have added support for my codec in stagefright.