Hello everyone,
I am setting up a listening quiz for a module.
My question is: is it possible to restrict the number of times an audio or video is played by the student?
Thank you for your help.
Laura
Hello Laura,
I'm not sure there is a plugin for what you want to do.
If you want a secure solution, it has to be written in PHP and you will have to find a programmer to do it.
If your students aren't too computer savvy, you can use the client-side JavaScript solution I'm proposing at https://moodleformulas.org/course/view.php?id=77§ion=81 ↗. The code and explanations will follow next week.
Without a doubt, a PHP solution would be desirable. In the meantime, here's a JavaScript workaround.
In my first solution, the play counter is saved in web storage (Window.localStorage). A simple page refresh (F5) will not reset it. However, the counter can be reset by clearing web storage. It's not obvious for those who have never done it, but it's child's play for those who know how to do it.
AL, In your last post, you gave me an idea: to tie the number of plays to the number of tries of a question. It's a workaround, not perfect but it works reasonably well. This new solution is more robust: 1) without JavaScript, the audio player doesn't work, so students wouldn't disable it, and 2) web storage is not used, so clearing it doesn't change anything. I would say it then becomes quite complicated for average students to bypass the maximum number of plays.
The script is placed in a short-answer question, which counts as 0 points. The number of remaining plays is given in the info block. More information can be found at the address below.
You can try a sample listening quiz with a limited number of audio plays at https://moodleformulas.org/course/view.php?id=77§ion=83 ↗. Your comments would be appreciated especially if you are able to bypass the maximum number of plays.
Justin,
In both cases a page refresh will probably reset the play count.
Let me help you get the facts straight.
With your Poodll's certified paid solution, a page refresh definitely does reset the play count.
With my solution, a page refresh definitely does not reset the play count.
Cheers.