Easily add videos to your site
I’ve installed a new “mu-plugin”, that is, a plugin that is automatically enabled for every blog on PersonalLog’s hosting service. This adds new features:
Easily add videos to your post / page with a line or two
It’s really easy to add a video to your site, and we’ve done so at the demo blog to show you the output. But it’s as simple as adding the following:
[ youtube BxnYp0ID-rE ]
(I’ve placed spaces after and before the square brackets to prevent the plugin from turning it into a video.
The video ID, which can be found in the URL of a YouTube video (for instance, http://www.youtube.com/watch?v=BxnYp0ID-rE), is simply placed after the name of the video service, enclosed in [] (square brackets).
Many popular video sites are supported, and here are guides for a few:
Dailymotion
[ dailymotion id ]
Unfortunately, the key for Dailymotion lies in the source code. Open up the source code and search for value=. Immediately following it, you will find the URL with the ID. For the URI http://www.dailymotion.com/swf/3IpRMmMPAdtLU5XDe the ID is 3IpRMmMPAdtLU5XDe, so your code would be [ dailymotion 3IpRMmMPAdtLU5XDe ]. (Sorry, not exactly user-friendly.)
Google Video
[ google id ]
For the URI http://video.google.com/videoplay?docid=5024787479139933029 the id is 5024787479139933029 ? [ google 5024787479139933029 ]
Metacafe
[ metacafe id ]
For the URI http://www.metacafe.com/watch/427425/boulot/ the id is 427425 ? [ metacafe 427425 ]
MyspaceTV
[ myspacetv id ]
For the URI http://vids.myspace.com/index.cfm?fuseaction=vids.individual&VideoID=11315224 the id is 11315224 ? [ myspacetv 11315224 ]
slideshare
[ slideshare id doc ]
Replace “id” and “doc” with the corresponding values from the URL of the object. For embedding the presentation at https://s3.amazonaws.com:443/slideshare/ssplayer.swf?id=4991&doc=ajaxworld-15351 you would enter [ slideshare 4991 ajaxworld-15351 ]
Veoh
[ veoh id ]
For the URI http://www.veoh.com/videos/v849683cxDDQm7y the id is v849683cxDDQm7y ? [ veoh v849683cxDDQm7y ]
Yahoo! Video
[ yahoo id ]
You will find the id, when you copy the video code for an embedded player. Look for this line: flashvars=’id=3253032&emailUrl=http%3A%2F%2 …etc…, there you can find the ID: 3253032 ? [ yahoo 3253032 ]
For more video sites supported by the plugin, visit the instructions page at the website of the original plugin.