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

Similar Messages

  • I just want to know that how to change the font color, font size, and forgr

    i just want to know that how to change the font color, font size, and forground color in JTextPane for the Selected text. i try diffrerent menthod like setFont and setColor, these methods change the fonts of the whole textpane. so please reply me as soon as possible, and thanks in advance.
    Moazzam

    Sell the Old one... Buy a New one...

  • How to change the screen resolution

    Dear All,
    Could someone please help and tell me how I can change the screen resolution (i.e. the dimensions of the monitor) in Solaris 10 using CDE?
    Regards and thanks a lot for your reply

    This site has some instructions on how to do this: http://solaris-x86.org/documents/tutorials/cde.mhtml

  • How to change the screen resolution in the Mobile Emulator

    so far we tried the Mobile Emulator in the netbeans, it is alway 240*320, but many real device is WVGA(480*800)
    whether does that mean the JavaFX Mobile only support the 240*320?
    if not, how can I change the screen resolution of the mobile Emulator, thank you

    I'd like to know how to do this, too. I tried fiddling with the "ScreenGraphics.bean" in the JavaFX\javafx-sdk1.2\emulator\toolkit-lib\devices\QwertyFxPhone directory, but without success.
    If anyone knows, please just drop a quick line here!

  • How to change the default currency in CJ32 and CJ33

    Dear all,
    As required by the user, I want to know how to change the default currency from controlling area currency to object currency in TCODE CJ32 and CJ33. Currently, the controlling area currency will be defaulted in the field "Views in".
    Could any one help me? Points will be awarded.
    Thank you.
    Christina.
    Edited by: Virendra Pal on May 5, 2010 8:34 AM

    Hi Christiana ,
    Once you are in tcode CJ30 / CJ32 , Enter either Project definition or WBS element and this shall take you to the Budget screen and once you are here you can find a drop down with two options .One is Controlling are currency and the other one is Object currency.
    Since the Currency is set to Object currency in OPS9, System shall allow the budget values in Object currency and if the user wants to see the same values in Controlling are currency ,then the user needs to view the values in Controlling are currency using the drop down .
    Regards
    Judy

  • How to change the font size of text and case in smartforms

    hi,
       could any one explain how to change the font size of text in smartforms. ex. previously i had taken P4 left aligned and C6 but now i want to decrease the font without making it bold. pl......... guide me
       secondly the value which are coming from tables are upper case but i need lower case. pl. guide
    thanking u

    check out the smart styles...create a font of ur size n use.
    Define the paragraphs & character formats using SMARTSTYLES & use them in your smartform.
    You have to give the smartstyle name in the Form attributes-->Output options for the formats to be used in your smartform.
    You can define font size in Smartform Style.
    Smartform Styles > Charcterformat> Font --> size.
    to load the font to SAP server chk this
    Re: Adding a new font for SAPscript/SMARTFORM output
    Regards
    Vasu

  • TS1702 How do change the old Apple ID username and password to the updated username and password for the apps store?

    How do you change the old Apple ID username and password to the updated username and password in order to get updated apps from the app store?

    cbkitche wrote:
    How do you change the old Apple ID username and password to the updated username and password in order to get updated apps from the app store?
    Do you mean you kept the same account but you only updated your AppleID?
    Just log out and log back in with new ID.
    Note that the AppleID is embedded into the item at purchase and cannot be changed.
    However, when you change your AppleID, it will link the old account name to the new account name so you will not have any problems updating apps using the new AppleID.

  • How to change the R/3 transac Look and feel in portals

    Hi Experts......
    How to change the look and feel of the R/3 transactions in portals.....
    I need to change the color of the screen display and nodes.
    Is there any easier way to do that....Kindly provide the inputs...
    Thanks in Advance,
    Jasmine

    Hi Jasmine,
    generally you have to "Theme Editor" in the portal which allows top level customization of design elements/ colours for the R/3 applicatins to be integrated into the portal.
    Changed designs on a deeper levels for ITS can be done with SAP@Web Studio. Kindly check the help for further information.
    Hth,
    Michael

  • How to change the screen resolution in Sparc workstation.

    I am using the CDE screen to login. I need to set the screen resolution to 1100*864. How to set?
    solaris 10 current setting is 1280*1024.

    Specs for Ultra20 machine list ATI graphics as " onboard " chipset and the availability of four (4) other plug-in cards as options.
    Depending on the installed graphics card, you must seek different commands, etc. for each change of resolution.
    If you do not have the original manuals that accompanied the unit, check Sun`s site for documentation. They list an abundance of info and the " Getting Started " book gives indepth details about setting up the various graphics options for proper use with the various operating systems. ....................... John.

  • How to change the Apple ID for iPhotos and iMovies(The first ID used in the mac book)?

    I found that every time when I want to update the iphotos and imovies and the native apps in the mac book it is needed to use the first apple id that used for the first time you turn on the mac book.
    Since that id is not used now and i want to change it, any body knows how to change it?
    And although my current admin id has changed, but still when updating iphotos the very first id is needed...

    abelard.xu wrote:
    ... but still when updating iphotos the very first id is needed...
    Correct.  Apps are Tied to the Apple ID that Purchased them...
    From Here   http://support.apple.com/kb/HE37
    I have multiple Apple IDs. Is there a way for me to merge them into a single Apple ID?
    Apple IDs cannot be merged. You should use your preferred Apple ID from now on, but you can still access your purchased items such as music, movies, or software using your other Apple IDs.

  • How to change the Package of planning area and datasource to be transportab

    Hi every body,
                       I av created a datasource for the xxx planning area and saved in $tmp which is local package and cannot be transportable .and i would like to transport the planning area along with the data source.But before transporting the planning area along with the data sourse i av to change the package of the data source.I am not able to understand where should i change the package of the planning area and datasouce.
    Can any body help me out of this problem.
    Can be rewarded.
    Shashi

    Hi alaxander,
                    Thanx for your reply but before tranporting a datasource i av to transport the planning area bcoz it is the source.so how can i change the package of the planning area which is in $tmp (local object).
    Regards,
    Shashik

  • How to change the content of GTC (terms and conditions) for Partner

    Hi all,
         We are using R/3 version of ISA B2B site. while creating order thru Shopping Basket we have requirement that We need to provide GTC (General Terms and Condions) for the Partner (View GTC link ).  Right now some default text is displayed in that window (text text text ext text text text text text like that). we need to change this.
    where i can change this text and enter our own terms and conditions.
    Please help me to resolve this,
    thanks in advance
    siva kumar

    Hi Siva,
    the GTC is shown in the JSP b2c/order/terms_and_conditions.jsp. If you have a look at the file, you will find the following code:
    <isa:translate key="b2c.order.termsAndConds.txt.dmy"/>
    The translate tag will render the language dependant text for the resource key "b2c.order.termsAndConds.txt.dmy". To change the content that is shown you can change the resource text or create your own resource key in the corresponding resource file. The resource files are located in the src-folder of the web application DC.
    Best Regards,
    Peter Kraus
    SAP Web Channel Consultant
    http://www.leonardo-it.com

  • TS3694 ok i have an ipod that some how has changed the pass code by itself and i cant get it to reset can anyone help

    i have tried to resart it and still no luck please help its no good like it is thanks

    You'll need to connect the device to iTunes and restore it.  If iTunes doesn't recognize the iPod still, try manually placing it in recovery mode first and then performing the restore in iTunes. See this article for instructions on putting the iPod into recovery mode.
    iOS: Unable to update or restore
    B-rock

  • Change the video resolution when capturing a WEB-cameras

    Language: Java
    It is used in addition: JMF
    When capturing video from WEB-cameras with JMF - getting the video is at the lowest resolution.
    Can you please tell how to change the video resolution?
    The code by which the captured image (no SWING-forms):
    MediaLocator getWebCam = new MediaLocator("vfw://0");
    private Player player;
    Timer timer = new Timer(40, this);
    public BufferedImage grabFrameImage() {
    Image image = null;
    FrameGrabbingControl frameGrabbingControl = null;
    if (player != null)
    frameGrabbingControl = (FrameGrabbingControl) player.getControl("javax.media.control.FrameGrabbingControl");
    Buffer buffer = frameGrabbingControl.grabFrame();
    if (buffer != null)
    image = new BufferToImage((VideoFormat) buffer.getFormat()).createImage(buffer);
    if (image != null)
    return (BufferedImage) image;
    return null;
    public WorkWithWebCam() throws NoDataSourceException, IOException, NoPlayerException {
    initComponents();
    player = Manager.createPlayer(Manager.createDataSource(getWebCam));
    player.start();
    private void jButton1ActionPerformed(ActionEvent e) {
    timer.start();
    public static void main(String args[]) {
    EventQueue.invokeLater(new Runnable() {
    public void run() {
    try{
    new WorkWithWebCam().setVisible(true);
    }catch(Exception ex){}
    public void actionPerformed(ActionEvent e) {
    panelMain.getGraphics().drawImage(this.grabFrameImage(), 0, 0, 400, 300, null);
    P.S. Can you please tell how this forum can be identified code \ listing?

    Hello,
    I don't know if there is a way to change the video. But I think you can easily use your own videos by using a local .mpg or .3gp file via InputStream. Just change the player's parameters in video/mpg instead of capture://video.
    Hope it helps...
    Torsten

  • How to change external display resolution WITHOUT clicking "CONFIRM"?

    I have a somewhat unusual situation. My MacBook laptop is actually now a ModBook (a pen-tablet computer), and as such I no longer have a trackpad attached to it. All of my inputs are via the stylus, tapping directly on the built-in display.
    This works perfectly fine, except when I need to give presentations on an LCD projector (which is quite often lately). I like to use the projector as an external monitor, so that I can run the Keynote presentation on it while using my laptop screen as the presenter's display, with the upcoming slide, etc. If the projector doesn't give me an ideal native display option (sometimes, the aspect ratio for the  3 or 4 resolutions available in the Displays drop-down in the menubar turn out to be stretched or squeezed), then I, naturally, have to open the Display System Preferences and try out different resolutions.
    The problem is, since my stylus only interacts by clicking directly on the built-in-display, I have no way of moving the cursor over to the external display when the dialog box with the "Click here to confirm change/You have 15 seconds..." message appears. So I can never click it ... so I can never confirm the new settings.
    The workarounds I've used so far are:
    - Mirror displays (not ideal, as I need the presenter preview of the next slide)
    - borrow a mouse from someone (usually from a Windows desktop, frankly) and plug that in to briefly mouse over and click the confirm button
    I'd love to find a software workaround that allows me to NOT mirror displays and also doesn't require me to carry around a mouse all the time (my laptop bag is already overstuffed...).
    Thanks.

    Fateh wrote:
    I hope that my question is clear ... Nope.
    How to change the display resolution of APEX ??APEX doesn't have a display resolution. "Display resolution" is an attribute of the device and user agent software used to view the APEX page.
    What do you mean by "the display resolution of APEX"?
    In other word, if an end user sees large elements on a pageWhat "large elements"?
    then he/she zooms it outHow?
    "Zooms" what&mdash;the entire page or a single "large element"?
    How can I set a proper ZOOM for my app by default ...Meaning what?
    And as usual, we're missing:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s)
    You've been posting here for years. You know this basic information is necessary to understand and reproduce problems.
    If you're looking for help it doesn't seem unreasonable that you make the effort to provide a full, clear but concise description of the problem or requirement.

Maybe you are looking for

  • How to use IBatis paging in jsp?

    I'm a new comer in IBatis.If I query the database using the method "executeQueryForList" how to display the record in jsp (for example 10 record) and display next 10 record? I means how to create page number in jsp for user click? If someone used it

  • How to delete photos from photo stream

    How do I delete photos from photo stream? I have taken some photos I don't want to keep.

  • Safari does not display images

    Yesterday - suddenly- Safari stopped displaying images on any web page. Fo example on Apple.com the picture of the large Apple does not come up and so on. Should I re-install Safari- download again? Just to check the images DO display in Explorer whi

  • Sending music from mbp to a bluetooth receiver

    hi everyone.  first time post. i have a mbp 10.7.2.  i get my internet via a log in wifi system (dormatory style).  i used to use my airport express to send music wirelessly to my stereo.  since moving to a new location the airport express (and apple

  • Disable an External Monitor?

    I am looking for a way to disable a second monitor (plugged into the Display Port of a late 2010 iMac 27") without unplugging it. Does anyone know of a software solution? When I am working I like that second monitor for desktop space, but other times