With the function "getEnhancedMicrophone",play will go wrong?

I want to write a program can pull the rtmp stream from FMS or push to FMS,something like video conference system.
At first,the program play normally.
But when I use the function "getEnhancedMicrophone" to get a microphone,it will go wrong.
The voice pauses from time to time.
Actually,I only get the microphone and havn't used it.
Here is part of my codes:
               import mx.controls.Alert;
                              private var nc:NetConnection;
                              private var ns:NetStream;
                              private var video_Pull:Video=new Video();
                              private var pullStreamName:String="c01";
                              private var mic:Microphone=new Microphone();
                              private function init():void
                                        nc = new NetConnection();
                                        nc.objectEncoding = ObjectEncoding.AMF0;
                                        nc.addEventListener(NetStatusEvent.NET_STATUS,netStatusHandler);
                                        nc.client=this;
                                        nc.connect("rtmp://localhost/live");
                                        //add this line will go wrong
                                        //mic=Microphone.getEnhancedMicrophone();
                              public function onBWDone():void{};
                              private function netStatusHandler(evt:NetStatusEvent):void
                                        if(evt.info.code=="NetConnection.Connect.Success")
                                                  pullRTMP(nc,ns,video_Pull,vd_Main,pullStreamName);
                                        else
                                                  Alert.show(evt.info.code);
                              private function pullRTMP(netConnect:NetConnection,netStream:NetStream,video:Video,videoDisplay:VideoDispl ay,streamName:String):void
                                        netStream = new NetStream(netConnect,"connectToFMS");
                                        video.attachNetStream(netStream);
                                        video.smoothing=true;
                                        video.width=videoDisplay.width;
                                        video.height=videoDisplay.height;
                                        videoDisplay.addChild(video);
                                        netStream.play(streamName);
                                        var clientobj:Object=new Object();
                                        clientobj.onMetaData=function():void{}
                                        netStream.client=clientobj;
I use Flash Builder 4.5 and Air 3.1.
This problem had puzzled me few days,someone for help?
Thanks for replies!

I think I can also add,using "getEnhancedMicrophone" is for cancelling the echo...
But I found it didn't work...
Maybe someone could tell me how to cancel the echo in Desktop Development...

