B4J Question [ABMaterial] How to how to control playback when I click a button

stanmiller

Active Member
Licensed User
Longtime User
can you give me an example how to play audio when I click a button I can stop or next audio, or I click a button will load other audio. (Not Playlist, I hate it)
ABMaterialAudioPlayer only load a song and run unlimit, can not stop it to open other media, it is very stupid, I don't think I can use it to code any website to play audio online

I'll defer to @alwaysbusy.
 

alwaysbusy

Expert
Licensed User
Longtime User
ABMAudioPlayer does not have this feature. Note that a HTML5 player in a webbrowser is allowed very little nowadays (because malicious websites overused this feature by playing automatically all kind of audio when a user entered a page). Because of that, many browsers do not allow you to play, stop or pauze audio any more by code. The user must do a real interaction, like clicking a button to start playing audio.

But as I said, enter a wish in the feedback app and I have a look what I can come up with.
 
Upvote 0
Top