Re: [Gambas-user] R: Fwd: Re: MediaPlayer

2015-09-07 Thread Shane
Ok i got End event to trigger but still can't get Progress event to trigger On 08/09/15 16:03, Shane wrote: i don't like the loop thing but thanks i obviously need to call stop i guess i can just call stop before for calling play but i want to load the next song after one is finished like what

Re: [Gambas-user] R: Fwd: Re: MediaPlayer

2015-09-07 Thread Shane
i don't like the loop thing but thanks i obviously need to call stop i guess i can just call stop before for calling play but i want to load the next song after one is finished like what you have done. i tried to declare an event Process but it isn't being called i must be doing something wrong t

[Gambas-user] R: Fwd: Re: MediaPlayer

2015-09-07 Thread Ru Vuott
Hello Shane, in " Public Sub Button1_Click() " routine you can try: Public Sub Button1_Click() If Not Dialog.OpenFile() hPlayer.URL = Media.URL(Dialog.Path) hPlayer.Play Endif Do Wait 0.01 Loop Until hPlayer.Position >= hPlayer.Duration hPlayer.Stop End regards vuo