Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Video Panel control XAML description for Viewing Webcam in WPF

 
 
Old 03-30-2006   #1 (permalink)
sashah


 
 

Video Panel control XAML description for Viewing Webcam in WPF

Hi im trying to develop an app that requires a webcam to be integrated within
the xaml gui. This was easy with vb.net c# programming using a videopanel.
The only way i have been able to integrate the webcam so far in xaml is using
the xaml mediaelement descriptor and streaming the webcam, but ultimately
this is a cumbersome, slow and inefficient approch that isnt really useful to
me. Can anyone help because to be honest im a little dumfounded as to why
such functionality has not been implemented already. how about <mediaelement
source="my computer\logitech quickcam" i know in reality the control cant be
this simple, but it shouldnt be far off!!!! thanks.

My System SpecsSystem Spec
Old 03-30-2006   #2 (permalink)
Tom Mulcahy [MSFT]


 
 

RE: Video Panel control XAML description for Viewing Webcam in WPF

Sorry, there is no easy way to integrate webcam output in a MediaElement.
This feature has been frequently requested, so it is high on our list of
priorities for the next release of Avalon.

Thanks,
Tom

"sashah" wrote:

> Hi im trying to develop an app that requires a webcam to be integrated within
> the xaml gui. This was easy with vb.net c# programming using a videopanel.
> The only way i have been able to integrate the webcam so far in xaml is using
> the xaml mediaelement descriptor and streaming the webcam, but ultimately
> this is a cumbersome, slow and inefficient approch that isnt really useful to
> me. Can anyone help because to be honest im a little dumfounded as to why
> such functionality has not been implemented already. how about <mediaelement
> source="my computer\logitech quickcam" i know in reality the control cant be
> this simple, but it shouldnt be far off!!!! thanks.

My System SpecsSystem Spec
Old 03-30-2006   #3 (permalink)
Ed Maia [MSFT]


 
 

RE: Video Panel control XAML description for Viewing Webcam in WPF

Here are a couple of other options that may also work (please note they are
not xaml only):

1) Host your webcam content using DirectShow
(http://msdn.microsoft.com/library/en...capsample.asp),
and display it in WPF using the HwndHost class. There should be an article
in the SDK about the interoperability architecture that covers this. This
allows you to easily insert an Hwnd "black box" into a WPF app, but you will
not be able to get any kind of advanced compositing (i.e., this window will
always be on top with full opacity). Another option with the same limitation
is to use an HwndSource.

2) You should be able to implement a custom protocol handler using Windows
Media Player. A uri in this form can then be passed on to the MediaElement
or MediaPlayer classes. More info on the method that needs to be implemented
at
http://msdn.microsoft.com/library/de...reamforurl.asp.
The only drawback of this is that the protocol is registered locally for all
apps.

Thanks,
Ed

"Tom Mulcahy [MSFT]" wrote:

> Sorry, there is no easy way to integrate webcam output in a MediaElement.
> This feature has been frequently requested, so it is high on our list of
> priorities for the next release of Avalon.
>
> Thanks,
> Tom
>
> "sashah" wrote:
>
> > Hi im trying to develop an app that requires a webcam to be integrated within
> > the xaml gui. This was easy with vb.net c# programming using a videopanel.
> > The only way i have been able to integrate the webcam so far in xaml is using
> > the xaml mediaelement descriptor and streaming the webcam, but ultimately
> > this is a cumbersome, slow and inefficient approch that isnt really useful to
> > me. Can anyone help because to be honest im a little dumfounded as to why
> > such functionality has not been implemented already. how about <mediaelement
> > source="my computer\logitech quickcam" i know in reality the control cant be
> > this simple, but it shouldnt be far off!!!! thanks.

My System SpecsSystem Spec
Old 03-31-2006   #4 (permalink)
Thomas Olsen [ms]


 
 

RE: Video Panel control XAML description for Viewing Webcam in WPF

Another approach is to write your own DShow source filter that takes a webcam
input and provides the data to the DShow topology.

"Ed Maia [MSFT]" wrote:

> Here are a couple of other options that may also work (please note they are
> not xaml only):
>
> 1) Host your webcam content using DirectShow
> (http://msdn.microsoft.com/library/en...capsample.asp),
> and display it in WPF using the HwndHost class. There should be an article
> in the SDK about the interoperability architecture that covers this. This
> allows you to easily insert an Hwnd "black box" into a WPF app, but you will
> not be able to get any kind of advanced compositing (i.e., this window will
> always be on top with full opacity). Another option with the same limitation
> is to use an HwndSource.
>
> 2) You should be able to implement a custom protocol handler using Windows
> Media Player. A uri in this form can then be passed on to the MediaElement
> or MediaPlayer classes. More info on the method that needs to be implemented
> at
> http://msdn.microsoft.com/library/de...reamforurl.asp.
> The only drawback of this is that the protocol is registered locally for all
> apps.
>
> Thanks,
> Ed
>
> "Tom Mulcahy [MSFT]" wrote:
>
> > Sorry, there is no easy way to integrate webcam output in a MediaElement.
> > This feature has been frequently requested, so it is high on our list of
> > priorities for the next release of Avalon.
> >
> > Thanks,
> > Tom
> >
> > "sashah" wrote:
> >
> > > Hi im trying to develop an app that requires a webcam to be integrated within
> > > the xaml gui. This was easy with vb.net c# programming using a videopanel.
> > > The only way i have been able to integrate the webcam so far in xaml is using
> > > the xaml mediaelement descriptor and streaming the webcam, but ultimately
> > > this is a cumbersome, slow and inefficient approch that isnt really useful to
> > > me. Can anyone help because to be honest im a little dumfounded as to why
> > > such functionality has not been implemented already. how about <mediaelement
> > > source="my computer\logitech quickcam" i know in reality the control cant be
> > > this simple, but it shouldnt be far off!!!! thanks.

My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
A different webcam problem with WLM 2009 and viewing size Windows Live
How can I control the size of icons in Control Panel? Vista General
Control Panel View - Lost icons description Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46