Because the android-framework list is closing down, you should either
move this thread to android-platform (if you're planning to actually
contribute to the Android Open-Source Project) or android-porting (if
you're just working on your own with no plans to contribute).

Thanks,
JBQ

2009/8/3 shadow <yuri.bul...@gmail.com>:
>
> Hi Freepine,
>
>   Thanks for the response.... i've made what you told me before, i
> mean:
>
> 1) created the following modules:
> - splitter node;
> - recognizing plugin;
>
> 2a) created file /etc/mine_plugins_1.cfg
> (0x1d4769f0,0xca0c,0x11dc,0x95,0xff,0x08,0x00,0x20,0x0c,0x9a,
> 0x66),"libopencorematroskarecognizer"
> (0x6d3413a0,0xca0c,0x11dc,0x95,0xff,0x08,0x00,0x20,0x0c,0x9a,
> 0x66),"libopencorematroskarecognizer"
> (0xb234567a,0xaa19,0x6e1b,
> 0x13,0x43,0x11,0x22,0x45,0x31,0x23,0x3b),"libopencoremkvparsernode"
>
> 2b) created file /etc/mine_plugins_2.cfg
> (0x1d4769f0,0xca0c,0x11dc,0x95,0xff,0x08,0x00,0x20,0x0c,0x9a,
> 0x66),"libopencorematroskarecognizer.so"
> (0x6d3413a0,0xca0c,0x11dc,0x95,0xff,0x08,0x00,0x20,0x0c,0x9a,
> 0x66),"libopencorematroskarecognizer.so"
> (0xa1c9551a,0xca79,0x6e1b,0x1d,0x33,0xb1,0x12,0x33,0x3a,
> 0xa2,0x3f),"libopencoremkvparsernode.so"
>
> but nothing happens... none method called from my plugins... could you
> please look a little bit deeper into the code which i provided in my
> previous post.
>
> --
>  Best regards,
>  Yuri
>
> On Jul 17, 4:49 pm, Freepine <freep...@gmail.com> wrote:
>> No, I don't think it's necessary to change any existed Opencore code to
>> support a new container format.You can implement you own parser and
>> recognizer in a separate module, then register it in opencore framework
>> dynamically with a .cfg file.
>>
>> 2009/7/17 shadow <yuri.bul...@gmail.com>
>>
>>
>>
>> > Hi Freepine,
>>
>> >   Could you tell me, should i change opencore sources, to add my own
>> > file recognizer or and new nodes into it?
>>
>> > --
>> >  Best regards,
>> >  Yuri
>>
>> > On 14 июл, 18:47, Freepine <freep...@gmail.com> wrote:
>> > > That's strange.
>> > > Normally, player engine would call OsclSharedLibrary:: QueryInterface
>> > after
>> > > loading so successfully, to retrieve the interfaces for registering nodes
>> > > and recognizers, which in turn invokes PVGetInterface from your
>> > library.So
>> > > it might be helpful to add more logs in pv_player_node_registry.cpp and
>> > > oscl_shared_library.cpp to see what's happening.
>>
>> > > -Freepine
>>
>> > > 2009/7/14 shadow <yuri.bul...@gmail.com>
>>
>> > > > Hi Freepine,
>>
>> > > >  I've tried both variants for tracing, including logs file dumping.
>>
>> > > > --
>> > > >  Best regards,
>> > > >  Yuri
>>
>> > > > On 13 июл, 21:04, Freepine <freep...@gmail.com> wrote:
>> > > > > Hi, if you mean you didn't see the output of
>> > > > > "printf("PVGetInterface()\n");"in logcat, perhaps you can try to
>> > > > > replace it with LOGE:)
>> > > > > -Freepine
>>
>> > > > > On Mon, Jul 13, 2009 at 6:19 PM, shadow <yuri.bul...@gmail.com>
>> > wrote:
>>
>> > > > > > Yes, i've tried that, my library was loaded, but none method has
>> > been
>> > > > > > called from it. I would suppose that is core should call that
>> > method:
>>
>> > > > > > OsclSharedLibraryInterface *PVGetInterface( void );
>>
>> > > > > > but it's didn't happen ;-(
>>
>> > > > > > --
>> > > > > >  Yuri
>>
>> > > > > > On 13 июл, 17:12, sesha giri <sesha_giri_n...@yahoo.co.in> wrote:
>> > > > > > > I am not asking to call in from test app
>> > > > > > > I am telling you to call it from media gallery if its video file
>> > or
>> > > > from
>> > > > > > music if its a audio file.
>> > > > > > > Have you checked with that one.
>>
>> > > > > > > Basically I am not able to get what you want to the end result to
>> > be.
>>
>> > > > > > > ________________________________
>> > > > > > > From: shadow <yuri.bul...@gmail.com>
>> > > > > > > To: android-framework <android-framework@googlegroups.com>
>> > > > > > > Sent: Monday, 13 July, 2009 3:37:18 PM
>> > > > > > > Subject: Re: how to register in the opencore framework own file
>> > > > container
>> > > > > >  recognizer
>>
>> > > > > > > Are you mean, to load my library inside some test application and
>> > > > call
>> > > > > > > exported methods from there? actually i didn't make such test
>> > yet, i
>> > > > > > > thought that there are shouldn't be problems, because the library
>> > is
>> > > > > > > quite simple for now... but i'll do that test... and what should
>> > i do
>> > > > > > > in case of success, i mean if i'll be able to call methods of
>> > mine
>> > > > > > > library from some test app?
>>
>> > > > > > > thanks for the help.
>>
>> > > > > > > --
>> > > > > > > Yuri
>>
>> > > > > > > On 13 июл, 17:00, sesha giri <sesha_giri_n...@yahoo.co.in>
>> > wrote:
>>
>> > > > > > > > Are you able to call your file parser??
>>
>> > > > > > > > ________________________________
>> > > > > > > > From: shadow <yuri.bul...@gmail.com>
>> > > > > > > > To: android-framework <android-framework@googlegroups.com>
>> > > > > > > > Sent: Monday, 13 July, 2009 3:09:50 PM
>> > > > > > > > Subject: Re: how to register in the opencore framework own file
>> > > > > > container  recognizer
>>
>> > > > > > > > Yes, I'm using own file container type recognizer (file
>> > container
>> > > > > > > > parser/demultiplexer):
>>
>> > > > > > > > 1) which search for necessary magic sequence in the given file
>> > -
>> > > > and
>> > > > > > > > making a desicion it's supported file type or not;
>> > > > > > > > 2) node (engine) - which would be a demultiplexer engine.
>>
>> > > > > > > > in general i want to implement demultiplexer (splitter) only,
>> > like
>> > > > the
>> > > > > > > > opencore existing one (MP4).
>>
>> > > > > > > > --
>> > > > > > > > Yuri
>>
>> > > > > > > > On 13 июл, 16:27, sesha giri <sesha_giri_n...@yahoo.co.in>
>> > wrote:
>>
>> > > > > > > > > In that case you are using your own parser??
>> > > > > > > > > Is it a audio  or a video  component??
>>
>> > > > > > > > > Wht is the MIME type for the FF u have used??
>>
>> > > > > > > > > ________________________________
>> > > > > > > > > From: shadow <yuri.bul...@gmail.com>
>> > > > > > > > > To: android-framework <android-framework@googlegroups.com>
>> > > > > > > > > Sent: Monday, 13 July, 2009 2:43:09 PM
>> > > > > > > > > Subject: Re: how to register in the opencore framework own
>> > file
>> > > > > > container  recognizer
>>
>> > > > > > > > > Hi Giri,
>>
>> > > > > > > > >   Thanks for the fast response, yup, i'm trying to use
>> > existing
>> > > > one,
>> > > > > > > > > and add into it my own opencore plugins.
>>
>> > > > > > > > > --
>> > > > > > > > > Best Regards,
>> > > > > > > > > Yuri
>>
>> > > > > > > > > On 13 июл, 15:21, sesha giri <sesha_giri_n...@yahoo.co.in>
>> > > > wrote:
>>
>> > > > > > > > > > Hi Yuri,
>>
>> > > > > > > > > > Are you trying to write your own core.
>> > > > > > > > > > Are you are using the existing core and trying to add your
>> > own
>> > > > node
>> > > > > > for the new file formate.
>>
>> > > > > > > > > > --Giri
>>
>> > > > > > > > > > ________________________________
>> > > > > > > > > > From: shadow <yuri.bul...@gmail.com>
>> > > > > > > > > > To: android-framework <android-framework@googlegroups.com>
>> > > > > > > > > > Sent: Monday, 13 July, 2009 1:43:27 PM
>> > > > > > > > > > Subject: how to register in the opencore framework own file
>> > > > > > container  recognizer
>>
>> > > > > > > > > > Hi all,
>>
>> > > > > > > > > > I'm trying to develop own opencore wrapper around some file
>> > > > format,
>> > > > > > > > > > for example MKV... i've created shared library called
>> > > > > > > > > > my_mkv_recognizer.so, and put it into /system/lib folder.
>>
>> > > > > > > > > > The following interfaces are present in the library:
>>
>> > ==============================================================
>> > > > > > > > > > 1) class CMyMkvSplitterRecognizerFactory : public
>> > > > > > > > > > PVMFRecognizerPluginFactory;
>> > > > > > > > > > 2) class CMyMkvRecognizerPlugin : public
>> > > > > > > > > > PVMFRecognizerPluginInterface;
>> > > > > > > > > > 3) class CMyMkvNodesRegistryInterface: public
>> > > > > > > > > > OsclSharedLibraryInterface,
>> > > > > > > > > >                     public NodeRegistryPopulatorInterface,
>> > > > > > > > > >                       public RecognizerPopulatorInterface;
>>
>> > > > > > > > > > 4) OsclSharedLibraryInterface *PVGetInterface( void )
>> > > > > > > > > >     {
>> > > > > > > > > >        printf("PVGetInterface()\n");
>> > > > > > > > > >         return OSCL_NEW(CMyMkvNodesRegistryInterface, ());
>> > > > > > > > > >     }
>>
>> > > > > > > > > >     void PVReleaseInterface ( OsclSharedLibraryInterface*
>> > > > aInstance
>> > > > > > )
>> > > > > > > > > >     {
>> > > > > > > > > >         OSCL_DELETE( aInstance );
>> > > > > > > > > >     }
>>
>> > ==============================================================
>>
>> > > > > > > > > > Then i've created config file: my_plugin.cfg, and put it
>> > into
>> > > > /etc
>> > > > > > > > > > folder, this file contains the following strings:
>>
>> > (0x1d4769f0,0xca0c,0x11dc,0x95,0xff,0x08,0x00,0x20,0x0c,0x9a,
>> > > > > > > > > > 0x66),"libopencoremkvsplitterrecognizer.so"
>>
>> > (0x6d3413a0,0xca0c,0x11dc,0x95,0xff,0x08,0x00,0x20,0x0c,0x9a,
>> > > > > > > > > > 0x66),"libopencoremkvsplitterrecognizer.so"
>>
>> > > > > > > > > > And now the problem is ;-) .... i can see in the trace log
>> > that
>> > > > is
>> > > > > > my
>> > > > > > > > > > lib was loaded, but none method has been called. Why?
>>
>> > > > > > > > > > --
>> > > > > > > > > > Best regards,
>> > > > > > > > > > Yuri
>>
>> > > > > > > > > >       See the Web's breaking stories, chosen by people like
>> > > > you.
>> > > > > > Check out Yahoo! Buzz.http://in.buzz.yahoo.com/
>>
>> > > > > > > > >       Yahoo! recommends that you upgrade to the new and safer
>> > > > > > Internet Explorer 8.
>> > > >http://downloads.yahoo.com/in/internetexplorer/-Скрыть<http://downloads.yahoo.com/in/internetexplorer/-%D0%A1%D0%BA%D1%80%D1...>
>> > <http://downloads.yahoo.com/in/internetexplorer/-%D0%A1%D0%BA%D1%80%D1...>
>> > > > <
>> >http://downloads.yahoo.com/in/internetexplorer/-%D0%A1%D0%BA%D1%80%D1..
>> > .>цитируемый
>> > > > текст -
>>
>> > > > > > > > > - Показать цитируемый текст -
>>
>> > > > > > > >       See the Web's breaking stories, chosen by people like
>> > you.
>> > > > Check
>> > > > > > out Yahoo! 
>> > > > > > Buzz.http://in.buzz.yahoo.com/-Скрыть<http://in.buzz.yahoo.com/-%D0%A1%D0%BA%D1%80%D1%8B%D1%82%D1%8C>
>> > <http://in.buzz.yahoo.com/-%D0%A1%D0%BA%D1%80%D1%8B%D1%82%D1%8C>
>> > > > <http://in.buzz.yahoo.com/-%D0%A1%D0%BA%D1%80%D1%8B%D1%82%D1%8C
>> > >цитируемый
>> > > > текст -
>>
>> > > > > > > > - Показать цитируемый текст -
>>
>> > > > > > >       Yahoo! recommends that you upgrade to the new and safer
>> > > > Internet
>> > > > > > Explorer 
>> > > > > > 8.http://downloads.yahoo.com/in/internetexplorer/-Скрыть<http://downloads.yahoo.com/in/internetexplorer/-%D0%A1%D0%BA%D1%80%D1...>
>> > <http://downloads.yahoo.com/in/internetexplorer/-%D0%A1%D0%BA%D1%80%D1...>
>> > > > > > цитируемый текст -
>>
>> > > > > > > - Показать цитируемый текст -- Скрыть цитируемый текст -
>>
>> > > > > - Показать цитируемый текст -- Скрыть цитируемый текст -
>>
>> > > - Показать цитируемый текст -
> >
>



-- 
Jean-Baptiste M. "JBQ" Queru
Software Engineer, Android Open-Source Project, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to