Videojs HTML5 Player


Videojs HTML5 Player is a user-friendly plugin that supports video playback on desktops and mobile devices. It makes super easy for you to embed both self-hosted video files or video files that are externally hosted using Videojs library.


Videojs 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)

Videojs HTML5 Player Plugin Usage

In order to embed a video create a new post/page and use the following shortcode:

[videojs_video url=""]

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="" webm=""]


You can specify a Ogv video file in addition to the source MP4 & WebM video files. This parameter is optional.

[videojs_video url="" webm="" 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="" 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=”″ 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="" 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="" autoplay="true"]


Defines image to show as placeholder before the video plays.

[videojs_video url="" poster=""]


Causes the video file to loop to beginning when finished and automatically continue playing.

[videojs_video url="" loop="true"]


Specifies that the audio output of the video should be muted.

[videojs_video url="" muted="true"]

For detailed documentation please visit the Videojs HTML5 Player plugin page

Capturi ecran

  • Videojs Player Demo


  1. Go to the Add New plugins screen in your WordPress Dashboard
  2. Clic pe fila încărcată
  3. Browse for the plugin file ( on your computer
  4. Click „Install Now” and then hit the activate button

Întrebări frecvente

Can this plugin be used to embed videos in WordPress?


Are the videos embedded by this plugin playable on iOS devices?


Can I embed responsive videos using this plugin?



2 martie 2018
Beautiful. Doesn't try to force controls on you. Doesn't tell you it knows what's best for you. Doesn't cut mobile because "How dare you have a client that isn't flexible." Completely configurable for inline embedded local videos. Perfect perfect perfect.
3 noiembrie 2017
Not bad compared to other plugins...But somehow the play icon displays at the top left corner? Not really secure too (extremely easy for anyone to download the video and see the filename/directory structure). I know it's not possible to totally prevent someone from downloading, but at this point it's like giving them everything in their hands. Wanted to give 3 stars but I respect the work and I guess it still works correctly for other people.
19 aprilie 2017
Tried and disappointed with other video players, and already had my mp4 video uploaded, so VideoJS was my 60 second solution. The display is responsive and tested well on multiple mobile devices. The short code customization options were well written and easy to implement. Fast. Easy. Mobile friendly.


18 martie 2017
OK! Thnks. Example
3 septembrie 2016
There is a problem with this plugin: registers the videojs script in the header. Sometimes it arises javascript error because of the videojs autoSetup function depending on the load speed. It can be fixed easily by registering the script in the footer: wp_register_script('videojs', $plugin_url . '/videojs/video.js', array('jquery'), VIDEOJS_HTML5_PLAYER_VERSION, true); Put a 'true' at the end of the registering parameter list. Please fix it in the next version, thx. However the plugin works great, thank you!
Citește toate cele 10 recenzii

Contributori și dezvoltatori

„Videojs HTML5 Player” este un software open-source. La acest modul au contribuit următoarele persoane.


„Videojs HTML5 Player” a fost tradus în 8 locale. Mulțumim traducătorilor pentru contribuția lor.

Tradu „Videojs HTML5 Player” în limba ta.

Te interesează dezvoltarea?

Răsfoiește codul, vezi depozitarul SVN, sau abonează-te la jurnalul de dezvoltare prin RSS.

Istoric modificări


  • 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).


  • Videojs script is now enqueued in the footer to avoid a JavaScript setup error.


  • 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