Languages

Menu
Sites
Language
Tizen::Media::IPlayerEventListener..........

these days i am working on game application. 

so i have to set sound effects from mp3 file.

and 

i implemented Tizen::Media::IPlayerEventListenr ,,       

but it occured error message.... ( allocating an object of abstract class type..)

 

i have done on header file ->>

 class CarForm public Tizen::Media::IPlayerEventLister and 

virtual void  OnPlayerAudioFocusChanged (void)
virtual void  OnPlayerBuffering (int percent)=0
virtual void  OnPlayerEndOfClip (void)=0
virtual void  OnPlayerErrorOccurred (Tizen::Media::PlayerErrorReason r)=0
virtual void  OnPlayerInterrupted (void)=0
virtual void  OnPlayerOpened (result r)=0
virtual void  OnPlayerReleased (void)=0
virtual void  OnPlayerSeekCompleted (result r)

these method too..

 

and In Source file , I implemeted OnPlayerEndOfClip(void) {}

 

but,,, i can't find cause of the Error message..

 

Responses

1 Replies
Alex Ashirov

Hi,

You need to implement all the pure virtual methods of the abstract class in your inherited class.