Home >Backend Development >PHP Tutorial >Install and use the video player plug-in Hana Flv Player in WordPress, wordpresshana_PHP tutorial
Hana Flv Player is a player plug-in that is widely used in WordPress,
This plug-in has 5 built-in media players, and its playback files are mainly flv files,
And integrate the button to insert files into the editing interface of the WordPress backend to facilitate user operations,
It is really a rare and good plug-in.
Built-in player
I won’t talk about the features of the built-in player. Just search online. These are the more popular players.
Use of plug-ins
To download the plug-in, you can go to your WordPress backend and directly search and download the plug-in,
You can also directly visit the plug-in home page to get the latest plug-in: Hana Flv Player
After installation, remember to choose to enable it in the background, dear,
After enabling it, you can see the following two buttons in visual and HTML editing modes respectively:
After clicking, a floating layer will pop up, which is mainly used to set some parameters of the video
Modification of default settings
Here you can give some default styles and playback defaults that suit your theme,
In this way, you only need to set the video address every time you insert a video. Isn't it very simple?
Use of short codes
Of course, the plug-in can also set up video playback by directly using short codes,
Let’s use a simple example to illustrate:
[hana-flv-player //视频地址 video="http://localhost/wp/wp-content/plugins/hana-flv-player/babyhana.flv" width="400"//视频宽度 height="320"//高度 description="Sarah is having fun in a merry-go-round"//描述 clickurl="http://localhost/wp"//点击指向的URL clicktarget="_blank"//是否在新建窗口打开 player="4"//选择几号播放器 autoplay="false"//是否自动播放 loop="false"//是否循环 autorewind="true"//是否重置? //预览图片地址 splashimage="http://localhost/wp/wp-content/plugins/hana-flv-player/splash.jpg" /]
Okay, such a good thing, go and play it quickly!