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 - WebcamPlayer instead of MediaPlayer? How?

 
 
Old 03-25-2006   #1 (permalink)
cosminb


 
 

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


 
 

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]


 
 

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
 

Thread Tools


Similar Threads
Thread Forum
Mediaplayer no video for AVI Vista General
Mediaplayer and fullscreen Vista music pictures video
VLC Mediaplayer Vista General
playmovies on Mediaplayer Vista music pictures video
MediaPlayer 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