Blue Theme Orange Theme Green Theme Red Theme
 
Nevron Chart
Home | Forums | Videos | Advertise | Certifications | Downloads | Blogs | Interviews | Jobs | Beginners | Training
 | Consulting  
Submit an Article Submit a Blog 
 Jump to
Skip Navigation Links
TechnologyExpand Technology
WebsiteExpand Website
DevExpress UI Controls
Search :       Advanced Search »
Home » ASP.NET Controls » Display Videos in ASP.NET 2.0

Display Videos in ASP.NET 2.0

This article shall describe the construction of a custom control used to play video on an ASP.NET web page. The control is based upon the Windows Media Player active X control; with it you can add canned or live video to a web page by setting a property or two at design time, or from the ASP.NET page itself.

Author Rank :
Page Views : 178830
Downloads : 9831
Rating :
 Rate it
Level : Beginner
   Print Read/Post comments Post a comment  Similar Articles  
   Email to a friend  Bookmark  Author's other articles  
Download Files:
WVC.zip
 
 
Nevron Chart
Become a Sponsor
Discover the top 5 tips for understanding .NET Interop
Become a Sponsor
 Tag Cloud
 Latest Jobs
More ... 
 Latest Interview Questions
More ... 

Introduction

This article shall describe the construction of a custom control used to play video on an ASP.NET web page. The control is based upon the Windows Media Player active X control; with it you can add canned or live video to a web page by setting a property or two at design time, or from the ASP.NET page itself.



Figure 1:  Displaying Video on a Web Page with a Custom Control.

The Solution

The solution contains two projects; the first is the web custom control and the seconds is a sample web site with two pages, each displaying the controls in use to display video. The control project is called "Web Video"; it contains a single web custom control called, "WVC". The demonstration website contained in the second project is called, "TestWVC". The website contains to web pages called "Default" and "Webcams".



Figure 2:  The Solution Showing Both Projects.

The Code:  Web Video - WVC Custom Control

The WVC custom control project is a web custom control project; it contains only a single control (WVC). This control wraps up the media player control and provides design time support for the control through a collection of properties used to set some of the various properties used by the media player control.

The only reference added to the project, aside from the defaults, was System. Design.  System. Design is necessary to support some of the design time functionality exposed by the control such as using the URL editor with the file path property of the control.



Figure 3:  Adding System Design to the Custom Control References.

The imports, namespace, and class declarations are as follows:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace WebVideo
{ 
    [DefaultProperty("FilePath")]

    [ToolboxData("<{0}:WVC runat=server></{0}:WVC>")]

    public class WVC : WebControl

{

Note that in the class declaration, the default property is set to "FilePath"; this property is used to set the URL to the actual media file to be played by the player control. By setting this value to "FIlePath", whenever the developer adds the control to a web page, the property grid will focus on this property first.

After the class declaration, the next block of code is used to declare a set of local member variables, each of which shall be controlled by a related property:

#region Declarations
private string mFilePath;
private bool mShowStatusBar;
private bool mShowControls;
private bool mShowPositionControls;
private bool mShowTracker;
#endregion

Following these member variable declarations, the next region of code shall be used to provide the code for the properties which will be used to set and get the values for each of the member variables (note the attributes provided for each property; the description provided is used in the property grid to describe what each property does):

#region Properties
[Category("File URL")]
[Browsable(true)]
[Description("Set path to source file.")]
[Editor(typeof(System.Web.UI.Design.UrlEditor), 
typeof(System.Drawing.Design.UITypeEditor))]
public string FilePath
{
    get
    {
        return mFilePath;
    }

    set

    {

        if (value == string.Empty)

        {

            mFilePath = string.Empty;

        }

        else

         {

            int tilde = -1;

            tilde = value.IndexOf('~');

            if (tilde != -1)

             {

                  mFilePath = value.Substring((tilde + 2)).Trim();

             }

            else

            {

                mFilePath = value;

            }

        }

    }

}   // end FilePath property

  

[Category("Media Player")]

[Browsable(true)]

[Description("Show or hide the tracker.")]

public bool ShowTracker

{

    get

    {

        return mShowTracker;

    }

     set

     {

         mShowTracker = value;

     }

}

  

[Category("Media Player")]

[Browsable(true)]

[Description("Show or hide the position controls.")]

public bool ShowPositionControls

{

    get

    {

        return mShowPositionControls;

    }

    set

    {

        mShowPositionControls = value;

    }

}

  

[Category("Media Player")]

[Browsable(true)]

[Description("Show or hide the controls.")]

public bool ShowControls

{

    get

    {

        return mShowControls;

    }

    set

    {

        mShowControls = value;

    }

}

  

[Category("Media Player")]

[Browsable(true)]

[Description("Show or hide the status bar.")]

public bool ShowStatusBar

{

    get

    {

        return mShowStatusBar;

    }

    set

    {

         mShowStatusBar = value;

    }

}

#endregion

 

The last region of code contained in the custom control is that used to actually render the control:

#region "Rendering"
protected override void RenderContents(HtmlTextWriter writer)
{
    try
    {
        StringBuilder sb = new StringBuilder();
        sb.Append("<object classid=clsid:22D6F312-B0F6-11D0-94AB-
        0080C74C7E95 ");
        sb.Append("codebase=http://activex.microsoft.com/activex/
        controls/mplayer/en/nsmp2inf.cab#Version=
        5,1,52,701 Width = " + Width.Value.ToString() + " Height = " 
        + Height.Value.ToString() + "type=application/x-oleobject 
        align=absmiddle");
        sb.Append("standby='Loading Microsoft+reg; Windows+reg; Media 
        Player components...' id=mp1 /> ");
        sb.Append("<param name=FileName value=" + FilePath.ToString() 
        + "> ");
        sb.Append("<param name=ShowStatusBar value="
        ShowStatusBar.ToString() + "> ");
        sb.Append("<param name=ShowPositionControls value="
        ShowPositionControls.ToString() + "> ");
        sb.Append("<param name=ShowTracker value="
        ShowTracker.ToString() + "> ");
        sb.Append("<param name=ShowControls value="
        ShowControls.ToString() + "> ");
        sb.Append("<embed src=" + FilePath.ToString() + " ");
        sb.Append("pluginspage=http://www.microsoft.com/
        Windows/MediaPlayer type=application/x-mplayer2 ");
        sb.Append("Width = " + Width.Value.ToString() + " ");
        sb.Append("Height = " + Height.Value.ToString());
        sb.Append(" /></embed></object>");
 
       writer.RenderBeginTag(HtmlTextWriterTag.Div);
        writer.Write(sb.ToString());
        writer.RenderEndTag();
    }

    catch

    {

        // with no properties set, this will render "Display PDF

        // Control" in a

        // a box on the page

        writer.RenderBeginTag(HtmlTextWriterTag.Div);

        writer.Write("Display WVC Control");

        writer.RenderEndTag();

    }  // end try-catch

}   // end RenderContents

#endregion

To render the control, the "RenderContents" method is overridden. Within a try-catch block, the contents of the control are defined using a string builder; once defined, the string builder is converted to a string and dropped within the beginning and ending div tags. Once the control is added to a page, the control will be contained within a div. As far as the string builder goes, it sets the class ID of the object to point to the ID of the media player control, sets the code base, and then sets each of the parameter values used in the control to configure the media player.

In the catch portion of the try-catch block, if the control errors the words, "Display WVC Control" will appear on the page. This will happen if the file path property is not set (which it will not be when the control is dragged onto a form). In order to prevent the lack of a file name causing an error, the control is rendered differently (and without the media player control) as soon as it is added to the form.

Since the control is wrapped in a div; any of the properties also available to a div are also added to the control's property grid (for example, one may set the border style, background color, etc. of the control because those properties are available to the div).

The Code:  Test Web WVC

The demonstration web project is comprised of two web pages; one page, the default, demonstrates a single control in use. It also uses a drop down list control set to auto postback; the list contains a set of items with the value property pointing to a valid source of media. When the drop down list is used, the media player's file path is set to point to the new source of media. The second page contains four controls each set to a different source and with the control panel options enabled. The code is trivial and is not reported in this document.



Figure 4:  Demo Page One.



Figure 5:  Demo Page Two.

Summary :

By wrapping up the media player control in a custom web control, it becomes very easy to embed or even dynamically embed the controls into web pages. By moving the code required to display a media player into the custom control, it is no longer to code out the content into each page using the controls.

Comment Request!
Thank you for reading this post. Please post your feedback, question, or comments about this post Here.
Login to add your contents and source code to this article
 [Top] Rate this article
 
 About the author
 
Scott Lysle
Freelance software developer residing in Alabama. Bachelors, Masters Degrees from Wichita State University. I spent the first half of my career working on aircraft controls and displays and in that time I worked on the cockpits for the OH-58 AHIP, the AH-1W, the V-22, the F-22, the C-130J, the C-5 AMP, AWACS, JPATS, and a few others. Since 1997 I have been largely involved with Windows and web development, GIS application development, consumer electronics development (embedded linux/java), but still sometimes work on aircraft and military projects, the most recent of which was the presidential transport helicopter. I tend to work primarily with C/C++, Java, VB, and C#.
Looking for C# Consulting?
C# Consulting is founded in 2002 by the founders of C# Corner. Unlike a traditional consulting company, our consultants are well-known experts in .NET and many of them are MVPs, authors, and trainers. We specialize in Microsoft .NET development and utilize Agile Development and Extreme Programming practices to provide fast pace quick turnaround results. Our software development model is a mix of Agile Development, traditional SDLC, and Waterfall models.
Click here to learn more about C# Consulting.
 
Introducing MaxV - one click. infinite control. Hyper-V Hosting from MaximumASP.
Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
Dynamic PDF
ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
Discover the Top 5 .NET Memory Management Fundamentals
To write the best .NET code, you need to know exactly how the .NET framework really manages memory. Ricky Leeks presents the Top 5 fundamental facts of .NET memory management. Learn more.
Nevron Chart for .NET 2010.1 Now Available
The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
ASP.NET 4 Hosting
Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites – Click Here!
 
 Post a Feedback, Comment, or Question about this article
Subject:
Comment:
DevExpress Free UI Controls
Become a Sponsor
 Comments
Display Video using a C# Web Custom Control by Jack On June 20, 2007
Sweet, Can I add this control to a repeater and access it in the ItemDataBound event? You should post this to spikesolutions.net
Reply | Email | Modify 
HELP NEEDED by r On July 3, 2007
Hi Scott, Have gone through the article which displays video using a C# Web Custom Control, I have been doing the R&D almost for 3 weeks always got stuck in playlist area. Mentioned below are the steps involved: 1) I have alist of videos/audios (of any format 3gp,rm,mov,.mpeg|.mp3|.m3u|.aac|.aif|.iff|.mid|.midi|.mpa|.ra|.ram|.wav|.wma .wmv|.mpg|.3gp|.asf|.asx|.avi|.mov|.mp4|.qt|.rm|.swf|) 2)User selects any of this files and clicks on play button 3)so accordingly i need to dipaly the video / audio file 4)Also he has the option to include files in playlist which will execute the files one after the other. Now my problem is with WMPlayer u can run some specific files/Quicktime can run some specific files/Real player can run some specific files. Need to know which player to use so that it can deal with maximum of formats. Alos it would be great if you could assist me achieving the desitred output since you already have knowledge. Any help will be greatly appreciated. Luking ahead.... Reagrds, Rupali
Reply | Email | Modify 
thanks for info by rushabh On August 30, 2007
Hi scott!i have found this info.very useful.
Reply | Email | Modify 
How do connect the video to my USB camera by Chun On September 14, 2007
Hi Scott: This is the best example for playing video. Thank you for the contribution. I'd like to feed real time video from my USB camera or IP camera. Please advise, Thank in advance. Chun Zhang
Reply | Email | Modify 
Display Video by Manish On October 18, 2007
Hi Scott, Good article but i have one problem with this control, This control works fine in mojila but in IE version less than 6.0 ,it doesn't display the video during scrolling of the page. Please help.
Reply | Email | Modify 
Great Work! Thanks by Kamran On October 31, 2007
absoulutly great work done
Reply | Email | Modify 
Help Need by Sudheer Reddy On December 12, 2007
After i studied this article, i thought it solves my problem becaz am also searching how to play a video files in Webbrowser using Asp.net & C#.net. But in this article i not found "Test Web WVC" Web part code. I need that code to implement in my application. Please provide that code to me, it's very help to me.
Reply | Email | Modify 
i can download wvc.zip by kalpesh On January 25, 2008
you have given the download option to download but i cannot download it
Reply | Email | Modify 
Re: i can download wvc.zip by Scott On January 25, 2008
If you have a problem with the download, send me an email at scottlysle@cableone.net and I will email you a copy of the article and project.
Reply | Email | Modify 
one file missing on WVC.zip folder by sudarshan On February 4, 2008
Hi one asp.net file named WebCams.aspx is missing. Please help where can i find the same... Thanks in Advance.
Reply | Email | Modify 
Re: one file missing on WVC.zip folder by irshad On January 7, 2009

HI Sudarshan

        I also need the webcam.aspx file, have you find this file ? if you have then plz send to me on irshad.don@gmail.com

Reply | Email | Modify 
not work in firefox by Ahmed On October 27, 2008
please tell me why the control worked well in IE but not worked in FireFox
Reply | Email | Modify 
Re: not work in firefox by Scott On November 5, 2008

You need to install the firebox adobe flash player plugin.

http://www.macromedia.com/software/flash/about/

Reply | Email | Modify 
Nice by Dale On December 2, 2008
Simple and elegant. Good use of extension.
Reply | Email | Modify 
Test WVC isn;t found by june On December 16, 2008
I have downloaded WVC.zip, However, TestWVC isn't found. I really need help for my project Any advice or help? Thanks (:
Reply | Email | Modify 
Re: Test WVC isn;t found by Scott On December 17, 2008

Sure; email me at scottlysle@cableone.net and I will send you a copy.

Scott

Reply | Email | Modify 
controlling the video by Jerry On January 9, 2009
great code, thx! two questions: 1. is it possible to use the control but not have the video play until the user hits the play button? currently, the video automatically loads and plays when the page is loaded. this causes a problem, because i use three instances of the control on a page, and they all start playing at once. 2. can the contol pay other types of media, or is it limited to wmv files? thanks again!
Reply | Email | Modify 
Re: controlling the video by Scott On January 10, 2009

To do what you want to do with the control, add a new class to the control project, call it viewer, open the code window and past in this code:

Once done, use the viewer control in lieu of the original version and set the autostart property to false and set the UI mode property to full or mini.  The control will come up paused, the user can click the play button to start it off.

As for files types, you can play any video file type compatible with the Windows Media Player and you can also stream media to the player (asf).

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Text;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Web.UI.Design;

 

namespace WVC

{

 

    [DefaultProperty("FilePath")]

    [ToolboxData("<{0}:Viewer runat=server></{0}:Viewer>")]

    public class Viewer : WebControl

    {

        #region Declarations

 

        private string mFilePath;

        private UIModeType mUImode;

        private bool mAutoStart;

 

        public enum UIModeType

        {

            None,

            Mini,

            Full

        }

 

        #endregion

 

 

 

        #region Properties

 

        [Category("File URL")]

        [Browsable(true)]

        [Description("Set path to source file.")]

        [Editor(typeof(System.Web.UI.Design.UrlEditor), typeof(System.Drawing.Design.UITypeEditor))]

        public string FilePath

        {

            get

            {

                return mFilePath;

            }

            set

            {

                if (value == string.Empty)

                {

                    mFilePath = string.Empty;

                }

                else

                {

                    int tilde = -1;

                    tilde = value.IndexOf('~');

                    if (tilde != -1)

                    {

                        mFilePath = value.Substring((tilde + 2)).Trim();

                    }

                    else

                    {

                        mFilePath = value;

                    }

                }

            }

        }   // end FilePath property

 

 

        [Category("Media Player")]

        [Browsable(true)]

        [Description("Set the UI Mode.")]

        public UIModeType UIMode

        {

            get

            {

                return mUImode;

            }

            set

            {

                mUImode = value;

            }

        }

 

 

        [Category("Media Player")]

        [Browsable(true)]

        [Description("Start Video On Load.")]

        public bool AutoStart

        {

            get

            {

                return mAutoStart;

            }

            set

            {

                mAutoStart = value;

            }

        }

 

 

 

        #endregion

 

 

 

        #region "Rendering"

 

        protected override void RenderContents(HtmlTextWriter writer)

        {

            try

            {

                StringBuilder sb = new StringBuilder();

                sb.Append("<object id=viewer width=" + Width.Value.ToString() + " height=" + Height.Value.ToString() );

                sb.Append("<object classid=clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6 " );

                sb.Append("type=application/x-oleobject> " );

                sb.Append("<param name=url value=" + FilePath.ToString() + "> ");

                sb.Append("<param name=SendPlayStateChangeEvents value=True > " );

                sb.Append("<param name=autostart value=" + AutoStart.ToString() + ">" );

                sb.Append("<param name=uiMode value=full>" );

                sb.Append("<param name=PlayCount value=9999>" );

                sb.Append("</object>");

 

                writer.RenderBeginTag(HtmlTextWriterTag.Div);

                writer.Write(sb.ToString());

                writer.RenderEndTag();

            }

            catch

            {

                // with no properties set, this will render "Display PDF Control" in a

                // a box on the page

                writer.RenderBeginTag(HtmlTextWriterTag.Div);

                writer.Write("Display WVT Control");

                writer.RenderEndTag();

            }  // end try-catch

        }   // end RenderContents

 

 

 

        #endregion

    }

}

 

 

Reply | Email | Modify 
Re: Re: controlling the video by jie_caish On January 20, 2010
Abosolutely great works. I just met one problem. The drop down menu on our webpage always display behind this video player. Do you know how to fix this problem. I tried to add wmode = opaque in the class. It doesn't work. Need your help! Thanks.
Reply | Email | Modify 
Re: Re: controlling the video by Irfan On May 23, 2011
Hi, i have created viewer.cs files put all the given code. i build the project and copy webvideo.dll in my project library but i can not get reference to <cc1:viewer ...... . pls tell how to do that. i have also check webvideo.dll not update its still showing 2007 date ad modified date. where i am doing wrong thx.
Reply | Email | Modify 
thank you but by hassan On January 10, 2009
i tried to display http://www.youtube.com/watch?v=9lbegiKusJ0 it did not work i dont know why
Reply | Email | Modify 
Re: thank you but by Scott On January 11, 2009

Hassan:

Look at the location of the file in the embed object tag in youtube and use that rather than the url for the page; in this case, embed: 

http://www.youtube.com/v/9lbegiKusJ0&hl=en&fs=1

Reply | Email | Modify 
thx by Binabic On March 23, 2009
thx, rate 5
Reply | Email | Modify 
Very Good! by chen On March 23, 2009
thanks!i learn from a lot of this !
Reply | Email | Modify 
Re: Very Good! by daz On March 25, 2009
not working on IE 8
No video is showing or dis[playing
Reply | Email | Modify 
question by deepak On March 25, 2009
its really a good code.. But I got 4 errors in the code Error 1 'ASP.default_aspx.GetTypeHashCode()': no suitable method found to override c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\test3\e032b6b1\e59e0fac\App_Web_xspl14eq.0.cs 289 Error 2 'ASP.default_aspx.ProcessRequest(System.Web.HttpContext)': no suitable method found to override c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\test3\e032b6b1\e59e0fac\App_Web_xspl14eq.0.cs 293 Error 3 'ASP.default_aspx' does not implement interface member 'System.Web.IHttpHandler.IsReusable' c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\test3\e032b6b1\e59e0fac\App_Web_xspl14eq.0.cs 129 Error 4 Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl). C:\Documents and Settings\Ram\Desktop\test3\Default.aspx.cs 1 33 C:\...\test3\ pls help me to resolve these errors...
Reply | Email | Modify 
Re: question by Scott On March 26, 2009
Check the code behind on the default page; my first guess is that it sounds like you are not inheriting from Page:

public partial class _Default : System.Web.UI.Page

Take a look at that and see what you have there.

Reply | Email | Modify 
Controls Are Not Appearing by syed ahmed On March 26, 2009
Hi Scott this is the great stuff which i am looking for for me the problem is controls[play,progress bar---] are not appearing when my video clip is played even though i set its propertied to true
Reply | Email | Modify 
Controls are not Appearing by syed ahmed On March 26, 2009
Hi Scott this the great stuff which i was looking for, for me the problem is video is coming but its not displaying its controls[play,progress bar---] even though i set its properties to true kindly forward me whats the problem to syedahmed4u21@gmail.com and thanks a lot.
Reply | Email | Modify 
Re: Controls are not Appearing by Scott On March 26, 2009
I will send you something.
Reply | Email | Modify 
Re: Re: Controls are not Appearing by daz On March 26, 2009
Hello
this is my email.. can you send me too.the control is appearing but there is no video..
buckeyen1@hotmail.com
Thanks and great job i guess
Reply | Email | Modify 
its not taking the filepath when i am giving it through code like by syed ahmed On April 8, 2009
its not taking the filepath when i am giving it through c# code like WebVideo.wvc obj=new WebVideo.wvc(); obj.FilePath="path of the video"; its not taking it please respond me to my mail id syedahmed4u21@gmail.com
Reply | Email | Modify 
please help me out by syed ahmed On April 9, 2009
its not taking the filepath when i am giving it through c# code like WebVideo.wvc obj=new WebVideo.wvc(); obj.FilePath="path of the video"; its not taking it please respond me to my mail id syedahmed4u21@gmail.com
Reply | Email | Modify 
Re: please help me out by Scott On April 15, 2009
I sent you an email.
Reply | Email | Modify 
Thank and very useful content by surasak On April 24, 2009
Hi Scott, Thank for shared.
Reply | Email | Modify 
How can I test to see if Media player is installed on the clients PC? by Mike On June 5, 2009
The video does play if Media Player isn't installed.
How can I test to see if Media player is installed on the clients PC?
And prompt them to install it.
Reply | Email | Modify 
hey m impressed wid ur job bro but as the zip does not contain full content plzz send me WVC.zip to my id soumyaroy5587@yahoo.in by soumya On August 12, 2009
hey m impressed wid ur job bro i hav found dis info very useful but as the zip does not hav full content send me WVC.zip to my  id soumyaroy5587@yahoo.in

thanks in advance , soumya
Reply | Email | Modify 
sdf by Kamal On August 20, 2009
asdf
Reply | Email | Modify 
Re: David by Julu On June 3, 2010
I'm also looking for the VB code. I really need help with the VB code and will be happy if anyone can help us
Reply | Email | Modify 
VB 2008 by David On August 24, 2009
I thought I could convert this to VB2008 but I can't.  Does anyone have this code in VB?

Thanks in advance.

David
Reply | Email | Modify 
Good Article by twss On October 13, 2009
It very nice Article and very useful code. Great Man!!!

Reply | Email | Modify 
Webcams page by suresh On November 20, 2009
Hi its good article , but i am unable to find WebCams.aspx page can any one give information where to download
Reply | Email | Modify 
good by awais On January 16, 2010
gooooooooood  work
Reply | Email | Modify 
very nice article by rajendra On April 22, 2010

Here how could i enable full sreen button for the end user. and even the player is not playing the flv content. may be the codecs need to be downloaded.

any help

Reply | Email | Modify 
Livw view of video by Sohail On May 3, 2010
Hi, I want to diplsy video of my web cam place at my home, and i want to display live view of my web came  on my web application using asp.net c#. kindly guid me.
If you ive me source code i will really thankful to you.
Sohail
Reply | Email | Modify 
VB Code by Julu On June 3, 2010
Thanks Scott...
Does anyone has the VB version for this? Also all the contents are not included in the zip file.

Reply | Email | Modify 
Not getting all files in WVC.zip folder by anamika On July 23, 2010
hi,i tried to build webvideo project but its not running properly.its not displaying anything.i hav not understand many things like methods u r creating in WVC.cs , where i call these methods.In aspx page we are not doing anything then how can it will display the mediaplay control.could u please define me what  RenderContents method is doing?whether i hav to call this in my aspx page ,if yes then how pls. send me the code.
pls help me how can i run this code.thanks in advance.
Reply | Email | Modify 
Re: Not getting all files in WVC.zip folder by Rajesh On August 23, 2010
<embed src="file path" id="vedioData" hidden="false" height="260px" width="300px"
autostart="false" type="video/avi" loop="false" enablecontextmenu="True" stretchtofit="False" enabled="True" fullscreen="False"></embed>



This is working perfectly in IE,Firefox and safari tested.....
Reply | Email | Modify 
Re: Re: Not getting all files in WVC.zip folder by Emma On August 27, 2010
wow, that embed line works really well, thanks
all the others i've tried never work
Reply | Email | Modify 
Not getting Webcams(Second web page) by Rajesh On August 23, 2010
Dear all,

Can i get webcams.aspx page from any of you..

Thanks in advance..


rajeshvyas2005@gmail.com
Reply | Email | Modify 
Good article by Mahesh On August 25, 2010
Very useful.
Reply | Email | Modify 
THnaks Mate by suranga On October 5, 2010
Thank you for your great program !!!!!111

helped us a lot
thnks
Reply | Email | Modify 
any video can play in this by Koteswararao On October 13, 2010
can i play any type of videos will play like .swf and avi and wmv and .rm files
Reply | Email | Modify 
can someone share the webcams.aspx file? by gina On November 8, 2010
here is my email:gina.zhang@gmail.com

Many thanks!
Reply | Email | Modify 
Video by mehul On April 22, 2011
This is not work in Firefox and Crome. its only works in IE. What'll sollution for that?? Thanks in Advance.
Reply | Email | Modify 
need help to add video/audio on my asp.net web page by gharshadg On July 15, 2011
I like to have audio/video functionality on my web page with maximum format. Can any one help me out, i stuck in between coding from 1 week. gr8 if send code or give solution my id gharshadg@hotmail.com
Reply | Email | Modify 
Help needed to display video from IP cameras on webpage by Dushyant On September 6, 2011
Hi Scott, Thanks for such a useful code. I googled much but didn't find useful solution. Thanks for the post. But I have 1 question and 1 requirement. Request you to pls mail me the complete code to dush71816@gmail.com as file provided here by you doesn't contains webcams.aspx file. Secondly I want to ask that can I use the video from the device called DVR. I have attached a DVR and attach video cams to it on IP provided by my ISP. I registered at www.dyndns.com to get a host name which directs to the ip of system where DVR is used. I access the video in my browser through the host name provided by dyndns (say-http:\\dush.dyndns.com). the video appears on my browser. Pls tell me that can i use that url to show video in this control.
Reply | Email | Modify 
video uppload webpage using asp.net c# version 3.0 by raja On December 13, 2011
please help me
Reply | Email | Modify 
6 Months Free & No Setup Fees ASP.NET Hosting!
 © 2012  contents copyright of their authors. Rest everything copyright Mindcracker. All rights reserved.