473,386 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

how to detect webcam in asp.net

Hi to all

I have done one webcam project which will supports view live webcam images.I am using "ENTER USB 2.0" locally its working fine..when i upload it to the webserver and test with client browser..Its not working..its getting errors as "No devices Found"..is there any server settings to detect the webcams?..

How can we detect any type of webcams in asp.net..?Or is there any activeX plug-ins for detecting the webcam on client browsers..

Its very important to me..please share with me..if you have any ideas?

thanks in advance..



Regards

Balu Munugoti
Nov 27 '07 #1
22 16741
Plater
7,872 Expert 4TB
Do you want to access cameras on the client or on the server?
If on the client, you will need an activeX object (or some other object; flash, java, whatever) to access the cameras.
For the server you just need a way to convert the camera images to a picture
Nov 27 '07 #2
thank you so much for your reply..
actually my project is onlinelessons..profesor can teach music classes from any where using attached livewebcam device in the website..where students can see this livewebcam video from the site and they can learn the classes..
i have developed capturing video stream and display in the webpage(images will change every millisecond)..its working fine locally..but when i upload it to the server..its not detecting the webcam device..
see this link : http://76.76.101.10/Broadcast.aspx
I am not sure how to detect the device remotly..
if you have any idea please share with me..
again i am very thankful for your reply

thanks in advance
Nov 27 '07 #3
Frinavale
9,735 Expert Mod 8TB
thank you so much for your reply..
actually my project is onlinelessons..profesor can teach music classes from any where using attached livewebcam device in the website..where students can see this livewebcam video from the site and they can learn the classes..
i have developed capturing video stream and display in the webpage(images will change every millisecond)..its working fine locally..but when i upload it to the server..its not detecting the webcam device..
see this link : http://76.76.101.10/Broadcast.aspx
I am not sure how to detect the device remotly..
if you have any idea please share with me..
again i am very thankful for your reply

thanks in advance
You aren't going to be able to do this through Web Pages without using an ActiveX. It's not a very good idea to develop ActiveXs because they are considered unsafe and they also limit your users to IE.

Have you considered developing a desktop application that consumes a web service for the professor to use instead?

Have the desktop application call the web service to upload the video and have the asp.net application call the same web service to display the video in the web pages....

You could even run this application off of a USB stick that the prof would carry with them...then you know that students wont be able to abuse this service because it's only distributed to the professors...

Just a thought.
Nov 27 '07 #4
Plater
7,872 Expert 4TB
At that rate though, you might as well just use an already made web-cam software, like webcamXP or something.
Nov 27 '07 #5
thank you for your great reply..
i am using camserver component for capturing the webcam stream..
locally its working fine.but when i upload it to the webserver its not detecting the client machine device..
i need plugins or any activex controls for detecting the device in the webserver from client machine.
profesor no need to use any desktop applications..he can teach from anywhere using internet..when prefesor attach the webcam device, its automatically install the plugins and detect this device to the server..
if you have any idea for my problem..please share with me.
if you want any further clarification,please inform me..
thanks in advance..

Regards
Balu Munugoti,India
Nov 29 '07 #6
Plater
7,872 Expert 4TB
If you want to have the device automatically notify the server that a camera has been plugged in, you're going to either need to write custom device drivers for the camera, or have a service running on the computer to detect when a camera is plugged in and send the signal to the server.
Nov 29 '07 #7
Frinavale
9,735 Expert Mod 8TB
If you want to have the device automatically notify the server that a camera has been plugged in, you're going to either need to write custom device drivers for the camera, or have a service running on the computer to detect when a camera is plugged in and send the signal to the server.
Exactly what I was trying to get at...you just said it better Plater :)
Nov 29 '07 #8
thank you for your great reply..
still i am getting the same problem..
when i try website on my system..i am getting the webcam image.but in other system won't..
i think we need to install windows media encoder or any plugins for that ..
If you have any idea,please feel free to share with me..

good luck today.

Regards
Balu Munugoti
Nov 30 '07 #9
Can you please give me the basic idea for how to detect the web cam of client..
Jan 28 '08 #10
Hello Friends..
How to detect the webcam from asp.net application..??

