iOS front camera?

I'm trying to get the fron camera to work, but I don't know exactly how I'm supposed to use the method "getCamera '... I used a slightly modified version of the code of Raff who it affected, the project specific code has been removed... Also, I create a program by tabs, however, whenever I pass it tabs reconnection attempts and the streem is interrupted.

<? XML version = "1.0" encoding = "utf-8"? >

< s:View ' xmlns:fx = ' http://ns.Adobe.com/MXML/2009 "

" xmlns:collaboration = 'com.adobe.rtc.collaboration. *"" "

" xmlns:authentication = 'com.adobe.rtc.authentication. *"" "

" xmlns:rtc ="http://ns.adobe.com/rtc"" "

" xmlns:s = 'library://ns.adobe.com/flex/spark" title =""viewActivate = "init ()"> test2"

< fx:Declarations >

" < collaboration: WebcamPublisher id ="webcamPub"connectSession ="{ESS}"""/ > "

{"" < collaboration: WebcamSubscriber id = "webcamSub" connectSession ="{ESS}" webcamPublisher = "{}webcamPub}"""/ >

" < collaboration: AudioPublisher id ="audioPub"connectSession ="{ESS}"""/ > "

" < collaboration: AudioSubscriber id ="audioSub"" connectSession = "{ESS}"""/ > "

< / fx:Declarations >

< fx:Script >

             <! [CDATA]

import com.adobe.rtc.authentication.AdobeHSAuthenticator;

import com.adobe.rtc.clientManagers.MicrophoneManager;

import com.adobe.rtc.events.AuthenticationEvent;

import com.adobe.rtc.events.CollectionNodeEvent;

import com.adobe.rtc.events.ConnectSessionEvent;

import com.adobe.rtc.events.SessionEvent;

import com.adobe.rtc.events.SharedPropertyEvent;

import com.adobe.rtc.events.StreamEvent;

import com.adobe.rtc.messaging.UserRoles;

import com.adobe.rtc.session.ConnectSession;                

import com.adobe.rtc.sharedManagers.descriptors.StreamDescriptor;

import com.adobe.rtc.sharedManagers.descriptors.UserDescriptor;

import com.adobe.rtc.sharedModel.SharedProperty;

import mx.core.IFlexDisplayObject;

                    [Bindable]

protection var sess:ConnectSession;

                    [Bindable]

private var auth:AdobeHSAuthenticator;  

privée fonction init() :Sub

                    {                               

                           if (sess==null){

auth = new AdobeHSAuthenticator();

sess = new ConnectSession();

sess.authenticator = auth;

                                 auth.userName = "" ;

                                 auth.password = "" ;

                                 auth.protocol = "rtmfp" ;

sess.roomURL ="""https://connectnow.acrobat.com/foobar/footest"""

sess.authenticator = auth;

sess.addEventListener (SessionEvent.ERROR, onEventNotification);

sess.addEventListener (SessionEvent.SYNCHRONIZATION_CHANGE, onEventNotification);

auth.addEventListener (AuthenticationEvent.AUTHENTICATION_FAILURE, onEventNotification);

auth.addEventListener (AuthenticationEvent.AUTHENTICATION_SUCCESS, onEventNotification);      

                                

                                 .GetCamera camera("1");

                           }                               

                           if (! sess.isSynchronized) {                                   }

                                 Sess.login ();                          

                           }

                    }

                    /**

                    * Process  Events

                    */

private function onEventNotification(p_event:Event):Sub

                    {

If (p_event.type == SessionEvent.SYNCHRONIZATION_CHANGE) { }

                                 if (sess.isSynchronized) {                                                                                                                                                     }

webcamSub.subscribe ();

webcamPub.publish ();

audioSub.subscribe ();

                                        audioPub.publish ();

camera.addChild (webcamSub);

webcamSub.width = camera.width;

webcamSub.height = camera.height;

If (sess.userManager.myUserRole == UserRoles.OWNER) { }

sess.roomManager.autoPromote = real

                                        }

                                 }

                           }

                    }

             ]] >

< / fx:Script >

       < s:Group width = " " 100% "height =" 100% " id=" Group " >

"" < s:SpriteVisualElement id = "camera"x ="0" y ="0" width = "100%" height ="50%''/ >

< / s:Group >

< / s:View >

