Below is the code snippet:
using namespace android;

    m_pPlayer = new MediaPlayer();

    m_pPlayer->setDataSource(m_pOutFilePath);
    m_pPlayer->setAudioStreamType(mStreamType);
    m_pPlayer->prepareAsync();

My library code is present in /external

I  think in /external, libmedia references are not found.
Any idea what is the problem?

Thanks & Regards,
Nikhil

On Feb 27, 7:29 pm, rktb <[email protected]> wrote:
> Please show us the snippet of code...
>
> On Feb 27, 5:47 am, Nikhil <[email protected]> wrote:
>
>
>
> > Sorry, just to correct myself, it's not linking error but a
> > compilation error.
> > Native MediaPlayer member function calls is throwing error, e.g.
> > below:
> > undefined reference to `android::MediaPlayer::MediaPlayer()
>
> > Please help in finding the correct way of using native MediaPlayer
> > APIs.
>
> > Thanks & Regards,
> > Nikhil
> > On Feb 27, 3:24 pm, Nikhil <[email protected]> wrote:
>
> > > Hi All,
>
> > > I am creating my library in native in /external directory and my
> > > library needs to use native MediaPlayer APIs.
>
> > > I have includedlibmediain my Makefile in the following way
> > > LOCAL_SHARED_LIBRARIES :=libmedia
>
> > > But still I am getting linking error as
> > > undefined reference to `android::MediaPlayer::MediaPlayer()
>
> > > I know that it is strictly instructed NOT to use native mediaPlayer
> > > APIs but still it will be great if you guys can help me in solving the
> > > linking problem.
>
> > > Can anyone please help me in knowing how to linklibmedia.so with my
> > > own library which is there in /external folder.
>
> > > Thanks & Regards,
> > > Nikhil- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to