Jul 232012
 

It’s nice to have something happen when visitors arrive at your webpage. Videos and music are nice, but you can’t control the volume the user’s speakers will be set to, and custom applications can end up being too loud and startle users while sending them frantically looking for volume controls, or quickly clicking away.

An embedded Youtube video provides a familiar experience to the user, and has several features that make it fit nicely almost anywhere.

Below is the script you will need to embed your video or playlist. This code starts the video with the volume muted, and hides the controls until the user mouses over the video frame. Note: this will not work properly if you test it from your desktop. Once uploaded toy our site, it should work fine.

 

This embeds a playlist:

<script src=”http://www.google.com/jsapi”></script>
<script src=”http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js”></script>
<div id=”ytapiplayer”>You need Flash player 8+ and JavaScript enabled to view this video.</div>
<script type=”text/javascript”>
google.load(“swfobject”, “2.1”);
function onYouTubePlayerReady(playerId) {
ytplayer = document.getElementById(“myytplayer”);
ytplayer.playVideo();
ytplayer.mute();
}
var params = { allowScriptAccess: “always” };
var atts = { id: “myytplayer” };

swfobject.embedSWF(“http://www.youtube.com/v/mOLp4doE51Q&list=PL
86C090F73345FED6&feature=plpp_play_all?
enablejsapi=1&playerapiid=ytplayer&allowFullScreen=true&version=3&loop=1&autohide=1″,
 “ytapiplayer”, “100%”, “380”, “8”, null, null, params, atts)

</script>

To embed a single video, just change the bold part to the normal Youtube video URL:

swfobject.embedSWF(“http://www.youtube.com/v/mOLp4doE51Q?enablejsapi=1&playerapiid=ytplayer&allowFullScreen=true&version=3&loop=1&autohide=1″,
“ytapiplayer”, “100%”, “380”, “8”, null, null, params, atts)

 

Here are some links that may be helpful:

This post and a better representation of the code are available here.

YouTube Embedded Players and Player Parameters

YouTube JavaScript Player API Reference

 

 


Jun 222012
 

Thursday’s sporadic Twitter outages gave addicts like us the shakes. After all, Twitter users average over 100,000 tweets per minute, and the site was down for a whole lot longer than that.

Twitter is far from the only channel through which web users funnel data. Business intelligence company DOMO paired up with Column Five Media to create this infographic, which shows just how much data is generated every minute.

Next time you run a Google search, think about the fact that it’s just one of 2 million that Google will receive in that minute. In the same amount of time, Facebook users post 684,478 pieces of content. Crazier still, online shoppers spend an average of $272,070 every minute. That’s over $391 million every day — quite the chunk of change.

SOURCE:  How Much Data Is Created Every Minute? [INFOGRAPHIC].