Similar Messages

  • Problems with the function DBMS_XMLSCHEMA.copyEvolve

    I´m having problems with the evolution of xml-schema.
    First the function DBMS_XMLSCHEMA.copyEvolve works correctly, but since one week I get only errors. Strangely is the fact that I use the same files (xml-schema, xslt and xml instances) and the same SQL-Code. Even if I delete all tables, directories, ... with the drop instruction and create them again, I get only error messages. It is also strangely that the function DBMS_XMLSCHEMA.copyEvolve not works if the old and new xml-schema are identical and no XSLT-Stylesheet is handed over. Can by the function DBMS_XMLSCHEMA.copyEvolve something going wrong in the database ? Do I must recreate the database, and how can I do that by the XE? But that can not be a good solution.
    Has anybody a idea what can I do?
    Here is my error report:
    Error starting at line 1 in command:
    BEGIN
    DBMS_XMLSCHEMA.copyEvolve(
    schemaURLs => xdb$string_list_t('http://localhost:8080/internal/xmlschema/testschema.xsd'),
    newSchemas => XMLSequenceType(XDBURIType('/public/testschema_evolution.xsd').getXML()),
    transforms => XMLSequenceType(XDBURIType('/public/MapTotestschema_evolution.xslt').getXML()));
    END;
    Error report:
    ORA-30944: Fehler beim Rollback für XML-Schema "http://localhost:8080/internal/xmlschema/testschema.xsd" Tabelle "MYUSER"."XMLSCHEMATABELLE" Spalte ""
    ORA-02304: Ungültiges Objektidentifizierungsliteral
    ORA-30942: Fehler bei XML Schema Evolution für Schema "http://localhost:8080/internal/xmlschema/testschema.xsd" Tabelle <n/a> Spalte ""
    ORA-31088: Objekt "MYUSER"."BIN$QNQjNoYiRfC4KlQtnfUpMw==$0" hängt von Schema ab
    ORA-06512: in "XDB.DBMS_XMLSCHEMA_INT", Zeile 113
    ORA-06512: in "XDB.DBMS_XMLSCHEMA", Zeile 210
    ORA-06512: in Zeile 2
    Thanks David

    Can you try doing the following before running copyEvolve
    SQL> purge recyclebin
      2  /
    Recyclebin purged.
    SQL> alter session set recyclebin =  off
      2  /
    Session altered.
    SQL>and see if it works as expected.

  • Error thread java : problem with the function "resume 0x***"  (forum sun)

    One problem with the function of jdb occured when I tried to use it to
    pilot the processor with differents threads. In fact, I use a simple example with 2 threads.
    I stop the two threads with two breakpoint, and I want to resume one or the other (with the function "resume 0x****"), the one wich I resumed stop again on the breackpoint and I decide again to resume one or the other. All of that to obtain a tree of execution.
    I give you the code of the class and the code of jdb.
    CLASS: (it's just a object Room with a variable degre that I increment and decrement with two threads increase and decrease)
    public class Test{
         public static void main(String[] args){
              Room r = new Room();
              decrease de = new decrease(r);
              increase in = new increase(r);
              de.start();
              in.start();
    class Room {
         private volatile int degre=20;
         public void more(){
         degre += 4;
         public void less(){      
         degre -= 3;
    class decrease extends Thread{
    private Room room;
    public decrease(Room r){
              room =r;
    public void run(){
    try{ 
         while (!interrupted()){ 
              room.less();
    catch(InterruptedException e) {}
    class increase extends Thread{
    private Room room;
    public increase(Room r){
         room =r;
    public void run(){ 
         try{ 
              while (!interrupted()){
                   room.more();
    catch(InterruptedException e) {}
    JDB:
    Initializing jdb ...
    stop at Test:7Deferring breakpoint Test:7.
    It will be set after the class is loaded.
    runrun Test
    Set uncaught java.lang.Throwable
    Set deferred uncaught java.lang.Throwable
    >
    VM Started: Set deferred breakpoint Test:7
    Breakpoint hit: "thread=main", Test.main(), line=7 bci=30
    7 in.start();
    main[1] stop at room:16
    Set breakpoint room:16
    main[1] stop at room:20
    Set breakpoint room:20
    main[1] resume
    All threads resumed.
    >
    Breakpoint hit: "thread=Thread-0", room.less(), line=20 bci=0
    20 degre -= 3;
    Thread-0[1] threads
    Group system:
    (java.lang.ref.Reference$ReferenceHandler)0x10d Reference Handler cond. waiting
    (java.lang.ref.Finalizer$FinalizerThread)0x10c Finalizer cond. waiting
    (java.lang.Thread)0x10b Signal Dispatcher running
    Group main:
    (decrease)0x146 Thread-0 running (at breakpoint)
    (increase)0x147 Thread-1 running (at breakpoint)
    (java.lang.Thread)0x148 DestroyJavaVM running
    Thread-0[1] resume 0x147
    Thread-0[1]
    Breakpoint hit: "thread=Thread-1", room.more(), line=16 bci=0
    16 degre += 4;
    Thread-1[1] resume 0x147
    Thread-1[1]
    Breakpoint hit: "thread=Thread-1", room.more(), line=16 bci=0
    16 degre += 4;
    Thread-1[1] print degre
    degre = 24
    Thread-1[1] resume 0x146 //It's here the problem, thread 0x146 have to stop on the //next breakpoint of decrease but nothing happen
    Thread-1[1] resume 0x147
    Thread-1[1]
    Breakpoint hit: "thread=Thread-1", room.more(), line=16 bci=0
    16 degre += 4;
    Thread-1[1] clear
    Breakpoints set:
    breakpoint Test:7
    breakpoint room:16
    breakpoint room:20
    PS: I tried many other examples with other class and other kind of breakpoints, but, in any cases, on thread doesn't manage to resume. When I try with general resume (no specification of the thread), It works but it isn't interresting for me because I want to decide wich thread continue his execution.

    Hi,
    I have read the FAQ of the JMF.
    The problem was the jar files of the JMF were not in the JRE\BIN\EXT
    folder of the Java runtime!
    now it works!
    thanks
    Reg

  • TS3938 I have a problem with the CD player plays some species, others give me this letter no longer supported PowerPC

    I have a problem with the CD player plays some species, others give me this letter no longer supported PowerPC

    Educational software suffers from having been written many years ago, but the financial market is not such to give the publisher much incentive to update the software.
    The problem for you is that Top Notch 2 with ActiveBook was written and released by Pearson back when Macs utilized the PowerPC CPU platform.  In 2006, Apple migrated the Macs to Intel CPUs, but released their Operating Systems with an invisible translation program, Rosetta, so that the user could continue to use their existing library of PowerPC applications and take time to update them as needed.
    The problem arises in that Apple no longer continues to update Rosetta for inclusion in Lion and now Mountain Lion, so that your CD-ROM cannot be executed on your Lion Mac.
    Since Pearson looks unlikely to rewrite and release an Intel version of Top Notch 2, you must find a workaround that will play your CD-ROM and allow you to continue utilizing your ActiveBook.
    You do not indicate which model of Mac you are using.  If you upgraded it to Lion from Snow Leopard, you have these workarounds:
    1.  Revert to Snow Leopard
    2.  Partition your hard drive or add an external hard drive and install Snow Leopard into it.  This will allow you to "dual-boot" into Snow Leopard when you need access to run Top Notch 2.  You would then have to "dual-boot" back into Lion when you needed access to those features required by Lion.
    If you purchased a new Mac that came with Lion, you only have one workaround available to run Top Notch 2: 
    3.  Install Snow Leopard (with Rosetta) into Parallels
                                  [click on image to enlarge]
    There is an easier way to run your Top Notch 2 in Parallels if cost is not a significant factor for you.  You must purchase Snow Leopard Server from a third party souce, such as eBay, which when sold by Apple was $499 or more.  I now see that it can be purchased on eBay for as little as $51.  Parallels allows for easy installation of Snow Leopard Server into Parallels.
    If cost is a factor, then use the link above the photo to follow my instructions on how to install Snow Leopard client ($19.99 from Apple) into Parallels and achieve the same result.
    Lastly, you could purchase a used Mac that will allow Snow Leopard to be the boot OS X installed (wth the optional Rosetta installed).  But this seems like an expensive alternative just to run one piece of software; and subject to hardware failure without notice or recourse.

  • How to implement the function "Slow Play" using MPMoviePlayerController?

    Does anybody have idea to implement the function "Slow Play" using MPMoviePlayerController or some other indirect solutions? Thanks. Kevin.

    You can use the changeSelection(...) method to change the cell with focus.

  • 'Music' displays but won't play. Settings appear correct and iPhone is selected for output.  Startup screen intermittently displays with the lower pause/play volume bar for no clear reason..... developed at the same time as play failure.  Ideas????

    'Music' displays but won't play. Settings appear correct and iPhone (3G)  is selected for output.  Startup screen intermittently displays with the lower pause/play volume bar for no clear reason..... developed at the same time as play failure.  Ideas????

    Thank you for the replies.
    Appearane of 'Music' functions (I>>   > II   <<I,   plus volume slider)  on the lock/log in screen (when first turning on the iPhone) thus far seems without pattern, i.e. regardless of which if any applications are up in the background, and indeed even when all have been quit.
    All visual aspects of 'Music' appear normal after launch including the title scroll across the top in vertical mode. However, while pressing play (>) converts the play (>) icon to pause (II), selected song does not play and the elapsed time bar (upper end between the track count and the repeat/shuffle icons) remains stationary at 0:00 or at any point to which it is dragged.  When using home sharing this same problem persists regardless of what output is selected.
    Hope that may prompt a thought somewhere.

  • When I pre ordered my iphone 6 i was told I was going to get an additional 1 gig of data per month for a year.  It even shows it on the receipt i received with the phone.  When will I see that reflected on my account.  I have had my new phone for a week a

    When I pre ordered my iphone 6 i was told I was going to get an additional 1 gig of data per month for a year.  It even shows it on the receipt i received with the phone.  When will I see that reflected on my account.  I have had my new phone for a week and used tons more data than usual and am hoping that will save me this month.

    concretedonkey, I'm glad you were able to take advantage of this offer when you ordered your new iPhone 6. I can certainly review your account to ensure this was added for you. Please reply to the direct message I have sent you.
    AndreaS_VZW
    Follow us on Twitter @VZWSupport

  • Can i change my old iPad with the new one, i Will pay the difference... Do you have this kind of program?

    Can i change my old iPad with the new one, i Will pay the difference... Do you have this kind of program?

    If you are past the return date, you can sell the older iPad and put the money towards a new one.
    Plus, old iPads make great gifts ! ! !

  • My ipod will not sync with the computer, but it will charge?

    My ipod will not sync with the computer bt it will charge.. the ipod doesnt come up with "do not disconnect" anymore.. i have been puting music on it for the last week and all of a suden i cnt put music on anymore.. Whats the problem?

    If the ipod is no longer being seen by your computer, please try the following troubleshooting steps located on this website.
    http://docs.info.apple.com/article.html?artnum=61711

  • Some issue with the Function Module u0093'SKWF_FIND_BY_QUERY' in a BW ECC6.0

    Hi All,
    Need some urgent help..
    Iam facing some issue with the Function Module “'SKWF_FIND_BY_QUERY' in a BW ECC6.0 system.
    As shown below, in the function module, the Table “IT_PROPERTIES_RESULT” gets populated with some values based on inputs like IT_CLASSES, IT_QUERY, and ‘L’.
    This updation of “IT_PROPERTIES_RESULT” table is happening for some of the services sent through IT_QUERY and is not getting populated for some.
      call function 'SKWF_FIND_BY_QUERY
    exporting
      CONNECTION_SPACE         =
        OBJ_TYPE                 = 'L'
      PTYPE                    =
      X_STRICT                 =
    IMPORTING
      ERROR                    =
         tables
         CLASSES                  = IT_CLASSES
         QUERIES                  = IT_QUERY
         RESULT_OBJECTS           = IT_LOIO
      PROPERTIES_REQUEST       = PROPERTIES_RESULT        = IT_PROPERTIES_RESULT.
    The values are as follows:-
    Values getting populated in IT_CLASSES – BW_LO_TRAN               Values getting populated in IT_QUERY – 1) BW_QUERY, 2) /BIC/ZSERVICE
    I would like to know whether any Standard Customizing BW transaction is present that is maintaining “IT_PROPERTIES_RESULT” table properties  and fetching through this Function Module.
    Also, suggest how this issue can be resolved
    Thanks & Regards,
    Shailesh nagar

    Thanks Suhas. That definitely helped.
    Also the following links helped.
    http://help.sap.com/saphelp_nw70/helpdata/EN/86/1c8c3e94243446e10000000a114084/frameset.htm
    /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    Cheers,
    Preethi

  • I used Roxio VHS to DVD for Mac (have iMac with Snow Leopard) and the audio does not synch with the video when playing in iMovie.  Any suggestions to fix?

    I used Roxio VHS to DVD for Mac (have iMac with Snow Leopard) and the audio does not synch with the video when playing in iMovie.  Any suggestions to fix?

    Thanks for the reply.  I tried playing with detaching the audio in iMovie, but with 20+ hours of video to correct, it would take too long.  After 28 hours, Corel/Roxio tech support replied that it is a known bitrate mismatch problem and they have no real fix.  I strongly suggest not to buy this product.

  • I'm considering buying CC LR/PS package. My camera is Sony a7 - raw ARW. I've been editing using PSE10 and ver 8.7 of the external Adobe DNG converter. Will I be able to open the DNG files in LR with the edits preserved? Will I be able to open the PSD fil

    I'm considering buying CC LR/PS package. My camera is Sony a7 - raw ARW. I've been editing using PSE10 and ver 8.7 of the external Adobe DNG converter. Will I be able to open the DNG files in LR with the edits preserved? Will I be able to open the PSD files in LR with the edits preserved? Any import/catalog etc issues between PSE10 and LR?

    Lightroom has no problem reading DNG files. Whether the edits you have done to the DNGs you have originally edited in Photoshop Elements 10 I'm not sure. ACR edits made to DNGs are saved in the DNG file itself, as apposed to a XMP sidecar file, so LR should see those edits. At the worst you will get an exclamation mark in the upper right hand corner of the imported DNGs and clicking on that exclamation mark you will get a dialog box asking you to either import settings from disk or overwrite settings. you would select import settings from disk.

  • I notice that in the new update to Firefox if I have two bookmark folders with the same name Firefox will end up deleting one of them.

    Both of these problems with the bookmarks started occurring after I installed the latest update to Firefox.
    I frequently have bookmark folders of the same name under the older version of Firefox and it has never been a problem before. It is now, and I notice that after I've created two folders with the same name Firefox will end up deleting one of the folders, almost always the older of the two folders (the one created first, chronologically).
    I have also noticed that with the new update Firefox will occasionally fail to open all bookmarks in Tabs if I've asked it to do so. I can simply close Firefox and reopen the program and it will work again, but I don't know why this bug is occuring in the first place.

    You are using two IP address ranges.. which results in the printer being cut off from the other network..
    Why do you have two networks?? It is always better in home situations to run one network.
    If you have work setup with an enterprise level router you can setup routes between the two networks.. this is not possible on domestic level apple routers.

  • I urgently need to know how I can connect 8 thunderbolt display, I was thinking with the new mac pro will come out, but I wonder if it is possible to connect an iMac to 4GB of graphics card, but suffers from the imac. thanks

    I urgently need to know how I can connect 8 thunderbolt display, I was thinking with the new mac pro will come out, but I wonder if it is possible to connect an iMac to 4GB of graphics card, but suffers from the imac. thanks

    I tightened all HD screws and it didn't help. With the machine running and side of the case off, I physically stopped both the video card fan and the front case fan with my finger for a couple seconds and the noise continued. I also took all hard drives out one by one and rebooted each time. Again, the noise continued until I took out the Mac HD in Bay 1, rebooted, and I had a very quiet, silent machine. The issue is the hard drive in bay 1 that shipped with the computer, it's without a doubt causing the hum/woosh sound. I still need to know if I can safely swap the Mac HD from bay 1 to bay 4 without any issues to the operating system. I would like to try that to see if it dampens the noise but I also want to make sure this swap won't screw up my machine at all.

  • Please help me out with the function code of print option in module pool

    please help me out with the function code of print option in module pool, along with CASE condition.
    regards,
    asif

    Hi
    you can use the Function module
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING
        destination            = 'LP01'                       "'Printer name
        list_name              = 'TEST'
        list_text              = 'SUBMIT ... TO SAP-SPOOL'
        immediately            = ' '
        line_size              = '2000'
        no_dialog              = 'X'             "pass space to Pop screen for Print option
      IMPORTING
        out_parameters         = wa_pri_params
        valid                  = w_valid.
    "next call below things
      NEW-PAGE PRINT ON NO DIALOG PARAMETERS wa_pri_params.
         "and try to Print the values inside the new-page
      NEW-PAGE PRINT OFF.
    Prabhudas

Maybe you are looking for

  • How to see materials which donot comes under product cost collector

    hello every body, can any one help me in finding  materials which donot comes under product cost collector. thanks for all the people who are supporting me regards, Bh.krishna mohan

  • Source System Mapping in QC

    Hi Experts, Iam doing Transport from Dev to QC, Everything went well.Small Problem is PC Source system (DataSource is Inactive)for all PC Source system files. Pl Help.Urgent.

  • Large / Long recording problem

    I use a my iPod and a iTalk to record some rather lengthy seminars, between five and twelve hours. The problem is when I try and listen to these recordings on my iPod later on. It will work for a bit, but if I stop listening (turning the iPod off) an

  • Submit stmnt problem

    Hi All, Am encountering a strange problem with submit statement. am calling   submit zxxxx ......exporting list to memory and return stmnt in my prog..,, zxxx is a program which creates invoice taking sales order as input and am displaying both sales

  • Using thread interrupts

    My application consists of a progress bar that updates every second. Here is the class:    static class UpdateProgress extends Thread         public void run ()             try                 for (int i = 0; i < GUI.songProgress.getMaximum (); i++)