WordPress.org

Ready to get started?Download WordPress

Forums

Hana Flv Player
[resolved] Two specific features. (5 posts)

  1. viraladmin
    Member
    Posted 1 year ago #

    Okay so I am interested in one of two features specifically, and neither exist on this plugin.

    I have seen other sites that can do these things so I am hopeful.

    First would be to make it so the video only plays if the play button is clicked, and if anywhere other than the play button is clicked the defined link will open in a new tab.

    The alternative to that would be the ability to place a small 250x 250 px ad over the video when it first starts and/or is the video is paused.

    O have no problem offering up a donation if I can get one of these options :)

    http://wordpress.org/extend/plugins/hana-flv-player/

  2. HanaDaddy
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. viraladmin
    Member
    Posted 1 year ago #

    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!

  4. HanaDaddy
    Member
    Plugin Author

    Posted 1 year ago #

    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']."'); } ); ";
    }
  5. viraladmin
    Member
    Posted 1 year ago #

    00purple@gmail.com :) and let me know where to send you a donation in the email also ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.