W wdegler Active Member Licensed User Longtime User Jul 19, 2015 #1 I need to play several audio files of various durations using MediaPlayer one after another with no gaps between and with no overlap. How can I do this?
I need to play several audio files of various durations using MediaPlayer one after another with no gaps between and with no overlap. How can I do this?
Erel B4X founder Staff member Licensed User Longtime User Jul 19, 2015 #2 Use a timer with an interval equals to the audio file duration. Upvote 0
W wdegler Active Member Licensed User Longtime User Jul 19, 2015 #3 Never mind. I figured it out. Instead of using a timer, I find that the event handler "Complete" does the job. Upvote 0
Never mind. I figured it out. Instead of using a timer, I find that the event handler "Complete" does the job.
W wdegler Active Member Licensed User Longtime User Jul 19, 2015 #4 I just saw your reply Erel. I am not clear how to use "Duration". Does it tell me the duration of an audio file independently of playing it? Upvote 0
I just saw your reply Erel. I am not clear how to use "Duration". Does it tell me the duration of an audio file independently of playing it?
Erel B4X founder Staff member Licensed User Longtime User Jul 20, 2015 #5 Actually your solution is better. Use the Complete event. My suggestion was to check the interval after you initialize MediaPlayer and use a timer with an interval set to this player duration. Upvote 0
Actually your solution is better. Use the Complete event. My suggestion was to check the interval after you initialize MediaPlayer and use a timer with an interval set to this player duration.
W wdegler Active Member Licensed User Longtime User Jul 20, 2015 #6 Thank you, Erel. Your responses cleared this up for me. Upvote 0