Toggle between front and rear video capture device

Hi.
First of all, is this where I can ask questions about wp c#?
second, How do I programmatically toggle front and rear video camera? I what to put a menu item option to switch between front(if available) and rear camera. Can you provide me with c# code to do this?
notes: I'm using directive Microsoft.Devices and the following Classes to capture videos:
// Viewfinder for capturing video.
privateVideoBrushvideoRecorderBrush;
// Source and device for capturing video.
privateCaptureSourcecaptureSource;
privateVideoCaptureDevicevideoCaptureDevice;
doublew, h;
// File details for storing the recording.       
privateIsolatedStorageFileStreamisoVideoFile;
privateFileSinkfileSink;
privatestringisoVideoFileName
= "CameraMovie.mp4";
// For managing button and application state.
privateenumButtonState{
Initialized, Ready, Recording, Playback, Paused, NoChange, CameraNotSupported };
privateButtonStatecurrentAppState;

Hello,
I will help you moving this thread into windows phone forum.
For you question, we can use DeviceInformaiton class to find all webcams and then get the front or back webcam.
 Code looks like the following.
var devices = await Windows.Devices.Enumeration.DeviceInformation.FindAllAsync(Windows.Devices.Enumeration.DeviceClass.VideoCapture);
Windows.Devices.Enumeration.DeviceInformation backCameraDeviceInformation =
devices.FirstOrDefault(x => x.EnclosureLocation != null &&
x.EnclosureLocation.Panel == Windows.Devices.Enumeration.Panel.Back);
You can see more about camera programming in this code sample. Get it from
https://code.msdn.microsoft.com/windowsapps/AdvancedCamera-ba47da27.
Feel free to let me know if you have any concerns.
Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate
the survey.

