Hello, let me think about it. Inserting AD might be possible with MediaElement.js player.
Meanwhile, you can use clickurl and clicktarget attributes.
[hana-flv-player video=""
width="400"
clickurl="http://www.yahoo.com"
clicktarget="_blank"
/]
Thanks.
Hello HanaDaddy,
Thanks for the suggestion. I actually a already using the clickurl and clicktarget, the problem is that it takes two clicks to open the clickurl. The first click starts the video, the second opens the url. Most people won’t click the second time.
I REALLY look forward to a solution.I could technically use css to overlay the videoplayer with div, but the problem with that solution is I need to manually add and manipulate the css for each video and also ensure they stay working on the front page with multiple posts/video’s.
So yes if you can create a solution, I am definitely interested!
Hey
You can replace codes at line 649 in the hana-flv-player.php
or let me know your email address and I will send the updated php file.
This one works only for the Player 5 (Mediaelement.js)
I don’t have plan to upgrade version yet.
if ($target == '' || $target=='_self') {
$event_tracking_body.="
me.addEventListener('click', function() { me.pause(); window.location.href='".$flv_attr['clickurl']."'; },false);
jQuery('.mejs-overlay-play').click(function () {me.pause(); window.location.href='".$flv_attr['clickurl']."'; } ); ";
} else{
$event_tracking_body.="
me.addEventListener('click', function() { me.pause(); window.open('".$flv_attr['clickurl']."'); },false);
jQuery('.mejs-overlay-play').click(function () {me.pause(); window.open('".$flv_attr['clickurl']."'); } ); ";
}
[email protected] 🙂 and let me know where to send you a donation in the email also 😉