hello, I try to use directx.capture in my web application, I use
visual studio web developper 2005 express with c# for code behind.
I can list the webcam available on computer, no probem,
my probem is to capture and display webcam in a control
I tried like this:
protected void Page_Load(objec t sender, EventArgs e)
{
Filters filters = new Filters();
Capture capture = new Capture(filters .VideoInputDevi ces[0],
filters.AudioIn putDevices[0]);
capture.VideoCo mpressor = filters.VideoCo mpressors[0];
capture.AudioCo mpressor = filters.AudioCo mpressors[0];
capture.FrameRa te = 29.997; // NTSC
capture.FrameSi ze = new Size(640, 480); // 640x480
capture.AudioSa mplingRate = 44100; // 44.1 kHz
capture.AudioSa mpleSize = 16; // 16-bit
//capture.AudioCh annels = 1;
capture.Preview Window = PanelVideo;
PanelVideo is a System.Web.UI.W ebControls.Pane l
it doesnt work because capture.Preview Window want
System.windows. forms.control
I want when the user come on my webpage, he can see his webcam, take a
shoot and send it to someone,
someone has any idea?
thanks a lot 2 7317
Page_Load runs at the server; you can't get hold of the client's
devices in this way; and likewise, you can't used managed directx from
clientscript (javascript/jscript etc).
I suspect you are developing with the web-server on your desktop
(perhaps via "cassini"), but this is not realistic. You'd need perhaps
some a smart-client to do this (i.e. an exe downloaded to the client
and executed locally) - but then you will run into trust issues.
Not a fix, but an explanation at least...
Marc
yes I understand, you are right, I was thinking I successfully list
the device but it's because server and client on same machine.
thank you, but now it seems more complicated.. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Woojtos |
last post by:
Hi,
I have a problem. I don't know how to create lowpass, highpass and
bandpass filter. I capture the sound using CaptureBuffer from DirectX
library. Then I create memory buffor as follow:
int BUFFER_SIZE = 100000;
byte data = (byte)captureBuffer.Read(0 , typeof(byte),
LockFlag.None, BUFFER_SIZE );
MemoryStream stream = new...
|
by: Johann Blake |
last post by:
Hi,
I want to capture a signal from the sound card (via microphone or line
input) using the DirectX.Sound.CaptureBuffer class. One of the
properties that can be setup prior to capturing is specifying that the
buffer is continous. This means that once the buffer is filled with
data, it wraps around and continues filling the buffer.
Where...
|
by: gregory_may |
last post by:
Does anyone know if anything is in the works to make DirectX work better
with .Net?
Thanks!
|
by: Friskusen |
last post by:
I'm trying to play/capture sound with objects in the
Microsoft.DirectX.DirectSound namespace..
Trying to create a new Buffer object generates the following
exception:
Anybody know whats going on ?
|
by: Jessica Weiner |
last post by:
I am writing an application in C# which need to plot graphs and simple
shapes (polygons, circles, squares etc). Which library is better for this
purpose and why? Thanks.
| |
by: Daniel |
last post by:
Hey guys
Anyone know if it is possible to add a button at design time and place it
over the top of a directx window?
For example checkboxes, standard buttons, menus etc?
If so how?
|
by: Andrew Bullock |
last post by:
Hi,
I'm completely new to DirectX in CS, so if my question is too advanced
for a simple answer, could someone point me at some good tutorials?
Thanks...
Im using http://www.codeproject.com/cs/media/directxcapture.asp to
capture video input from a webcam. Thats all working fine :)
|
by: gerry |
last post by:
i just downloaded and installed the directx aug 2006 sdk
the machine i installed it on had both vs2003 & vs2005
the visual studio extensions were installed into vs2003 but not into vs2005.
does the directx sdk not integrate with vs2005 ?
are we essentially forced to develop directx apps using vs2003 & .net 1.1 in
order to take advantage of...
|
by: raylopez99 |
last post by:
I just downloaded the apparently free SDK for DirectX 9, all 200+ MB
of it, but as I read about WPF I wonder: is DirectX obsolete? Should
I even bother learning how to use it? After all, the end user must
have the DirectX library installed on their PC before they can use any
video playing program you write.
Does WPF even use DirectX? Or...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |