![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
| | #3 (permalink) |
| | 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 Specs![]() |
| 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 | |||