Visual Studio AxWmpLib change language track - visual-studio-2010

I am currently writing a program in Visual Studio 2010 C#.
I am working with AxWmpLib, library in charge of Windows Media Player.
I have a video with two tracks, Spanish and English (it shows perfectly in Windows Media Player, I can change language with out problems).
When I try to play in my application, take original track. I was looking for how to create a button to change the language, but I found nothing thats works correctly

I solve the problem
IWMPControls3 ctl3 = (IWMPControls3)axWindowsMediaPlayer1.Ctlcontrols;
ctl3.currentAudioLanguageIndex = 1;
I found it in spanish forum of msd
http://social.msdn.microsoft.com/Forums/es-ES/8ef567d3-6e29-4be3-81d1-132b32bfeff0/axwmplib-dos-idiomas?forum=vcses&prof=required

Related

How do the visual studio notifications work

Anyone who has used recent editions of visual studio will be aware of the little flag in the window chrome that alerts or 'notifies' them of possible upgrades to certain components that they may have installed in visual studio, or indeed to visual studio itself.
I have managed to add a notification icon to my window chrome and I can control its appearance from the window's underlying view model.
My next goal is to try and get it to actually respond to external notifications. Perhaps somewhat predictably my first port of call was a search on Google but almost everything returned referred to Push Notifications. I may well be wrong but somehow I don't get the impression that this is what is controlling the visual studio notifications. I am aware (from having used Advanced Installer and it's auto update facility that it is possible to conduct a search at a specific web address, see if I particular text file there contains new information and then trigger responses based on that.
Would anyone know if that is the sort of thing the visual studio itself does. I'm also intrigued as to how the notifications process keeps track of those items upon which you have acted, those upon which you haven't and whether or not you've actively dismissed all of them. I would love to know the principle of how these have been implemented so that I can look at a way to emulate them in my own application and would welcome any information that can be proffered.
I intend to work in wpf and vb.net but can read c# hence the variety of tags I have appended to the question.

Can't log in to the forum from my other computer

I can't log in to the forum from a computer with wind 7 sp1 spanish, x86, windows interface language english, and with the last version of FireFox.
This is the screen I get when I try to log in:
These buttons are useless.
But from this computer, Wind7 sp1 spanish, x64, windows interface language english, and also with the last version of FireFox, I get this other screen when trying to log in:
This screen allows me to enter the forum.
What could I do to be able to enter with the previous computer? I always have used it with no problem, but I don't really know what changed.
Now I know how to enter the forum from the first computer. Just click the entering option and then submit.
I'm not used tu use it since I never saw it before.
But I wonder why are there two different log in screens from two different computers!!

video in a Splashscreen

How to put a video in a splash screen in Windows Phone 8 Application development. I am using visual Studio 2012. I am new in Windows development. If possible give me the coding. Thanx in advance
Also you can keep an image in your project by name SplashScreenImage.jpg. It will directly show this particular image on starting and you can also extend the time to show that image.

Camera capture in Windows Phone 7 through an XNA application

I know that Microsoft hasn't officially supported doing any video capture applications as of yet. I've found the Clarity Consulting blog entry that highlights how to use the camera through Silverlight (entry is here: http://blogs.claritycon.com/kevinmarshall/2010/12/23/wp7-camera-access-flashlight-augmented-reality-and-barcode-scanning/). But, as of yet, I have been unsuccessful in porting the code to be used by an XNA framework.
Has anyone had any luck either using the Windows Phone 7 camera in an XNA application? If so, care to share your wisdom?
Thanks!
Generally you can access the camera the same way you do it in Silverlight - there is the CameraCaptureTask - you need to add a reference to Microsoft.Phone first and then call it from the game.
Microsoft.Phone.Tasks.CameraCaptureTask task = new Microsoft.Phone.Tasks.CameraCaptureTask();
task.Completed += new EventHandler<Microsoft.Phone.Tasks.PhotoResult>(task_Completed);
task.Show();
That would be for static capture, and your event handler is like this:
void task_Completed(object sender, Microsoft.Phone.Tasks.PhotoResult e)
{
// Do something with e.ChosenPhoto
}
Currently, video recording is done through the undocumented way - this will most likely get your app submission disapproved from the Marketplace, but it is possible nonetheless.
What's done that way is a MP4 file is constantly updated in the IsolatedStorage as the recording is in progress. But then again, there are methods present to include the file in the media library.
Think you are a bit unclear about the whole microsoft and supporting cameras.
Microsoft released not too long ago Expression Encoder 4 which allows you not only to video screen capture your screen but as well access all devices connected to your pc.
I would believe this would be much more ideal then being restrained to only using a windows 7 phone especially for an xna game.
Hope this sheds some light.
Nowadays you can use FileSink to save video from a CaptureSource like VideoCaptureDevice into a file.
http://msdn.microsoft.com/en-us/library/system.windows.media.filesink%28v=vs.96%29.aspx
http://msdn.microsoft.com/en-us/library/system.windows.media.capturesource%28v=vs.96%29.aspx
http://msdn.microsoft.com/en-us/library/system.windows.media.videocapturedevice%28v=vs.96%29.aspx

Source for a LoopingSelector for WP7

I have been looking at nice, 3 part series about LoopingSelectors by Win phone Geek and unfortunately there is a missing source link for the first part on that website.
Can someone offer to please mail it to me or paste it in here, because I don't want to reinvent it? I would apppreciate it. Thanks.
Code for other demos for LoopingSelectors would be fine too.
The LongListSelector is part of the Silverlight for Windows Phone Toolkit. You can download the Source & Samples for the November 2010 release, or download the latest version, which includes fixes for various controls to enable applications to pass certification (there were issues with Back key press handling).

Resources