Bug? Problem in MediaPlayer?

HotShoe

Well-Known Member
Licensed User
Longtime User
I am trying to get the mediaplayer object to cooperate but I am not having much luck. When a user plays an audio file I need to close my little media panel when it finishes. The problem is it doesn't seem to ever trigger the PlaybackComplete event.

B4X:
Sub aud_PlaybackComplete
  
   audpan.SendToBack
   isplaying = False
  
End Sub

aud is dimmed as the mediaplayer object. The audpan is not closed (sent to back, removed, made invisible, etc) after the audio is played. Is this a bug or is there something I need to do?

I am using b4a 3.20.

--- Jem
 

HotShoe

Well-Known Member
Licensed User
Longtime User
Thanks klaus,, I must have left that event from the previous player. The idea is to use the mediplayer since it is built in. I have changed the event name and all is well. I hate getting old LOL...

--- Jem
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…