I am able to stream multiple files together using:
$AGI->exec('Background',"file1&file2&file3&file4")
However, this doesn't return the key pressed by the user when the files are being played. So, I used $AGI->stream_file
, which returns the key pressed, but only plays a single file.
I need to be able to play multiple files together, the playback should stop the moment a key is pressed by the user, and I should know which key was pressed.
How do I achieve this?