July 11, 2008

Hana Flv Player WordPress Plugin v1.7

Filed under: WordPress — HanaDaddy @ 2:29 am

I just released v1.7 of Hana Flv Player WP plugin. The latest version has two improvements. One is to handle more advanced options of the FlowPlayer and FLV Player. (Unfortunately OS FLV does not have enough options to implement) The other is for showing FLV movie in the template theme files outside of the blog article by using a new method.

More options for the players



By using ‘more_2′ and ‘more_3′ attributes, you can use advanced features of the each player. 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.

Here are the examples from the predefined samples.
Flow: Simple Black Control Bar

[hana-flv-player
video="http://www.neox.net/w/wp-content/plugins/hana-flv-player/babyhana.flv"
player="2"
more_2="showVolumeSlider: false,showMuteVolumeButton: false, showMenu: false, controlBarBackgroundColor: 0"
/]


Flow: Controls over Video with Auto-Hide

[hana-flv-player
video="http://www.neox.net/w/wp-content/plugins/hana-flv-player/babyhana.flv"
player="2"
more_2="showVolumeSlider: false, controlsOverVideo: 'ease',controlBarBackgroundColor: -1, controlBarGloss: 'low' "
/]

Flow: Minimalist Look

[hana-flv-player
video="http://www.neox.net/w/wp-content/plugins/hana-flv-player/babyhana.flv"
player="2"
more_2="showStopButton: false, showScrubber: false, showVolumeSlider: false,showMuteVolumeButton: false, showFullScreenButton: false, showMenu: false,
controlsOverVideo: 'locked',controlBarBackgroundColor: -1,controlBarGloss: 'none',
usePlayOverlay: false "
/]

Flv: Showing Custom Logo

[hana-flv-player
video="http://www.neox.net/w/wp-content/plugins/hana-flv-player/babyhana.flv"
player="3"
more_3="top1=http://www.neox.net/w/wp-content/plugins/hana-flv-player/logo.png|30|20"
/]

Unalbe to show flash video

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 the regular usage. Just copy below code into your theme template file and edit $hana_arg colored attributes accordingly.

<?php
if (function_exists('hana_flv_player_template_call')){
	$hana_arg=" 
video='http://www.neox.net/w/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);	
}
?>

And here is the screen capture image showing FLV movie in the sidebar.

Let me know if you have any question.

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

 

42 queries. 0.398 seconds. Powered by WordPress