Quantcast
Channel: WordPress Cheat Sheets » admin
Viewing all articles
Browse latest Browse all 39

WordPress 3.6 will Introduce Audio and Video Support in the Core

$
0
0

The upcoming WordPress 3.6 release will add native support for Audio and Video files in the core. This means that you will be able to embed an audio or video player on a WordPress page using a simple shortcode (you won’t need to use any plugin for it).

Previously if you wanted to play an MP3 audio file from your Media Library, you had to install a plugin. This should be good news for bands, podcasters, vloggers etc. the ability to easily expresses themselves without using an external service.

How will This Work?

WordPress will be using the “MediaElement.js” library to offer this functionality. The MediaElement JavaScript library allows you to embed audio and video files using HTML5 so it should work on all modern browsers including iPhones and iPads.

New Shortcodes

There will be the following two new WordPress shortcodes:

  • [audio]
  • [video]

Example Shortocode Usage for Audios

[audio src="audio-source.mp3"]

If you have a source URL and fallbacks for other HTML5-supported filetypes:

[audio mp3="source.mp3" ogg="source.ogg" wav="source.wav"]

Example Shortcode Usage for Videos

[video src="video-source.mp4"]

If you have a source URL and fallbacks for other HTML5-supported filetypes:

[video width="600" height="480" mp4="source.mp4" ogv="source.ogv" webm="source.webm"]

You will be able to easily embed them directly from the WordPress post/page editor.


Viewing all articles
Browse latest Browse all 39

Trending Articles