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.
Related
I know it is somehow possible to implement a windows media player in a form with Visual C#.
The info for that is here: How to add the libraries and here How to code it.
But my project is in Visual C++ and I'm having a hard time finding how to do the same. It is a windows store application based on an example from a Hearth Rate Bluetooth monitor.
My goal is to play a video while the data acquisition occurs.
The answer is Windows Store App can't handle ActiveX controls. At least in a straightforward way.
The solution was to implement a MediaElement from the Toolbox into the XAML page. That element is easy to use with mediaElement.Play() and mediaElement.SetSource()
I`m trying to make an windows phone 8 app which simply allow you to click a button which result in start recording and showing any visualization that indicate that its recording something like a bar or a vu meter , I managed to make the recording part, now i dont know what type of projects i should use to support making such visualization.
does Windows phone 8 apps support using XNA to draw in a box inside a xaml file ?
what is the tag i can use to draw inside using XNA code ?
If you're targeting WP8 you can't use the hybrid SL/XNA model. That said, you can certainly use a Hybrid solution that draws using DirectX. You can find general information here and a sample here (note that it uses DrawingSurfaceBackgroundGrid, you probably want DrawingSurface).
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.
I would like to display text like my company name on the window media player. I use DrawString function on Form onPaint event but it is covered by the window media player.
I also use Label control but it display square block on the player control even i set the back color to transparent. I develop KTV system it has two monitor one has form controls and another has player. Please advice me how should I do.
If your talking about the windows built-in media player then your going to have to get down and dirty with the Win32 API's, windows hooks, HWND, etc. You can't just paint a control on the window. What your talking about is some very low level windows coding.
Take a look at Spy++ (http://msdn.microsoft.com/en-us/magazine/cc163617.aspx). It's a tool from Microsoft that let's you delve into the details of a running application. It has a component called ManagedSpyLib which wraps the C++ windows libraries in a managed library to make the windows hooks calls easier. Be ready to learn more about the OS than you ever wanted to know. :-)
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#