Dear all,
I am not able to correctly store data for each of randomized audio file. Perhaps I am missing something.
I would like to display audio filenames on 'View Data Set' Analysis.
if (! isset($ blocks)) {
$ blocks = array(
array ('EX03', 'training1.mp3'),
array ('EX07', 'training2.mp3'),
array ('EX08', 'training3.mp3'),
);
shuffle($ blocks);
registerVariable($ blocks);
}
$ i = loopPage(count($ blocks));
html('
<audio id="audio_with_controls" preload="auto" controls>
<source src="'.$ blocks[$ i][1].'" " type="audio/mpeg"/>
</audio>
<br />
<br />
');
question($ blocks[$ i][0]);
Please, If you might help me.
I would be very very grateful.
Best for all of us