Camera.Names returns a list of the names of the camera. If you have a front camera face to face one of these names will be something like "Front" (not "to remember the exact name).

Thus, in order to take a camera, you scane list names for the name that you want and do not forget the ID, then you call Camera.getCamera with the STRING value for the id ('0' to '1' to 1 and 0). Very weird, but this is how it works now (I think that all of this is to allow you to call Camera.getCamera () and get the default camera (id = null).

For low-COST airlines, you must assign the camera index in WebCamPublisher:

var webCamPub:WebCamPublisher;

...

webCamPub.cameraNameIndex = "1"; or whatever the index you need, have THONG

Regarding the flow to be interrupted, I think the problem is that yo ucreate ConnectSession in the view and probably something 'bad' happen when change you the display. I am also following a recent thread in the "Flex and Flash Builder Forums" (search for "RE: netConnection persisted between views?" I wonder if it can be linked.)

I'd start penetrating the logon session outside the view, the main application code or a shared ActionScript module management.

If your application has one view, FlashBuilder 4.5.1 now allow only build an application no views. I tested and it works fine.

If you still have a problem, then it might be related to the activation of view code break something, but I suspect you will need to bring up with the Flash Player or Flex enforcement team.

Tags: Adobe LiveCycle

Similar Questions

  • My front camera not working after update to ios 9 (Iphone 5) Please help me to solve this

    Hello

    My front camera of the iphone 5 does not work after update to ios 9, please help?

    I have the same problem on my 5s.  Just after the upgrade to 9.3 camera is black.

    Work, rear camera, but the camera application usually freezes before let me pass.  Sometimes a warning icon yellow appear in enforcement camera, touch, he says the flash does not work for the unit to cool down.  No change after a restore is complete.  Other applications of the camera have the same problem.

    iPhone 5, iOs 9.3

  • Access to the front camera (iOS)

    It is front-facing camera to Air 2.6 support... but is there a documentation, how to get it? I can not find...

    Hi James Kudelka

    Please visit http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/Camera.html

    and refer (getCamera method of the camera)name:String = null)

    where for the "name" parameter, you can pass the name of the camera that you want to reference or you can get the index of the camera, which is "1" for the front camera, for example. : Camera.getCamera("1");

    Thank you

    Nimisha

  • Screen flashes while taking pictures using the Auto flash and front camera on

    Device: iPhone 7 more

    iOS: 10.0.2

    Question: Screen flashes with blank white light while taking the photo using a front camera with the flash light on which is so annoying

    Note:

    After taking the photo, the photo is visible and doesn't have any problem

    I could be wrong, but I think that this is how flash works for the front facing camera.

  • Screen fades when I put a sticky on the front camera on my iMac

    When I put a paper on the camera on my iMac (to ensure privacy), it fades the screen brightness. How can I fix it?

    I am running Yosemite 10.10.5

    I want to cover the front camera on my iMac for confidentiality at all times.

    I put a sticky note pad on it and then my screen fades completely.

    How can I fix it?

    Thank you!

    MinSanDiego

    Not to do so.

  • Is anyone having problems with their Apple Watch since the iOS 10 came to life?

    Is anyone having problems with their Apple Watch since the iOS 10 came to life?

    Hello

    If you have not already done so, it can also help update your Apple Watch to the latest version of the software:

    Update the software on your Apple Watch - Apple Support

  • 6 s iPhone front camera does not work

    Anyone know why my front camera of the iphone 6 s does not work?

    The rear camera works fine, but when I turn the secondary camera, first he showed a blurred image of rear camera and then next I can see, it's a cliché of the last capture of the rear camera (which automatically captures). Is - this problem is hardware or software? I never drop my phone, but have just updated from multiple applications. I tried several solution by resetting the phone, restore to the original (new phone option) and none of them works for me. Bought the phone 2 months of the United States.

    Sorry, but if it back to factory settings without using the backup data did not return the front camera function, you need to get the phone repaired, your camera is still under warranty.

    If you are outside the country of purchase, you will need to bring him back to this country, for an iPhone warranty is valid only in the country of purchase, and Apple is not delivered at the international level.

    Launch a service request

    Find an Apple authorized service provider

    Make an appointment at the Apple Store

  • With the front camera, microphone does not work, but with the camera back, it works fine. Please give me solution

    whenever I have to video chat with anyone with front camera on they won't listen to me. Even when I record with fromt camera microphone does not work with the camera back, everything works correctly and even with siri, I can't talk more but when I take a call they can hear perfectly

    Get help with microphones on your iPhone, iPad and iPod touch...

  • replacement of the iPhone 6, front camera, bumps

    Hi all

    There are similar issues in the forum, but I guess mine is a little different.

    My iPhone still guaranteed 6a standart. Displaced front camera which is a common problem and phone turns off automatically when the battery is about 10%. When I plug the charging cable, it lights immediately. There are the problems of the phone.

    And there are a few bumps, scratches on the phone as below:

    .

    Are these cosmetics of dents or not? Apple repair or replace this phone?

    Warranty does not cover scratches or bumps.

    As for the battery, 10% is why iPhone is OFF to protect the battery.

    It is not advisable to drain your battery at all.

  • Front camera is not working on Samsung Android

    Hi all

    Try to solve this problem - about 3 days ago the front camera has stopped working on Skype. I use Skype every night and never had this problem before. The rear camera works fine but not the front camera.

    There is only a problem in the Skype application. I am able to use other services of video calls without any problems.

    I tried to upgrade to the latest version available (6.15.0.1126), but it has not changed anything.

    Maybe he auto update to cause the issue? I see the other comments on the page of game google saying they are experiencing the same problem but that you haven't seen all the messages here about it.

    Is there something I need to do to make this work or is it a bug?

    Yes, there was bug fixes that would switch of the camera. I'm glad to hear that it works better for you now.

  • Front camera does not work on Galaxy tab 4 t - 230 with Skype v6.13.0.608

    Hello! Today, I installed Skype on my Galaxy tab 4 t - 230 (WiFi) with Skype version 6.13.0.608. The front camera won't work. However, the rear camera works very well. Even when I try to turn the camera, she isn't doing. Help, please.

    I got it works simply by uninstalling the app and put it back on my tab. Now it works very well with the front camera.

  • front camera XA not developed

    HY, everyone, I just bought a xperia xa and noticed that the front camera is not focusing. concentrated its just 5 cm from the lens. all solutions?

    Hello. You probably have a defective unit. try to recover through pc-Companion. Does not help - carry in service

  • front camera

    Hello
    I have a z3 compact.
    The front camera loses its image and the screen is black!
    Can you help me?
    Thank you

    I take my phone to the service center they reset it and told me that the problem is not a software problem and they should open the phone and test it. I regretted because I think that my phone can lose the waterproof ability to water.
    A they after that I wash my phone with SOAP and water, the front camera suddenly repaired and up to now it works
    Thank you for your support

  • Pink/Purple front camera in the dark.

    My front camera taking purple pictures so in the dark. I tried this and I downloaded google camera to see if it's a soft problem. I discovered that the front camera does the same with the google camera app. What should I do? What a manufacturing problem? I want to clarify that this phone is brand new for about 2 months and it fell once half a metre into the bathroom and nothing happened. I have taken great care and bought a box and a screen protector. So, what do you propose?

    Hi AndreiArseniu,

    Welcome to the community! Since you are new, please make sure that you have checked our Forum.

    In this case, it may be best to contact Sony Mobile service customer of in your area, they should be able to help solve this problem.

    http://support.sonymobile.com/global-en/contactus/

  • Photos of the Q10 blackBerry with front camera?

    Hello

    Is it possible to move to the front camera to take pictures?

    Thank you

    Hello, yes it is possible. After in-app camera, simple click the three points in the lower right corner and hit "switch Camera.

Maybe you are looking for

  • Warning battery dv4-2165dx

    My laptop DV4-2165dx, who is aged 4 years, now gives me a warning message at every single boot upward on the internal battery being low ability. This may very well be true because of his age, but I don't really like, and it is certainly unnecessary e

  • Can I upgrade my laptop?

    Hey, I have a laptop of HP 2000. The product number is D1E82UA # ABL I usually use this for school but I want to play GTA IV on it and according to can you run it, all right but my CPU is not powerful enough. The processor on this model is an E1 AMD

  • WHS backup impossible secondary drive (data)

    A few days ago my HP Mediasmart Server running WHS is no longer can all backups on my Vista Ultimate machine. When I check backups, it seems that my drive C (74 GB Raptor) can be saved but the drive D (750 GB Samsung) could not. He suggested to run C

  • BB app world and blackBerry smartphone browser do not work

    My BB was to hang on for a day last week, so I went back to the store for service and 3 days later they msn me and told me that I have a new phone for the replacement.  I thought that the problem I had before must be solved, but it didn't! I found 2

  • How can I stop the firewall blocking ports of gaming?

    Original title: port blocking of firewall, that can not unlock & failure audit I had a very annoying problem with my ports lately. I don't think I did something to change my settings, but I had a little virus at the time, it began to happen, I get re