Playing mp4 files using openmax AL framework

How to play mp4 files with openmax AL framework ans android buffer queue? I believe the android buffer queue served only .ts data.

Here is the code:

XADataLocator_AndroidBufferQueue loc_abq = { XA_DATALOCATOR_ANDROIDBUFFERQUEUE, NB_BUFFERS };

 XADataFormat_MIME format_mime = {
            XA_DATAFORMAT_MIME, XA_ANDROID_MIME_MP2TS, XA_CONTAINERTYPE_MPEG_TS };

 XADataSource dataSrc = {&loc_abq, &format_mime};

      

and then create a media player object.

But this is giving me an error as it cannot create a player with XA_DATALOCATOR_ANDROIDBUFFERQUEUE datasource that does not transmit TS MPEG-2 data.

+3


source to share





All Articles