Handle correctly end of media
-rw-r--r-- 14673 hls-player.py