2
I have the following code in a JS file, which I use to detect when someone "plays" or "downloads" audio and video files.
$("audio").on("play", function() {...}); # Funciona
$("video").on("play", function() {...}); # Funciona
$("audio").on("download", function() {...}); # Não funciona
$("video").on("download", function() {...}); # Não funciona
However, in the case of "download" the code does not work.
Is there any way to detect when someone "downloads" these files?