| 开发者 | naa986 |
|---|---|
| 更新时间 | 2025年12月5日 13:41 |
| 捐献地址: | 去捐款 |
| PHP版本: | 4.3 及以上 |
| WordPress版本: | 5.4 |
| 版权: | GPLv3 or later |
| 版权网址: | 版权信息 |
[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 WordPress video plugin page
Plugin Language Translation
If you are a non-English speaker please help translate Easy Video Player into your language.
Recommended Reading
Yes.
Yes.
Yes.
Yes.