how to use ActiveX object in that can you please provide me some basic code for doing that....
Jan 29 '08 #11
Frinavale
9,735 Expert Mod 8TB
Hello Friends..
How to detect the webcam from asp.net application..??

how to use ActiveX object in that can you please provide me some basic code for doing that....
What have you tried so far?
Have you tried to research ActiveX controls?

-Frinny
Jan 29 '08 #12
What have you tried so far?
Have you tried to research ActiveX controls?

-Frinny

Thanks for your quick replay..

Actually i came to know that ActiveX control is using for that but i don't know about ActiveX control much..
can you please give me some reference for getting basic idea for ActiveX control...
Mean how to use it and how to implement it in our web application..
Jan 30 '08 #13
Frinavale
9,735 Expert Mod 8TB
Thanks for your quick replay..

Actually i came to know that ActiveX control is using for that but i don't know about ActiveX control much..
can you please give me some reference for getting basic idea for ActiveX control...
Mean how to use it and how to implement it in our web application..
It's kind of complicated....
ActiveX is basically a term that Microsoft came up with for certain object orient programming tools. It is mainly based on COM technology and relies on the Registry to look up other components (... you should look up how this works)...

You should really research ActiveX on your own because there's a lot to cover..

The main thing to know is that ActiveX are components that can be re-used in many applications. They are self-sufficient programs that run and do their thing. They integrate into other programs to serve a purpose.

In the Web Environment:
  • They are (recall: small programs) downloaded by the browser and run on the client's computer
  • They only work with Internet Explorer.
  • They are able to access anything on the computer that they have been downloaded to (and run on)
  • They are often considered dangerous because they can be downloaded and executed from the Net and can contain malicious code (such as a virus)...so they may be blocked by your end user.

So, in order for your ASPX web application to be able to use the client computer's devices (such as the web cam) you would write an ActiveX control that communicates with the device and reports back to the Web Application....

I would recommend creating a True ActiveX control (these are not created with the .NET technology...use VB6 or C++ or something) to make it easier to get this working. There's a lot of security and trust issues regarding .NET "ActiveX" controls (since .NET has more security wrapped around it and Windows doesn't trust anything coming from the Internet).

So I hope this gets you started.
I strongly recommend researching AcitveX and COM on your own before you begin to code anything.

-Frinny
Jan 31 '08 #14
It's kind of complicated....
ActiveX is basically a term that Microsoft came up with for certain object orient programming tools. It is mainly based on COM technology and relies on the Registry to look up other components (... you should look up how this works)...

You should really research ActiveX on your own because there's a lot to cover..

The main thing to know is that ActiveX are components that can be re-used in many applications. They are self-sufficient programs that run and do their thing. They integrate into other programs to serve a purpose.

In the Web Environment:
  • They are (recall: small programs) downloaded by the browser and run on the client's computer
  • They only work with Internet Explorer.
  • They are able to access anything on the computer that they have been downloaded to (and run on)
  • They are often considered dangerous because they can be downloaded and executed from the Net and can contain malicious code (such as a virus)...so they may be blocked by your end user.

So, in order for your ASPX web application to be able to use the client computer's devices (such as the web cam) you would write an ActiveX control that communicates with the device and reports back to the Web Application....

I would recommend creating a True ActiveX control (these are not created with the .NET technology...use VB6 or C++ or something) to make it easier to get this working. There's a lot of security and trust issues regarding .NET "ActiveX" controls (since .NET has more security wrapped around it and Windows doesn't trust anything coming from the Internet).

So I hope this gets you started.
I strongly recommend researching AcitveX and COM on your own before you begin to code anything.

-Frinny
Is there any other way except ActiveX control..Becoz if it is only workng on IE than what to do for ither browser...

Please suggest me some way to impliment it...
Feb 6 '08 #15
Frinavale
9,735 Expert Mod 8TB
Is there any other way except ActiveX control..Becoz if it is only workng on IE than what to do for ither browser...

