I am assuming you are talking about PVPlayerEngine and not
MediaPlayer.
iPlayer->AddDataSource();
iPlayer->Init();
Init() would fail with "license not found" or "license expired"
error.
iPlayer->QueryInterface(PVPlayerLicenseAcquisitionInterfaceUuid,
iLicenseIF);
iLicenseIF->AcquireLicense();
If AcquireLicense() succeeds, then you are ready to start
playback once again.
iPlayer->Init();
iPlayer->Prepare();
iPlayer->Start();
This is documented in detail in Section 14.10.3 of
pvplayer_developers_guide.pdf.
http://android.git.kernel.org/?p=platform/external/opencore.git;a=blob;f=doc/pvplayer_developers_guide.pdf;h=b43d47b44668a419961efaaf18f753100f8359cb;hb=66b5b019c657b631aeae524e298b61ce80179266
-Ravi
On Nov 2, 1:08 am, NoraBora <[email protected]> wrote:
> I haven't looked at the "AcquireLicense" part, because it is not necessary
> for my job. sorry..
>
> I think you should see opencore/drm/oma1/test/test_pv_drm_plugin.cpp.
> (I've never run & tested this code though...)
>
> 2009/11/2 Raghu <[email protected]>
>
> > Hi Atish,
>
> > As i know if any License is expired, or content not supported error is
> > propagated to the Application using the MediaPlayer.java
>
> > As u know we may register for the Listeners like InfoListener . or
> > ErrorListener ..etc..
>
> > But as i understood based on the Error u mean pvplayer engine state
> > need to be change ?
>
> > I think either Ravi or NoraBora are right persons for this querry.
>
> > Regards,
> > Raghu.M
>
> > On Oct 31, 7:44 pm, Atish <[email protected]> wrote:
> > > Hiii All,
>
> > > i am trying to work with CPM plugin for playing of DRM contents.I saw
> > > get license code snippets in Parser node and CPM code.
>
> > > All calls are made from AcquireLicense from PvPlayer Engine.
>
> > > After that i was clueless.Where should i call AcquireLicense of
> > > Engine in order to retrieve license silently??
>
> > --
> > unsubscribe:
> > [email protected]<android-porting%[email protected]>
> > website:http://groups.google.com/group/android-porting
--
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting