Inception

A world beyond boundaries, my world

Archive for the ‘post’ Category

How to Embed Windows Media Player on to your website

leave a comment »

Have you ever wondered about embedding windows media player on to your website so that it can play movies or songs that you want your website visitors to see. In this tutorial I am going to teach you how to do the same.

Open the HTML page for modifications and add the following lines between the body tags.

<embed type=“application/x-mplayer2″ pluginspage=“http://www.microsoft.com/Windows/MediaPlayer/” name=“mediaplayer1″ ShowStatusBar=“true” EnableContextMenu=“false” autostart=“false” width=“320″ height=“240″ loop=“false” src=“Video.wmv” />

The video file that we have referenced in the src should be in the same directory as the html file. If you want to place the file somewhere else than make appropriate changes to the src command.

Ok, this was the quick and dirty way of embedding Windows Media Player plugin into a webpage, but there’s more than this. If you want to specify more preferences such as the volume, the balance or the playback rate, use the following tags:

<OBJECT id=“VIDEO” CLASSID=“CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6″ type=“application/x-oleobject” width=“320″ height=“240″>

<PARAM NAME=“URL” VALUE=“Video.wmv”>

<PARAM NAME=“enabled” VALUE=“True”>

<PARAM NAME=“AutoStart” VALUE=“False”>

<PARAM name=“PlayCount” value=“3″>

<PARAM name=“Volume” value=“50″>

<PARAM NAME=“balance” VALUE=“0″>

<PARAM NAME=“Rate” VALUE=“1.0″>

<PARAM NAME=“Mute” VALUE=“False”>

<PARAM NAME=“fullScreen” VALUE=“False”>

<PARAM name=“uiMode” value=“full”>

</OBJECT>

The CLASSID attribute of the <object> tag contains the class ID for Windows Media Player versions 7, 9 and 10. The width and height attribute specify the size in pixels of the entire plugin.

The child tags define parameters for this object, just like the attributes did in our first example of embedding the WMP plugin. I haven’t included all the parameters, only the most popular ones which you need.

I am followup article to this tutorial, I will explain the different attributes of the embed and child tags of the object tag.

Coming soon…….

Written by Zaheed

August 19, 2010 at 8:57 am

Widgets for your website

leave a comment »

Ever thought of having nice sexy looking widgets for your site…… I have come across so many sites giving free widgests that can be easily plugged into your site, but these widgets are either not good looking or snappy enough to force users to try them.

After lot of searching and scratching I finally found widgetbox.com, this site has tons of free widgets with ads or if you take a pro membership widgets come without the ads. With advance features like customizations widgetbox makes it a piece of cake for novoices.

So go for it and leave me your comments if you found this post useful. Suggestions, please shout!!!!

Written by Zaheed

August 5, 2010 at 8:56 am

Posted in post

Tagged with , , , , , ,

How to End a C# application

leave a comment »

If you are VB6 programmer looking at a command to End or Close a c# application, use the command Application.Exit() to do the same.

Written by Zaheed

July 24, 2010 at 9:33 am

Posted in post

Tagged with , , , , ,

looking to create a Avatar for myself I …

leave a comment »

looking to create a Avatar for myself I landed on Doppel Me. this site is so easy to work with :) Got a new Avatar for myself in less than a minute. Simple registration saves your Avatar for later modifications, and also your Avatar can be published to facebook. For more info check on http://doppelme.com.

Comment if you know of some other better tool or site.

Cheers

Written by Zaheed

July 24, 2010 at 9:08 am

Posted in post

Tagged with , , , ,

Follow

Get every new post delivered to your Inbox.