JQuery plugin for html5 ads for videos?

Are there any jQuery html5 video plugins for inserting commercials into videos?

Most flash files work by pausing the video at a specific time stamp and playing the ad stream, and then resuming the original video stream. The jquery signature plugin for html5 seems very similar but different.

+3
source share
3 answers

I did not find any plugins, but I fixed jCap to provide a callback and added an add example: http://github.com/irae/jCaps/blob/master/addsexample.html

$("#myVid").jCaps({
    language: 'en',
    languageChooser: false,
    toggleButton: false,
    onButton: false,
    offButton: false,
    interfaceImg: false,
    transcriptButton:false,
    showCaptions: true,
    transcriptType: 'html',
    transcriptsDiv: $('#transcripts'),
    subtitleChangeCallback:function(oldV,newV) {
        if(!addShown) {
            addShown = true;
            $('#myVid').get(0).pause();
            setTimeout(function(){
                $('#captions').text('');
                $('#myVid').get(0).play();
            },5*1000); // time to show add (5 seconds)
        }
    }
});

. , . , jCap.

+3

HTML5 -. , , () . - .

0

Here's a quick example of how to put any HTML element on top of a video and show it at a specific time! http://blog.app-solut.com/2011/03/display-additional-overlay-elements-on-top-of-an-html5-video-element-with-javascript/

0
source

Source: https://habr.com/ru/post/1739834/


All Articles