mediaelement-plugins icon indicating copy to clipboard operation
mediaelement-plugins copied to clipboard

Help needed: Using markers with ads plugin

Open gorankrgovic opened this issue 7 years ago • 2 comments

Hi all, Since I can't find it anywhere, can somebody help me out to set up ads plugin to work with markers plugin if it's possible? Since I want to have pre-roll, mid-roll and post-roll ads implemented at a certain time, the only way I can think of achieving this is with using markers.

I'm trying to do something like...

 markerCallback: function (media, time) {
                    media.options.adsPrerollMediaUrl = ['https://path.to/add.mp4'];
                    media.options.adsPrerollAdUrl = ['https://clicktrack.example'];
                    media.options.adsPrerollAdEnableSkip = true;
                    media.options.adsPrerollAdSkipSeconds = 4;
                    media.options.indexPreroll = 0;
                    // and then somehow to init this ad...
                },

Thanks

gorankrgovic avatar Jan 11 '19 12:01 gorankrgovic

I also have the same use case and I'm evaluating feasibility using mediaelement. Did you get anywhere with this @gorankrgovic

hriad avatar Jan 29 '19 18:01 hriad

@gorankrgovic @hriad any update on this ?

amiranmelia avatar Sep 13 '19 18:09 amiranmelia