Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

WebcamPlayer instead of MediaPlayer? How?

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 03-25-2006   #1 (permalink)
cosminb
Guest


 

WebcamPlayer instead of MediaPlayer? How?

I'm having some trouble figuring out how to do this: I've developed a
camera library in C++/CLI which I use further in C# apps. After making
it accessible to Windows Forms and Direct3D, I want to give Avalon/WPF
a try, but this is where I got a bit stuck (lack of proper
information). As you can see from the thread's title, I want to achieve
the same functionality that currently is given by
MediaElement/MediaPlayer. I want to be able to output my webcam preview
video to any Visual element in WPF. How do I do that? Do I need to
subclass MediaElement? Or MediaPlayer? Or something else. And how do I
customize it? I hope someone has an answer to this really soon, I'm
betting my final year project on this.

Thanks in advance,
Cosmin.

P.S. Also, I want to know if C++/CLI can be used to subclass the
controls, or it has to be done in C#.


My System SpecsSystem Spec
Old 03-27-2006   #2 (permalink)
wizzup
Guest


 

Re: WebcamPlayer instead of MediaPlayer? How?

I think you can use your own custom file to trigger the calling of your
camera lib (as a source ) for media player to play it. The hard thing
is you need to know directshow and you need to write a directshow
source filter for that custom file. The key of my idea is if you can
play a file using media player then you can use it in WPF mediaelement.
Are there any easier way ? I want to know it too.

Wisut.

My System SpecsSystem Spec
Old 03-27-2006   #3 (permalink)
CosminB [BRT]
Guest


 

Re: WebcamPlayer instead of MediaPlayer? How?

Well, all the work is done up until rendering. I use VMR9. I can render
both in Windows Forms (Windowless mode) and Direct3D (renderless mode).
I am trying to use renderless mode to display in WPF also. Of course,
you have a point there, but this would change how my library works. I
just need this final step to be able to output in a 'MediaElement'-like
fashion.

My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
VLC Mediaplayer max Vista General 1 11-27-2007 04:13 PM
reinstall mediaplayer WNLutgerink Vista General 1 12-28-2006 10:14 PM
MediaPlayer John Barnes Vista General 3 12-03-2006 06:59 AM
Mediaplayer in vista wjohnsons Vista music pictures video 0 11-18-2006 10:42 AM
Mediaplayer Issues CeNo Vista music pictures video 1 07-04-2006 11:48 AM


Vistax64.com 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 2005-2008

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 47 48 49 50 51