To subscribe to what event, to catch the moment of html5 video downloading from the player or how to get to the video download button and lead onClick handler to it?

enter image description here

    2 answers 2

    Standard player does not generate events. Moreover, the standard players of not all browsers basically allow you to download videos.

    • and how to catch this event. I need to perform my function when downloading a video - werty
    • @werty, It’s impossible to catch him by the fact that he is not there. What you need is to create or connect this HTML5 player. Look towards MediaElement.js . - Vasiliy Rusin

    Do it like on any video player on a video hosting, namely, remove the standard control panel from the <video> tag (remove the controls attribute) and write your own on js and add the download button there. There are ready-made solutions on the Internet, you can search.