HotShoe Well-Known Member Licensed User Longtime User Feb 26, 2014 #1 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. Code: Copy 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
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. Code: Copy 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
klaus Expert Licensed User Longtime User Feb 26, 2014 #2 The MediaPlayer raises a MediaPlayer_Complete event and not a MediaPlayer_PlaybackComplete event ! What is audpan ? What is isplaying and what are you using it for ? MediaPlayer.IsPlaying gives you the information.
The MediaPlayer raises a MediaPlayer_Complete event and not a MediaPlayer_PlaybackComplete event ! What is audpan ? What is isplaying and what are you using it for ? MediaPlayer.IsPlaying gives you the information.
HotShoe Well-Known Member Licensed User Longtime User Feb 26, 2014 #3 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
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