wordpress 插件 easy video player https://wordpress.org/plugins/easy-video-player/

https://wordpress.org/plugins/easy-video-player/


但是现在好想如果是mp4结尾的可以播放,其他的如果直接是优酷的网址是不行的。


Description

Easy Video Player is a user-friendly WordPress video plugin to showcase your videos. You can embed both self-hosted videos or videos that are externally hosted using direct links.

EASY VIDEO PLAYER FEATURES
  • Embed MP4 video into your website
  • Embed responsive video for a better user experience while viewing from a mobile device
  • Embed HTML5 video which are compatible with all major browsers
  • Embed video with poster images
  • Embed video with autoplay
  • Embed video with loop
  • Embed video with muted enabled
  • Customize the video player using modifier classes
  • Embed video using three different skins
  • Embed video using MediaElement player or default WordPress video player
EASY VIDEO PLAYER PLUGIN USAGE

Settings Configuration

It’s pretty easy to set up this video player plugin. Once you have installed the plugin simply navigate to the Settings menu where you will be able to configure some options. Mostly you just to need check the “Enable jQuery” option. That will allow the plugin to make use of jQuery library.

Embedding Shortcodes for the Videos

Now it’s time to finally embed a video shortcode. To do this create a new post/page and use the following shortcode:

[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4"]

Here, url is a shortcode parameter that you need to replace with the actual URL of the video file.

Video Autoplay

If you want a particular video to start playing when the page loads, you can set the “autoplay” option to “true”:

[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4" autoplay="true"]

Control Size

By default, the player takes up the full width of the content area. You can easily control the size by specifying a width for it:

[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4" width="500"]

The height will be automatically determined based on the ratio (please see the “Control Player Ratio section” for details).

Control Player Ratio

The player ratio is set to “0.417” by default. You can override it by specifying a different ratio in the shortcode:

[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4" ratio="0.345"]

Control Player Skin

The video player comes with a default skin. But you can override it by specifying a different skin in the shortcode:

[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4" class="fp-minimal"]

[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4" class="fp-playful"]

Video Loop

If you want a particular video to start playing again when it ends, you can set the “loop” option to “true”:

[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4" loop="true"]

Video Player Template

If you want to use a different video player template, you can specify it in the “template” parameter:

[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4" template="mediaelement"]

By default, the mediaelement template only loads the “metadata” of a video when the page loads. You can set it to “auto” or “none” with the preload parameter in the shortcode.

[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4" preload="auto" template="mediaelement"]

For detailed documentation please visit the Easy Video Player plugin page

PLUGIN LANGUAGE TRANSLATION

If you are a non-English speaker please help translate Easy Video Playerinto your language.

RECOMMENDED READING



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值