Coolest Guides on the Planet

coolest guides on the planet

Coolest Guides On The Planet

  • Home
  • macOS
  • WebDev
  • All Posts
  • Contact

VideoJS and WordPress Play HTML5 Video and Flash Across all Browsers

September 15, 2012 Leave a Comment

To play video across all browsers and iOS devices that support HTML5 video and flash fallback from WordPress there is an application called VideoJS.

It makes it all far too easy  – it consists of javascript, CSS and video code which can use just one video format and utilise that format across all browsers and iOS devices.

As a minimum you need an .mp4 file which will be displayed natively in Safari and Internet Explorer with Flash being used from the same mp4 file for older non-HTML5 browsers and also for browsers that don’t support mp4 – Firefox, Chrome and Opera.

You can pass in a 2nd format of the same file and supply as a .webm format – this will then play native HTML5 video in Firefox, Chrome and Opera and then Flash is only used in the older browsers.

Download and activate the VideoJS plugin for WordPress.

videojs-wordpress

You will find VideoJS settings in the WordPress Dashboard > Settings with just some default settings for undeclared settings – keep the CDN hosted version ticked, this references the VideoJS scripts from a remote server so your site doesn’t have to run the scripts. Also here is an option to make the video responsive so it scales to different viewports.

Then all you have to do is use the shortcode to activate on your post or page – in the settings page of VideoJS a full example the shortcode – you don’t need all of it, make sure you have at least the mp4 attribute and value and also set your width and height. Choose whether to autoplay and preload.

[videojs mp4=”http://video-js.zencoder.com/oceans-clip.mp4″ ogg=”http://video-js.zencoder.com/oceans-clip.ogg” webm=”http://video-js.zencoder.com/oceans-clip.webm” poster=”http://video-js.zencoder.com/oceans-clip.png” preload=”auto” autoplay=”false” width=”590″ height=”264″ id=”movie-id1″]

For a more detailed look at HTML5 Video check out some more resources here and here.

Cats: Video Audio

Tags

3gs 10.6 apache backup baseband boot clean urls cpanel css curl custom database drupal el capitan git Google image instadmg ios iphone jailbreak keys lion mac macos mojave macos sierra menu mysql OSX panda php phpmyadmin private public redirect redsn0w remote rsa SEO shell ssh terminal unstoppables upgrade urls

Donate a Beer to the Coolest Guides

Get Beaver Builder Now!

Discuss

3gs 10.6 apache backup baseband boot clean urls cpanel css curl custom database drupal el capitan git Google image instadmg ios iphone jailbreak keys lion mac macos mojave macos sierra menu mysql OSX panda php phpmyadmin private public redirect redsn0w remote rsa SEO shell ssh terminal unstoppables upgrade urls
Get DesktopServer

Lynda

Lynda.com Online Training Videos

TreeHouse

smlinks

Learn WordPress
osx-modify-shell-path

How to Add to the Shell Path in macOS Big Sur and Catalina using Terminal

October 19, 2019

virtual-hosts osx 10.10 yosemite

Set up Virtual Hosts on macOS Catalina 10.15 in Apache

October 19, 2019

Installing Homebrew on macOS Catalina 10.15, Package Manager for Linux Apps

October 18, 2019

Where is the bash shell in macos Catalina?

October 12, 2019

Refine your search

  • All
  • Modules
  • Themes
  • Documentation
  • Forums & Issues
  • Groups

RSS ars technica

  • Google hits back after Apple exec says AI is hurting search
  • Apple: “Hundreds of millions to billions” lost without App Store commissions
  • Matter update may finally take the tedium out of setting up your smart home
  • Cue: Apple will add AI search in mobile Safari, challenging Google
  • Apps like Kindle are already taking advantage of court-mandated iOS App Store changes

RSS mac surfer

  • Tot is new text editor for Mac, iPhone, and iPad focused on constraints and ease of use
  • TiPbITS: Google Drive Sorting Can Hide New Documents
  • How to take a screenshot on a MacBook Pro
  • How To Create Simple Animation With Mac Keynote
  • Last Week on My Mac: Virus pandemics

Donate

Copyright © 2025· Neil Gee - All Rights Reserved - Hosted by Runcloud

Copyright © 2025 · gee on Genesis Framework · WordPress · Log in