Video.js HTML5 Player is a user-friendly plugin that supports video playback on desktop and mobile devices. It makes super easy for you to embed both self-hosted video files or video files that are externally hosted using Video.js library.
Video.js HTML5 Player Features
- Embed MP4 video files into a post/page or anywhere on your WordPress site
- Embed responsive videos for a better user experience while viewing from a mobile device
- Embed HTML5 videos which are compatible with all major browsers
- Embed videos with poster images
- Embed videos using videojs player
- Automatically play a video when the page is rendered
- Embed videos uploaded to your WordPress media library using direct links in the shortcode
- No setup required, simply install and start embedding videos
- Lightweight and compatible with the latest version of WordPress
- Clean and sleek player with no watermark
- fallbacks for other HTML5-supported filetypes (WebM, Ogv)
- HTTP streaming
Video.js HTML5 Player Add-ons
How to Use Video.js HTML5 Player
In order to embed a video create a new post/page and use the following shortcode:
Here, “url” is the location of the MP4 video source file (H.264 encoded). You need to replace the sample URL with the actual URL of the video file.
Video Shortcode Options
The following options are supported in the shortcode.
You can specify a WebM video file in addition to the source MP4 video file. This parameter is optional.
[videojs_video url="https://example.com/wp-content/uploads/videos/myvid.mp4" webm="https://example.com/wp-content/uploads/videos/myvid.webm"]
You can specify a Ogv video file in addition to the source MP4 & WebM video files. This parameter is optional.
[videojs_video url="https://example.com/wp-content/uploads/videos/myvid.mp4" webm="https://example.com/wp-content/uploads/videos/myvid.webm" ogv="https://example.com/wp-content/uploads/videos/myvid.ogv"]
Defines the width of the video file (Height is automatically calculated). This option is not required unless you want to limit the maximum width of the video.
[videojs_video url="https://example.com/wp-content/uploads/videos/myvid.mp4" width="480"]
Specifies if and how the video should be loaded when the page loads. Defaults to “auto” (the video should be loaded entirely when the page loads). Other options:
- “metadata” – only metadata should be loaded when the page loads
“none” – the video should not be loaded when the page loads
[videojs_video url=”https://example.com/wp-content/uploads/videos/myvid.mp4″ preload=”metadata”]
Specifies that video controls should be displayed. Defaults to “true”. In order to hide controls set this parameter to “false”.
[videojs_video url="https://example.com/wp-content/uploads/videos/myvid.mp4" controls="false"]
When you disable controls users will not be able to interact with your videos. So It is recommended that you enable autoplay for a video with no controls.
Causes the video file to automatically play when the page loads.
[videojs_video url="https://example.com/wp-content/uploads/videos/myvid.mp4" autoplay="true"]
Defines image to show as placeholder before the video plays.
[videojs_video url="https://example.com/wp-content/uploads/videos/myvid.mp4" poster="https://example.com/wp-content/uploads/poster.jpg"]
Causes the video file to loop to beginning when finished and automatically continue playing.
[videojs_video url="https://example.com/wp-content/uploads/videos/myvid.mp4" loop="true"]
Specifies that the audio output of the video should be muted.
[videojs_video url="https://example.com/wp-content/uploads/videos/myvid.mp4" muted="true"]
Video.js HTTP Streaming
The plugin supports the m3u8 file format that can be used for Video.js HTTP Streaming. It allows you to play HLS, DASH, and other HTTP streaming protocols with Video.js, even where they are not natively supported.
For detailed documentation please visit the Videojs HTML5 Player plugin page
Imagens de tela
- Go to the Add New plugins screen in your WordPress Dashboard
- Click the upload tab
- Browse for the plugin file (videojs-html5-player.zip) on your computer
- Click “Install Now” and then hit the activate button
What is Video.js?
Video.js is a web video player built from the ground up for an HTML5 world. It supports HTML5 video playback on desktop and mobile devices.
How do I run Video.js?
Install the Video.js plugin and add a shortcode to your WordPress post/page.
Is Video.js open source?
Does Video.js plugin support HLS?
Does Video.js plugin support HTTP streaming?
What media formats does Video.js plugin support?
MP4, WebM, Ogv and M3U8.
Colaboradores e desenvolvedores
“Videojs HTML5 Player” é um software com código aberto. As seguintes pessoas contribuíram para este plugin.Colaboradores
“Videojs HTML5 Player” foi traduzido para 15 localizações. Agradecemos aos tradutores por suas contribuições.
Traduzir “Videojs HTML5 Player” para o seu idioma.
Interessado no desenvolvimento?
Navegue pelo código, dê uma olhada no repositório SVN ou assine o registro de desenvolvimento via RSS.
Registro de alterações
- Made some security related improvements suggested by wpscan.
- Added support for Disable Right Click add-on.
- Added support for Video.js HTTP Streaming.
- Updated Video.js to 7.14.3.
- Updated Videojs to 7.10.1.
- Made some security related improvements in the plugin
- Videojs play button is now centered by default.
- Videojs HTML5 Player is now compatible with WordPress 4.9.
- Added support for playsinline attribute which allows a video to play inline on iOS (the video will not automatically enter fullscreen mode when playback begins).
- Made jQuery a dependency for the videojs script.
- Updated the translation files so the plugin can take advantage of language packs.
- Videojs HTML5 Player is now compatible with WordPress 4.4.
- Added a new shortcode parameter to accept Ogv as a video source format.
- Added a new shortcode parameter to accept WebM as a video source format.
- Updated the Videojs library to 5.0.0
- Videojs HTML5 Player is now compatible with WordPress 4.3
- Added an option to mute the audio output of a video
- Added an option to loop a video
- Added an option to show/hide controls
- Added an option to set preload attribute
- First commit