Please suggest me some way to impliment it...
There is no other way to access devices on the client's computer.
Also, the person will have to have a web camera that your ActiveX control knows the drivers for.

-Frinny
Feb 6 '08 #16
Plater
7,872 Expert 4TB
You can use a java applet to accomplish this task, they will work in both FF and IE
Feb 6 '08 #17
Frinavale
9,735 Expert Mod 8TB
You can use a java applet to accomplish this task, they will work in both FF and IE
I completely forgot about Java applets :)
Feb 6 '08 #18
You can use a java applet to accomplish this task, they will work in both FF and IE
Thanks for your kindly approch towards this..

Any good article or example for use java applate for a same...So, i can get familier with it..
Feb 7 '08 #19
You can use a java applet to accomplish this task, they will work in both FF and IE
Can i use java applate with asp.net????
Feb 7 '08 #20
I completely forgot about Java applets :)
Can you please suggest me any way to add referance to activeX Class library..

I mean i am creating my own active x object and i need to add one referance to add in tha class library..

Referance is added succesfully but when i am trying to make regester that active x with command prompt using "csc /t:library AClass.cs" than getting error path for WIA is not fount are you missing any assembly referance..
Feb 7 '08 #21
Frinavale
9,735 Expert Mod 8TB
Can you please suggest me any way to add referance to activeX Class library..

I mean i am creating my own active x object and i need to add one referance to add in tha class library..

Referance is added succesfully but when i am trying to make regester that active x with command prompt using "csc /t:library AClass.cs" than getting error path for WIA is not fount are you missing any assembly referance..
If I were you, I'd try to first read a text file with the ActiveX control.
Then after I was able to do that I would start trying to get the web cam stuff working.

I'm not sure what you are trying to register. Really your ActiveX control should be a self-contained program that Registers Itself.

Your question is pretty vague so if you need more help you're going to have to post the section of code that's causing the problem or else explain the problem in more detail.

Thanks

-Frinny
Feb 8 '08 #22
If I were you, I'd try to first read a text file with the ActiveX control.
Then after I was able to do that I would start trying to get the web cam stuff working.

I'm not sure what you are trying to register. Really your ActiveX control should be a self-contained program that Registers Itself.

Your question is pretty vague so if you need more help you're going to have to post the section of code that's causing the problem or else explain the problem in more detail.

Thanks

-Frinny

Thanks for your reply..
i mean to ask that how to add referance dll when we want to make a dll..
Hmm any ways it is solved now thanks..
Feb 9 '08 #23

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Kelowna | last post by:
Yes... Its a server os... i kno! i hav xp yea but tis system is for screwing with.. Im sure theres alot of ppl here tat kno tis stuff inside-out! im doing this for educational purposes so dont give...
0
by: Elp | last post by:
Hi, We have developped an client application in C#. Among other things, this application should display in 4 different windows (or 4 different panels in the same window), 4 webcam streams (web...
1
by: charlies224 | last post by:
Hi, I am trying to write an application involving taking pictures with a Web Camera in VB .NET. I am just wondering how I can detect and control the web camera within my application. The web...
1
by: Mamatha | last post by:
Hi, I have a video capturing with motion detection application in C#.NET.In that application i detected all resources i.e video source and audion source thourgh motion detection,now i want to...
3
by: DillonCzerny | last post by:
Hello Many times I see a lot of people post webcam videos on google video or youtube. I wonder how do they record it from those people’s webcam? I have a fake webcam and I want to record some...
3
by: ashish1985s | last post by:
Hi Friends... please do me some favour and give me idea for How to detect the WEbCam of client machine.. I want only status that whether client machine have attached the webcam or not.. ...
13
by: Berco Beute | last post by:
I've been trying to access my webcam using Python, but I failed miserably. The camera works fine under Ubuntu (using camora and skype), but I am unable to get WebCamSpy or libfg to access my...
3
by: Charming12 | last post by:
Hi All, I have to deal with some devices like Pen Tablet, WebCam etc to work for a product. Now my Problem is some times while working , I am not able to tell whether a certain device is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.