Thanks for the corrections.
As for the event, I tried to add the event capture for this reason:
I have an audio that does not trigger the complete event.
Fortunately, the ready event is activated and I have solved by activating a timer that starts at the moment of play and, once the duration of the music is read at the ready event, I close the player at the end of the duration.
But I have other strange behaviors, for example finished the first video if I launch the second I hear the audio but the image of the first video remains fixed despite having released and initialized the exoplayer element again.
It is probably just the adroid version of the tablet that I am using, among other things also some sql queries sometimes work yes and sometimes not even though they are exactly the same and with the same predicates.
Thanks anyway, I will find another solution.
Best regards