Similar Messages

  • How to change the capture resolution of CaptureDevice and toggle between front and rear camera

    Hi. I'm using Visual Studio 2013, and the Windows Phone App template. I'm using the Microsoft.Devices / CaptureVideo API to capture video. I now want to set the resolution to capture the video in a specific(available) resolution. How do I do that?
    Code snippet reference to API:
    CaptureVideo vcDevice = CaptureDeviceConfiguration.GetDefaultVideoCaptureDevice();
    and I also want to put a button there to toggle between front and rear camera. If I click the button, and the rear camera is currently active, the front camera must become active and vice versa. How do I do that with this API?
    Thank you.

    visit this page to know how.
    http://stackoverflow.com/questions/25466088/how-to-switch-to-front-camera-in-windows-phone-8-1-winrt-jupiter

  • I cannot toggle between front and rear cameras on my iPad 4; any ideas?

    I cannot toggle between front and rear cameras on my iPad 4; Any ideas?

    Make sure IOS is updated to latest version
    Reboot device by pressing both the home button and sleep/wake (power) buttons at the same time for 10-15 seconds until the apple logo appears on the screen, then let go.
    If that doesn't work then reset the device by going to settings/general/reset/reset all settings

  • How can I tell if fan between front and rear bay is working?

    hi all
    How can I tell if fan between front and rear bays is working? I put my hand behind G4 MDD to feel for air flow and it seems minimal. I hear a wind tunnel sound but I feel more heat than air flow. Please help as I don't want my Mac to overheat
    Thanks, Web dude

    You can run your mac with the side "door" open - down flat to the right of the computer. You should be able to see the fan do (or not do) its thing.
    I have done this (run the mac with the side open) many times. For safety, I turn the mac off before opening / closing the door.

  • Split signals between front and rear ports?

    just wondering if it is possible to split two different feeds between the front and rear ports on an Xfi.
    for example game sound through the speakers and then Ventrilo/Teamspeak via the front audio jacks on my case(as the Xfi has the header for front audio).

    Sorry to bump an old post, but this is exactly what I have been looking for.
    Does anyone know if this is attainable on the Pci-e X-fi Titanium card with an Intel HD audio front panel connected to the card?
    Thanks!

  • RGB, Composite, Firewire and S-video capture device for FCP

    Hi,
    I was just wondering if anyone could suggest some of the better capture cards that support RGB composite, firewire and s-video inputs that will work with FCP.
    The set up is on Mac Pro and the device needs to be as reliable and noise free as possible as it will be used for the capturing of video for evidence in court cases.
    Any help is this area would be very grateful,
    Regards,
    Martin.

    Hello,
    I have no experience with the AJA product line but I know that many of the folks here have used them. They make a good line of cards that will do what you are asking for. They don't have firewire on the cards, but the computer you are using should have one I would assume.
    Since you said 'S-Video' my thoughts are that you are only using SD? If that is going to be the case for a long time then look at this card:
    http://www.aja.com/products/kona/kona-lse-ls.php
    It has composite and S-Video inputs. IF there is the chance that you are going to be doing HD and IF it is still tape based, then look at one of the higher models. But again, that is if you are going to be upgrading to HD sometime soon.
    Hope this helps.
    -Jay

  • Difference between front and rear FW 400 ports

    Hello:
    I have a lab of 7 PowerMac G5's (1.8 MHz, single cpu, 512 MB RAM) We have a problem with one of them. Basically, an iSight camera does not work properly with the front firewire port. The problem is repeatable. Different iSight cameras show the same problem. The problem does NOT appear on the other six G5 computers.
    Apple can not fix the problem. Now, they are telling me that this is normal behavior. I am being told that the iSight camera transmits a lot of data and the rear firewire port should be used.
    This does not seem right to me.
    So, my questions are:
    1) Has anyone else had a similar problem with the front firewire port? Is the front firewire port limited in some way?
    2) Apple's documentation seems to state that the front and one of the rear firewire ports are FW400. Is this correct?
    3) If the iSight works on the rear FW port then why shouldn't it work on the front port?
    4) If an iSight not working on the front port is "normal behavior", then why does it work on the other 6 computers.
    All in all, I have a hard time believing this is normal behavior. I feels like I am being fed a "line".
    I would appreciate any comments or insight that anyone might have.

    The front port is FW400 and should work with the
    iSight. Do you have any other FireWire devices to
    try, such as a DV camcorder? If you have no other
    FireWire devices, you could use one of your other G5s
    in target mode as a test device to see if the port
    works. If the port works with a camcorder or
    computer in target mode, but not with the iSight, the
    problem is probably with the power power connections
    on the port. It is a six pin port but target mode
    and camcorders only need four pins. The iSight has
    to get power from the other two pins. In any case,
    Apple should fix it.
    Thank you for the tips. I agree that Apple should fix it. I have been informed, however, that since this is "normal behavior" that there is nothing to fix.

  • PC and Mac Video Capture Devices

    I own a Mac PB with OSX.4. My wife has a WinXP laptop. Can someone recommend a solution she and I can both use to capture video from our VCR?
    We both have firewire, USB2.0, and Cardbus (PCMCIA) ports.
    I don't want to get something that only one of us can use if I can avoid it.
    Thanks,
    Aaron R>

    There is a device called PYRO A/V Link from ADS Tech which you can find at CompUSA.
    It inputs from any analog source and connects to your Mac via firewire, plus it comes bundles with Adobe Premiere Elements.
    Here is the link to it at CompUSA . Good luck.

  • I need a video capture device for downloading Band and family video tapes.

    Hi,  I need to download some old video tapes before they turn to dust.  Are there any fairly inexpensive video capture devices that work well with the Imac?
    Thanks

    Are they VHS video cassettes or something like 8MM camcorder tapes?
    If they're camcorder tapes, usually it's best to try to buy an old video camera (MUST have FIREWIRE port).
    Then you can play the tape in the camera and capture from the Firewire. Also important, if you have a 2010 (maybe 2009?) or newer iMac, you'll need a cable that is Firewire 400 to fit the camera at one end and Firewire 800 at the other end to connect to the iMac.

  • Every time I toggle between silent and regular sound the sound effects disappear on mail how do I fix it?

    Every time I toggle between silent and regular sound the sound effects disappear on mail how do I fix it?

    With headphones?
    With speaker?
    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                                
    iOS: How to back up                                                                                     
    - Restore to factory settings/new iOS device.             
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
      Apple Retail Store - Genius Bar                              

  • Ios8 toggle between 2G and 3G

    I come form India, where the 3G coverage is not that good. So to save on battery I would always keep my phone on 2G and only use 3G when for example I wanted to see a video on youtube.
    But looks like the toggle between 2G and 3G has been removed in IOS8. This is a deal breaker for users like me.
    I travel a lot and charging a battery often is not really a viable option .
    Is there a way to revert back to IOS 7 again. I get a feeling, apple does not seem to care about users from developing countries, this is sheer arrogance to go ahead and remove the toggle between 2G and 3G.
    If apple does not include this feature soon, I may be left with no option but to migrate to Android, where you can toggle between 2G and 3G easily.

    dulan1086 wrote:
    But doesnt all the other phones (Nokia, Samsung, HTC etc) have it as a device update? It would be easier for the users. We pay for the phone not the carriers
    You pay the carriers to use their network. They set the terms for that. If an iPhone does not meet your needs sell it and buy a phone that does.

  • Detecting Video Capture Devices without Installing JMF

    Hi All,
    I want to detect the video capture devices, without installing the JMF.
    I had included the jmf (windows version) in lib path in netbeans ide. I am able to detect the audio capture device. But unable to detect the video capture devices. But if I install the JMF, I am able to detect the Video Capture devices in My system. Can anyone help me?
    Thanks,
    Vinoth Kumar.

    YES! Please take a look at SIP Communicator project. They have all what u want.
    The main idea is copy all .dll files to System or System32 (Please check files which JMF will copy to ur computer and where).
    U need to have jmf.jar and sound.jar too ( maybe more) in your computer.
    Your program should have DirectSoundAuto.java, JavaSoundAuto.java, JavaSoundDetector.java, JMFInit.java. Those files are in JMStudio source code. They are used to detect all capture devices and register it to JMF, but wait !!! where they will be saved? In order to save information about capture devices which are detected, you should create "jmf.properties" file in the same location with jmf.jar.Therefore, u should modify the JMFInit.java so it can check if the "jmf.properties" exists. If it's not, you have to create it.
    Check SIP Communicator at Folder "media" then "device". They have modified those files I mentioned above and created some new files to SC can detect more devices.
    Edited by: tamngminh on Sep 16, 2008 9:50 AM

  • How to connect a video capture device to Satellite M30X 127

    I'm going around in circles trying to find a video capture device that will function with a laptop and would be grateful for advice. By way of example, I'm now looking at the 'Canopus ADVC-110', although still looking around (but not Pinnacle, who seem to have a terrible reputation for capture items).
    Problems include:
    1. Main problem is - many video capture external devices require a 'line-in' to PC for good quality audio transfer. This laptop doesn't have a line in, only the mike and headphone jacks. In addition, I've also tried a few RCA pins in the 3.5mm microphone/headphones jack and they were too small. How to solve the problem of getting audio from vcr to my PC?
    2. The ADVC-110 connects to the PC via Firewire (and S-video), but is a SIX-pin type. M30X is a FOUR-pin type. Are there adapters available?
    3. Some capture programmes seem to require huge capacity of RAM. Is a laptop going to be suitable to do the job? (I simply want to capture old vhs tapes from vcr to PC, then burn to DVD with Nero 7 or similar).
    Thanks in advance!

    Hello
    You are right! You must use external device for signal transfer to your notebook. I dont know where you have this info but I have good experiences with Pinnacle product. For data transfer I have used USB port.
    'Canopus ADVC-110 is not known to me but I dont see any reason why this should not work well. Use delivered software for video capturing and there should not be any problem.
    Only thing is that after recording the whole video material must be prepared for burning and unit need a lot of power to do this well und fast. When you buy this and want to use on right way I recommend you to expand RAM to 1GB.
    Compatible memory modules for your Satellite M30x are:
    PC2700 512MB (PA3312U-1M51)
    PC2700 1024MB (PA3313U-1M1G)
    Bye

  • Advice Needed for Video Capture Device

    Hi,
    I'm looking to buy a USB (or Firewire if they exist) video capture device that can take S-Video and composite connections. Could someone recommend me best one under $150 that is compatible with Snow Leopard? Also, and more importantly, does anyone know if it is possible to capture the signal via Quicktime Pro or Final Cut Pro rather than bundled third party software.
    Thanks!

    I used the predecessor to the Canopus ADVC55 to load VHS tapes into a mac.  As I recall I brought the firewire signal into iMovie (could have been Final Cut Pro too, as I had both on the system). Here are the specs:  http://www.grassvalley.com/products/advc55 .     Also some comments on it at http://www.amazon.com/Hardware-ADVC-55-d-Converter-Ntsc/dp/B000HGVZG0/ref=sr_1_2 ?ie=UTF8&qid=1323954590&sr=8-2   Here's another source to buy it: http://www.bhphotovideo.com/c/product/312315-REG/Grass_Valley_602005_ADVC_55_Ana log_to_Digital.html .
    They also make an ADVCmini, which I haven't used, which is probably less expensive, with specs at http://www.grassvalley.com/products/advcmini

  • Adobe premiere elements 12 with diamond vc500 one touch video capture device.

    Adobe premiere elements 12 and using Diamond vc500 one touch video capture device.
    AVI files will not load into Adobe premiere elements 12.
    I bought what I thought were the two best software and capture devices.
    I am archiving old VHS tapes and using Diamond vc500 capture software called EZ grabber. I thought the best archiving format would be AVI files. As I just started this project. I am willing to do what is needed.
    That even being, going and buy another capture device that being for a VCR to PC using a USB are even a Video card.
    EZ grabber software ask you to record in what format. I picked AVI. There is DVD - SVCD - VCD - MPG4. I want to archive then go back and edit. The DVD or SVCD format, is that not the same as mpeg 2?
    You and I know the drill. Saving in what long term archive format and that dare thing about video compression and losing quality of the videos. Its all a nightmare.
    Once again I am willing to buy another capture device for a VCR that will work with Adobe premiere elements 12.
    Help please with long term archiving format and capture device.
    Thanks

    The answer is B.
    Capturing the VHS content to computer (via the Diamond vc500 and USB connection and EZ grabber) to obtain an .avi file on your computer and then trying to import that into Premiere Elements with its Add Media/Files and Folders?
    When I do that, the Adobe premiere elements 12 crashes or only loads a 2 mins of video.
    The firewire connection device "Canopus" product sounds great. But I really don't want to spend that much on my home videos. My PC does not have a Firewire connection. So add a new card for that and the Canopus product. I could just pay someone to do my VHS tapes.
    Diamond vc500 $35
    Adobe premiere elements 12 $65
    Firewire card $50 plus
    Canopus $180
    $330 is way too much for simple home VHS videos

Maybe you are looking for