Plugin Directory

Hana Flv Player

Author: HanaDaddy

Now you can easily embed the FLV Flash videos in your WordPress Blog. I have packaged the three FLV Flash player, OS FLV , FlowPlayer, and FLV Player Maxi. So you can use them freely without worries even for the commercial purpose unlike the JW player.

You can place the specific tag element [hana-flv-player] in your wordpress article to show the video. The 'video' attribute is mandatory. There are other optional attributes. Default values for the options can be defined in this pages. See the bottom of the page for the example.

[hana-flv-player 
    video="http://yourwebsite.com/wp-content/plugins/hana-flv-player/babyhana.flv"
    width="400"
    height="320"
    player="3"
    autoplay="false"
    loop="false"
    autorewind="true"
/]

Attributes explained:

  • video: URL of the flv video file. This is mandatory.
  • width: Width of the Flash player.
  • height: Height of the Flash player.
  • clickurl: If you want to open a website when a user clicks on the video, you can define the target website URL here.
  • player: If set to "1" , OS FLV will be used. If set to "2", FlowPlayer will be used. "3" is for FLV Player Maxi.
  • autoload: If true, the movie will be loaded (downloaded). If false, the starting screen will be blank since no video is downloaded.
  • autoplay: If true, the movie will play automatically when the page is loaded.
  • loop: If Loop is true, the movie will replay itself constantly.
  • autorewind: If AutoRewind is true, the cursor will be reset to the start of the movie when the movie is ended.
  • splashimage: Only works with FlowPlayer and Maxi. When autoload is off, this splash image will be shown in the player. It only supports JPEG images.
  • more_2: more options for Flow Player.
  • more_3: more options for FLV player

More Attributes (more2, more3) Sample Generator:

By using 'more2' and 'more3' attributes, you can use advanced features of the each players. There are tons of other options for the customization. You can use most of the options through these attributes. You can start testing by using the javascript generated provided in the settings menu. It is mainly focused on the interface design option. After selecting the options you want, you can click the 'Generate' button to generate the sample usage in the output textarea.

Insert flv into template theme files (such as sidebar.php):

Okay, here is the function that you can use in the theme template files to show FLV movie. Basically you need to use hana_flv_player_template_call method. The method takes a single argument. The argument should be just the string of the attributes of usage explained the above. Just copy below code into your theme file and edit red colored attributes accordingly.

<?php
if (function_exists('hana_flv_player_template_call')){
    $hana_arg="
video='http://localhost/wp/wp-content/plugins/hana-flv-player/babyhana.flv'
player='2'
width='180'
height='150'
more_2=\"showStopButton: false, showScrubber: false, showVolumeSlider: false,showMuteVolumeButton: false, 
showFullScreenButton: false, showMenu: false, controlsOverVideo: 'locked',controlBarBackgroundColor: -1,
controlBarGloss: 'none', usePlayOverlay:false \"
";
    echo hana_flv_player_template_call($hana_arg);  
}
?>

Note: Be careful when you use other website's video file as the video source. Since video files are usually large is size they can use up the bandwidth quickly. So you should ask for the owner's permission before using that link to the file.

Thank you for using my plugin. - HanaDaddy

Tags: ,

Download

FYI

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(3 ratings)