I tested what you said. MediaPlayer.start() ... wait...play complete..MediaPlayer.start() In the second start(), none of the cpm function called.
Under this opencore structure, all I can think of is to reset MediaPlayer in CompletionListener. I hope there is a better solution. 2009/10/14 Atish <[email protected]> > > Thanks for Replying... > > I have already tried that. > > CPM's AuthorizeUsage() will be called only once when u start playing a > new media file. > > Once play is finished node will be in paused state.So if u start > playing again node will go to Start state. > PvPlayerEngine->Resume->ParserNode->Start. > So AuthorizeUsage() won't be called. > > As all the cpm calls are enqued in Init of Parser node only if u > change media file or call Reset from App then only cpm commands will > be invoked. > > Please guide me what to do in this scenario??? > > > On Oct 14, 12:32 pm, NoraBora <[email protected]> wrote: > > I didn't know the default music player doesn't call MediaPlayer.Reset(). > > > > How about you put such as ConsumeRight() in CPM's AuthorizeUsage() not in > > CPM's UsageComplete()? > > In this case the consumption happens before playback. > > > > 2009/10/14 Atish <[email protected]> > > > > > > > > > > > > > But Currently android music player doesnot call Reset.That means it > > > can play DRM files with no constratint!!!! > > > > > So where should i put that UsuageComplete code so that every case is > > > considered?? > > > > > On Oct 14, 6:44 am, NoraBora <[email protected]> wrote: > > > > DoReset() is invoked by MediaPlayer.reset(); > > > > > > 2009/10/13 Atish <[email protected]> > > > > > > > Hi All, > > > > > I m trying to run CPM plugin thru opencore for playing DRM contents > in > > > > > Android. > > > > > > > I was succesfule in registrering and checking the rights for DRM > > > > > content thru CPM plugin. > > > > > > > But consuming rights is not working because of below mentioned > reason. > > > > > > > Push(iCPMContainer, > PVMFSubNodeContainerBaseMp3::ECPMUsageComplete); > > > > > This command will enque the consume rights commands > > > > > (ECPMUsageComplete).But this code is present in DoReset. > > > > > > > So how do reset will be invoked?? > > > > > Current android music player doesnot even call stop. > > > > > > > so ECPMUsageComplete is not getting called... > > > > > how to solve this issue...???- Hide quoted text - > > > > > > - Show quoted text -- Hide quoted text - > > > > - Show quoted text - > > > --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
