Hello Friends!
Now here is something regarding the designing of the website. I am working on a project in ASP.NET. It includes a lot of things in addition to designing. Adding a Animated Image or a Video gives a good look to your page. So, I decided to add a Video to my Website.
And Here the Problem Starts! How to add it?
Here is the code to add the video to your ASP.NET website. Copy the code to the place where you want to add the Video (May in Master Page or Web Form). Replace this -" SomeMediaFile.mpg" (without quotes) with your video filename. Any video extension can be used. But Before that, You need to create the folder in your solution and place the Video file in it. The Parameters can be changed as per requirement.
The Code -
<OBJECT ID="Player"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
VIEWASTEXT>
<PARAM name="autoStart" value="True">
<PARAM name="URL" value="SomeMediaFile.mpg">
<PARAM name="rate" value="1">
<PARAM name="balance" value="0">
<PARAM name="enabled" value="true">
<PARAM name="enabledContextMenu" value="true">
<PARAM name="fullScreen" value="false">
<PARAM name="playCount" value="1">
<PARAM name="volume" value="100">
</OBJECT>
Creating a Video File using the Images, Pictures and Wallpapers -
You can create a video file using the images. It's Simple. Open the Windows Movie Maker (available in Windows XP). Import the required Images. Add Effects and Create the movie file. And it's Done..!
I know there are a lot of other options available to add videos to website such as using Flash. But I think This is the simplest way. Many people don't know how to use flash. And it's very easy to create videos using Windows Movie Maker. Videos can be added using Silverlight also. But it works in Visual Studio 2008 only not in VS 2005.
So, Give it a Try......
There will be few more posts in designing category so stay Tuned :)