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