WPF video recording - wpf

Im building a WPF 4.0 application and I want to include the ability to have a web-cam beside the PC running the app and I want to be able to record a video message. I cannot find any articles on this, and it seems like it might be a bit tricky...
Has anyone had any experience with this or know where to start?

lots of good stuff out there, eg:
http://easywebcam.codeplex.com/
http://khason.net/blog/webcam-control-with-wpf-or-how-to-create-high-framerate-player-with-directshow-by-using-interopbitmap-in-wpf-application/
http://blogs.msdn.com/b/cmarchal/archive/2006/08/25/724224.aspx
EDIT: for recording:
http://blogs.msdn.com/b/uberdemo/archive/2008/03/27/capturing-a-webcam-stream-to-a-wmv-file-from-within-a-wpf-application.aspx
http://videorendererelement.codeplex.com/

Related

Creating an updating GUI, IE Video or Blog service in VB.net Winforms

First of all I would like to thank everyone on this forum, as you have made some of my friends greatest projects successful and I was hoping one of these projects can be done without them.
Now I want to expand to other services. I want to make an app in WinForms or WPF (But im still learning XAML so if you can it would help to answer for winforms) that constantly updates data and displays pictures or video in a row/rows. Like almost Moviebox for iPhone or Showbox for android. How movies are updated constantly without updating the app. (Im not promting piracy, its just the best example I could think of). And when you click on the movie(Which is a picture) it gives a description and picture and even a youtube video.
It kinda would work like a blog reader.... I think?
I think I will need a server and I will probably need a database. But sadly , i'm still a beginner, but willing to learn. Thanks and if you need any more info, please just ask. :)
http://msdn.microsoft.com/en-us/library/windows/apps/br211380.aspx?cs-save-lang=1&cs-lang=vb#code-snippet-2 The answer! I think? Any helpers?
http://msdn.microsoft.com/en-us/library/windows/apps/br211380.aspx?cs-save-lang=1&cs-lang=vb#code-snippet-2 This MSDN example explained everything I needed in full!

Making a walkie talkie wpf application

I've been really interested in making a walkie talkie wpf application, however I'm not too sure where to start. I was wondering what kind of technology would be needed to capture one person speaking and playing it back to someone else? Any resources available online to learn about the technology required etc. Thanks
For anyone who's interested in something like this too, I found that the makers of Zello the phone walkie talkie phone app also provide a SDK which can be used to integrate in a .NET application. It's also free for up to 5 people on your network. So I'm going to check it out and see how I can implement it in my app. Here's the link for anyone who's interested http://zello.com/sdk.htm

Use Adobe Flash/AIR VOIP in Winforms

Since there are no answers yet, I'm going to rewrite this question in hopes of an answer (I don't mind discussion, but I know SO is about Q&A). It appears security checks/prompts make it unfeasible to use Flash Player. With this in mind, the question still stands, but please answer based on experience using AIR.
I have a Winforms app written in C# that I need to add VOIP to. I really like how well the Flash Player VOIP solution works, the AEC (echo cancel) is awesome. I know they use Speex, but the implementation is still a lot of work even using Speex, so I'd like to use Adobe's solution directly in my app.
Has anyone done this? What issues will I have? A few I can think of:
IPC between AIR and Winforms app. I assume this is easy and several options, including sockets/network, file i/o, maybe others.
Based on this
Content running in the AIR application sandbox does not need the
permission of the user to access the microphone
I don't think security warnings will be an issue? I'm not sure what a sandbox is yet, but as long as my AIR app can run in this and still talk with my winforms app, then shouldn't be an issue.
I assume the voice capture including enhancements (AEC, NS, Speex, etc) are supported in AIR?
Are there any samples I can run that use voice capture in AIR?

Silverlight 3 automation for user training rather than unit testing?

We are developing a Silverlight LOB app. It would be great for users to be able to click a help button on the top of a page and have the app walk them through the functions of the page as though the movements and key strokes were pre-recorded.
I've not really familiar with automation on any GUI framework but googling around it seems most of it is geared towards testing. In my case, i'd want the mouse to move around the screen naturally, so a recording makes more sense. I'm pretty sure I could simulate such a recording with a very detailed timeline but this wouldnt be practical to code.
Is it possible to record an interaction like this and then have it play back purely on an SL client? I dont mind if I have to use an external tool to make the tests, but the training sessions need to run totally in Silverlight.
Its going to way way easier to create a training video using the variety of tools specifically designed for this sort of thing. Results of such tools you have probably already seen when watching demo vids for developing silverlight from site such as Channel9 and MSDN learning.
You could then simply use Silverlight's media elements to run such a video as part of your apps help system.
Creating actual automations that can be watched by a human will be much harder. Bear in that a huge advantage of video is that it can be paused and re-wound which is vital for your objective to actually be achieved well. This would be some thing like monumentally difficult to impossible to do using the automation approach.

How do I play movies in a C# WinForm application

I am trying to play a movie (wmv,avi,mpg,etc.) in a winforms application. I would like the user to be able to start, stop and pause.
I'm not looking for a full answer ... I just need pointed in the right direction. I've already did some searching on google but could not find anything useful. I can continue searching but I know the stackoverflow community rocks.
So, please point me in the right direction!
Thanks.
I think this is probably the path of least resistance:
http://msdn.microsoft.com/en-us/library/bb383953.aspx
You could use Windows Media Player ActiveX control.
You could also embed a WPF control that contains a MediaElement control.
Another alternative is to use the VLC library instead of Windows Media Player. The VLC Forums have a number of wrappers that can be used in C#.
I have not done a comparison of VLC versus Windows Media Player, but it is alot less resource intensive then the WPF media elements.
If I remember correctly VLC also has built in support for alot of video formats, potentially making it a better choice I guess.
One possibility is to use the Forms.WebBrowser class. This will give you an embedded web browser so you can install what ever player and plugins you need.
It depends on how complicated you want to get, but I've had luck implementing DirectShow before. It's definitely more complicated than a drop on control, but it's really flexible for different formats and loading codecs.

Resources