How do you detect when a HTML5 element has finished playing?
You can simply add onended="myFunction()" to your video tag.
onended="myFunction()"
... Your browser does not support the video tag.