I would like to control and adjust sound volume of windows 7 in C# Win Form? Any tips, how is this be done?
Take a look here : http://www.geekpedia.com/tutorial176_Get-and-set-the-wave-sound-volume.html
You can also use NAudio wich is a managed wrapper for the IAudioMeterInformation interface.
More info on IAudioMeterInformation interface : http://msdn.microsoft.com/en-us/library/dd368227%28VS.85%29.aspx
NAudio projet on CodePlex : http://naudio.codeplex.com/
You might need to use winmm API. You can try this link.
Volume Control
I have used NAudio for visualization. Not sure if that might help you.
With WPF it should be fairly simple, you can either use MediaElement or MediaPlayer and bind it to a Slider.
Related
How can I implement something like DreamScene using C# ?
I want to play a video in front of the wallpaper but below the icons on the desktop.
This article explains how to draw you windows under the desktop icons in Windows 8, and also links to an example of how to do the same in Windows 7/Vista/XP.
You have to use lots of interop and handlers and stuff, so it's not easy or clean... But can be done :P
You can use the media player class:
https://msdn.microsoft.com/en-us/library/system.windows.media.mediaplayer(v=vs.110).aspx
to play a video. To hide the icon from the tool desktop, edit the property ShowInTaskBar of the form.
I'm trying to implement camera security in my application. I got some SDK's from some security companys to implement there system but they all use ActiveX. My view right now is that ActiveX is kinda old?
But what is the newest way to get video from devices and display (stream) them on a screen?
What control to use in .net 4.5 WPF (and Windows 8)
I'm working on video WPF app for two years now and we had a fundamental problem with video and WPF which was never resolved, and that's variable fps-rate. This blog post goes into details.
There's also a nice library called Media Kit (by Jeremiah Morrill), it might be suitable for your problem.
In our solution we had no choice but to expose HWND's for our rendering DirectX engine. We accomplished this by using HwndHost class and extending it to our custom WPF control. Note this is the base class for windows forms host, so you get the same amount of problems as with WinForms-WPF inter op.
Also, ActiveX is the only way to display professional camera video streams in web interfaces, it's still a defacto industry standard, you'll get it from MOXA, Acti, Vivotek and various other camera equipment manufactureres.
One more thing, if you need to perform some advanced analysis of video, I'd suggest OpenCV.
What I am using:
Visual Studio 2010
Windows Media Center
Language C#
The Program
A part of my program needs to display movies by their covers and be able to scroll through them, much like netflix. I was told that directx would be good to accomplish this. Basically I just want it to be easy to view, use, and flow nicely.
Help?
Any Ideas as to what to use. (I was also looking into writing it as a pluggin for windows media player, but i read somewhere you can only have html based menus?)
Any suggestions would be appreciated.
Thanks
-Scott
Have a look at the following.
http://channel9.msdn.com/Blogs/scobleizer/Charlie-Owen-Your-first-Media-CenterVista-application-and-a-look-at-their-secret-room
The problem with using Direct3D for an application like this is that you have to start creating your own window manager.
You don't have the default events available to you and you will have to basically create your own GUI which is easier in WPF as those events and helpers exist.
How Can I control (tune up or down) the level of the line-in or microphone channel? and how can I visualize the spec (as a graph or something)?
Also see Alvas.Audio RecordPlay example http://alvas.net/alvas.audio.aspx
you can try using the mixer APIs to find the line in volume control. I've found it is very tricky to pick out the right one (especially if you want it to work in both XP and Vista/Win7). Have a look at .NET Voice Recorder for an example of how to use NAudio to do this.
I need to synchronize Windows Media Player with my application. I want to show the current song that WMP is playing in a ListBox in real time, with updates when WMP changes songs. How can I implement this?
A bit of sniffing around in Google gave me this: http://brandon.fuller.name/archives/hacks/nowplaying/wmp/, it looks like you need to write a plugin for WMP that exposes the information to your application. Depending on what you need/cost, the Plugin on that page might do the job!
Poll HKEY_CURRENT_USER\SOFTWARE\Microsoft\MediaPlayer\Player\RecentFileList\File perhaps.
We've controlled Windows Media Player through the Windows Media library (wmp.dll) and .NET Remoting, using a singleton service.
Look here:
How to interact with Windows Media Player in C#