WebcamPublisher change event incorrect behavior?

When using a webcamPublisher and listening to the change event I only get an event fired when the camera starts publishing, but not when it stops.
change
event
Event object type: flash.events.Event
Dispatched when the camera is accessed for publishing or is stopped.
If I use the isCameraPublishing event instead, then I will get an event fired when I stop or start the camera. 
isCameraPublishing
event
Event object type: flash.events.Event
Dispatched when the user's camera publishing state changes.
The only difficult part, and maybe this can be changed in the docs (or maybe I should just know better) is that this isCameraPublishing event needs to be setup like this: webPub.addEventListener("isCameraPublishing", webPubChange);  because in your code it is dispatched like this: dispatchEvent(new flash.events.Event("isCameraPublishing"));  Maybe I'm just lazy but I'm so used to using the class to define the event name that I expected to be able to do this at first webPub.addEventListener(flash.events.Event.isCameraPublishing, webPubChange);
Just reporting what looked like odd behavior to me.
-Eric

Hi,
For stopping, you need to listen to STREAM_DELETE event. You can look at player 9 source for reference. isCameraPublishing is only fired when camera starts.
Thanks
Hironmay Basu

Similar Messages

  • How to populate data in the data table on combo box change event

    hi
    i am deepak .
    i am very new to JSF.
    my problem is i want to populate data in the datatable on the combo box change event.
    for example ---
    combo box has name of the city. when i will select a city
    the details of the city should populate in the datatable. and if i will select another city then the datatable should change accordingly..
    its urgent
    reply as soon as possible
    thanks in advance

    i am using Rational Application Developer to develop my application.
    i am using a combo box and i am assigning cityName from the SDO.
    and i am declaring a variable in the pageCode eg.
    private String cityName;
    public void setCityName(String cityName){
    this.cityName = cityName;
    public String getCityName(){
    return cityName;
    <h:selectOneMenu id="menu1" styleClass="selectOneMenu" value="#{pc_Test1.loginID}" valueChangeListener="#{pc_Test1.handleMenu1ValueChange}">
                        <f:selectItems
                             value="#{selectitems.pc_Test1.usercombo.LOGINID.LOGINID.toArray}" />
                   </h:selectOneMenu>
                   <hx:behavior event="onchange" target="menu1" behaviorAction="get"
                        targetAction="box1"></hx:behavior>
    and also i am declaring a requestParam type variable named city;
    and at the onChangeEvent i am writing the code
    public void handleMenu1ValueChange(ValueChangeEvent valueChangedEvent) {
    FacesContext context = FacesContext.getCurrentInstance();
    Map requestScope = ext.getApplication().createValueBinding("#{requestScope}").getValue(context);
    requestScope.put("login",(String)valueChangedEvent.getNewValue());
    and also i am creating another SDO which is used to populate data in datatable and in this SDO in the where clause i am using that requestParam .
    it is assigning value in the pageCode variable and in the requestParam but it is not populating the dataTable. i don't no why??
    it is possible that i may not clear at this point.
    please send me the way how my problem can be solved.
    thanks in advance

  • Possible bug - Missing click event when handling change event

    Using Flex 4.5 SDK, I have a spark ComboBox and a Button next to it for applying a filter according to ComboBox selection.
    I listen to both the ComboBox's change event & the Button's click event (for different functions).
    When I manually delete the ComboBox text value from its TextInput (i.e. changing selected index to -1) and immediately click on the Button,
    the click event-handler function is not being called and only the ComboBox's change event-handler function is executed.
    (Selecting a value from the ComboBox's list and clicking on the button triggers both methods on the right order.)
    There's also a state definition for the module, but it isn't being changed during these operations...
    Is this a bug or a correct behavior? Am I missing something here?
    Any workaround suggestions?
    (I thought of listening also to mouse-down or mouse-up on the button instead, but haven't tried it yet...)
    *** UPDATE ***
    When using the Button's mouseDown event the behavior is as expected, so there's a simple workaround.
    However, it seems to me like there's a bug with the Button's click event listener or something...
    *** UPDATE #2 ***
    I created a test application for that and couldn't reproduce the problem.
    Then I figured out the problem and solved it.
    It's a bit emmbarrasing, but I actually disabled the button (enabled=false) as in a child method of the change handling code...
    (If there is no value, don't allow applying the filter - It makes sense! )
    Anyway... No issue after all.
    However, I choose to leave this post (and not delete it) as an example of identifying and resolving a strange behavior in a complex application.

    There's no need.
    Please read the section UPDATE #2.

  • ADS with af:poll component does not reliably deliver DB change events

    I took the Steve M's sample #156 (http://blogs.oracle.com/smuenchadf/examples) as mentioned in an earlier forum post (Re: ADF BC and the Active Data Service using af:table and modified it to use an af:activeOutputText instead of the adf:table to display the output as a result of database modifications.
    As long as I open 5 or less tabs/browser windows (combination of IE and Firefox Mozilla) with my sample application, I can see the database changes being actively delivered to each of the browser/tabs correctly. However, when I open more than 5 browser/tab windows for my application and make a database change, then most of the times the active event does not seem to be delivered to any of the browser/tab windows and the af:activeOutput text field is not updated with the latest database change. At this stage, the database change active event is not just delayed it just does not seem to fire, the only way at this stage to get the database change to show up is to open another browser tab/window. When you do that, then not only the newly opened tab/window get the latest database change but also the tabs/windows that had been opened earlier suddenly receive the database change that they had not received before the new tab/window was opened. It almost looks like the tabs/windows had received the database change event but it was queued up and for some reason was not able to refresh the browser/tab window.
    I am working off an ADE application view that has the underlying FMWTOOLS_MAIN_GENERIC_110116.1002 label. Is this a known issue and if so when can a fix be expected for this? If you need my application, I can zip it up though I believe I was getting similar behavior even with Steve's original sample 156 for more than 5 browser/tab windows.

    Hi,
    if I am correct, then you are from Oracle and should use internal forums or mailing lists.
    Frank

  • LV7: how to catch 'Value change' event for cursor position in XY graph?

    I try to catch an event when the cursor position of a graph's cursor
    changes. I created a reference for the cursor array and registered a dynamic
    event 'Value change' for it. The event does not fire when the cursor changes
    (either by dragging it with the mouse or by direct entry of a new value in
    the cursor's X or Y fields. In contrast, when I register e.g. the 'Mouse Up'
    event for the cursor array, the event IS detected.
    -Franz

    So this is the same behaviour as that of a regular control which also does
    not fire a 'Value changed' event when it gets updated by e.g. writing to a
    local.
    At least the cursor's behavior is consistent then...
    But unfortunately also the direct user interaction with the cursor's numeric
    field does not fire the event, which is NOT consistent.
    I was trying to catch cursor changes in my event loop and had used a 'Mouse
    Up' event of the graph indicator to look for cursor changes (whose last
    position I had kept in a local or shift reg). In order not to miss a direct
    user interaction in the numeric field I added the dynamic event 'Value
    change' to the same event case, but with no success, it missed the direct
    entry ...
    according to what you say this seems to b
    e a bug then...
    -Franz
    "Greg McKaskle" schrieb im Newsbeitrag
    news:[email protected]..
    > > I try to catch an event when the cursor position of a graph's cursor
    > > changes. I created a reference for the cursor array and registered a
    dynamic
    > > event 'Value change' for it. The event does not fire when the cursor
    changes
    > > (either by dragging it with the mouse or by direct entry of a new value
    in
    > > the cursor's X or Y fields. In contrast, when I register e.g. the 'Mouse
    Up'
    > > event for the cursor array, the event IS detected.
    > >
    >
    > The reason is that value change events fire when user action directly on
    > the control changes its value. They do not fire when other programmatic
    > value changes occur. If you are looking at a value change on the cursor
    > palette, user interaction with the numeric should fire it, but updates
    > due to cursor movement are more like programmatic updates.
    >
    > Additional events will likely be added in future
    releases, and these may
    > make it easier to catch cursor movement events on a graph.
    >
    > Greg McKaskle
    >

  • Unexpected event structure behavior

    Attached is a snippet (2009) that is not behaving as I expect. You can try to type in an entry in the control that isn't in the pull-down, then click out. There will be no visible entry in the control, but the event structure runs anyway. Is this expected? I had to add code to a VI to account for the event case running even though there was no entry in the control.
    Solved!
    Go to Solution.
    Attachments:
    unexpected behavior.png ‏30 KB

    Apologies in advance, I do not have LV here to test, but based on reading the replies I feel like something is missing here.
    With the Combo Box, clicking outside the control is like hitting enter, the check mark button, etc.  It will fire the Value Change Event even if the value is the same.  This is true for all controls.  It is more of a Value Entered event.  Pressing Escape is the proper method to cancel the entry.
    If you enter an invalid string by clicking as described, the value will be empty and the Value Change event should fire.  This should be reflected in NewVal="".  OldVal *should* be correct, is it not?  Doing it twice should give you OldVal=NewVal="", but not the first time.  I am almost certain I would have seen this bug if it actually exists.
    In short, I expect that entering an invalid string will fire the Value Changed event.  I do not expect OldVal to equal NewVal unless an invalid entry (or the same valid entry) was entered twice.  Does it really on the first try with an invalid entry (valid followed by invalid)?  I say check for NewVal="" and if so either complain to the user or write OldVal to the ComboBox Value property or local variable. 

  • Execute script on wallpaper change event

    My wallpaper is set to change every 30 mins.
    How do I catch the wallpaper change event and execute a script when the wallpaper changes?
    -R

    Your understanding/use of with timeout in incorrect.
    with timeout tells AppleScript how long to wait for applications to execute the specified commands. Therefore in your example:
    with timeout of 0 seconds
    tell application "Finder" to set current_pic to desktop picture
    You're saying 'wait indefinitely for the Finder to get the current desktop picture'. Under normal circumstances that task would take a few milliseconds, at worst, so setting a timeout doesn't make much sense. You're also checking the desktop picture twice per iteration, which is approximately double the amount of work you need to do.
    Your script would be better written using an idle handler, like:
    global old_pic
    on run
      tell application "Finder" to set old_pic to desktop picture as alias
    end run
    on idle
      tell application "Finder" to set current_pic to desktop picture as alias
      if current_pic is not old_pic then
        display dialog "Desktop pattern is different"
        set old_pic to current_pic
      end if
      return 10 -- check again in 10 seconds
    end idle
    In this way the desktop picture that's current when the script is launched is stored in a global variable. For each iteration of the idle handler the script gets the then-current desktop pattern and compares it against the original (so it only gets the desktop pattern once per iteration).
    If they differ then the script posts a dialog (could be any action you want to take) and resets old_pic to reference the current desktop picture (so that next time around it compares the desktop to what we have now, not the original one when the script launched).
    Finally the return 10 tells AppleScript to check again in 10 seconds (could be any time interval you like, depending on how soon you want to detect changes).
    The ObjC solution is neater since it adds a hook into the system to call your code when the system environment changes. Not as clear/legible as AppleScript, of course, but it doesn't offer an even more elegant solution.

  • Value-Changed Events

    There are two basic events, action and value-changed events.
    How is the server informed of a value-changed event? Does this include javaScript? If not, how is this handeled?
    Thx,
    Sven Haiges

    JSF is a server-side technology, so while JavaScript can be generated for some client-side behavior, the bulk of the processing (and the only processing that is guaranteed to work for all client types) happens on the server.
    Value-changed events are generated on the server when the form is submitted, by comparing the component's old value to the new value recieved with the request. In other words, these events are not triggerd by simply changing the value in the browser; the form must be subitted before the event is triggered (which, of course, can be initiated by JavaScript code immediately when the value is changed in some client-types).
    I hope this helps.

  • Issue in execution of Dynamic action on change event

    Hi,
    Greetings.
    I have scenario, where I have one select list (P_CATEGORY) and one shuttle control (P_ROOMS) on page.
    The values of the shuttle list is being populated based on the selected value in select list.
    The left pane of shuttle control's value based on LOV and source of the shuttle item is a plsql function, which returning colon separated value list.
    So that returned values shown in the right pane of shuttle.
    The LOV values are getting being populated using cascading LOV i.e based on the of Select List item. But the Shuttle source values not getting auto refresh and for achieving that I've created a dynamic true action on change event of Select list.
    The dynamic action is with :
    Action : Set Value
    Set Type : PL SQL funciton body
    Page items to submit : P_CATEGORY (this is select list)
    Escape Special Character : Yes
    Suppress Change event : Yes
    Affected Elements -
    Selection type : Item(s)
    Item(s) : P_ROOMS
    This is perfectly working on Firefox but not working on IE9 & Google Chrome.
    I've debugged in both IE9 & Google chrome and found the dynamic action get executes ajax call and the values get back but not rendering on the screen. i.e not assigning to the item.
    So can you please advice me what will be a workaround for this issue?
    I am using Application Express 4.1.0.00.32 .
    I'll appreciate your prompt response.
    Thanks & Regards,
    Jaydipsinh Raulji

    I don't understand why this is not working withouth seeing an example, there might be multiple processes working on the item.
    Anyway if the value is returned check if the value is in the session aswell. If it is in the session but not on the page that means you will need to find a way to bring it from the DB to the page. You can do this by adding an action to your DA:
    Action: Execute PL/SQL code
    PL/SQL code: NULL;
    Page Items to Return: your shuttle item

  • 'CHANGE' event not triggering for BTE 2214 on park/change from FBV1/FBV2

    I have designed a workflow template for FI parking. If the parked document is rejected, i need to trigger FIPP 'CHANGE' event for sending workitem to approver when someone changes the parked document. In SWEL event trace, the 'CHANGE' event is not getting raised.
    So i implemented a BTE 000002214 and now i am able to raise 'CHANGE' event and capture it in workflow. But this is only working when i park a document using FV50 transaction and later change it.
    But when i park a document using FBV1 and then make changes from FBV2, the 'CHANGE' event is not being triggered in SWEL. Should i implement some other BTE like 2218 etc? Can you please help?

    Hi Gokul,
    You can try handling the SAVE event instead of the CHANGED event.
    T-code FBV2 will not allow you to save the document unless you make some changes.
    Try implementing BTE 2218 and revert.
    Thanks,
    Sreekanth

  • Dynamic Action, validation check, on an Item, could not use Change event

    I am learning how to use Dynamic Actions in a 3.2.x app that was upgraded to 4.0.x. I wanted to share what I learned adding client side validation with these actions. Perhaps an Apex guru could suggest an easier method to use this feature.
    I have an existing function where a user selects multiple rows in a report page, and then assigns a single status and enters justification text for the selected rows in another page, then saves changes (via submit).
    One item, justification, is required. I replaced my JavaScript validation of an empty value, e.g., P10_JUSTIFICATION.value, with a dynamic action. The Change event was a candidate for this item, with the "is not null" Condition. However, it is possible to initiate this screen to review the status, overlook the justification text and immediately select a button to save changes. No Change event has fired. The Before Page Submit event was applicable here. This Event selection in the wizard does not provide the Item for definition and then the Condition wasn't the right context though available for selection. I selected JavaScript expression for the Condition, actually entered my original JS test expression, and created one True Action. The True action displays an Alert to tell the user that required text is missing.
    Test of this DA was not completely successful. The alert appeared but the page went on to submit anyway. I found I had to add another True Action, Cancel Event, to stop the submit. The DA was then successful.
    The Apex site examples, [http://st-curriculum.oracle.com/obe/db/apex/r40/apexdynactions/apexdynactions_ll.htm] , do a great job showing use of Change and Set Value events for Items but a user may not always navigate through items. These features were promoted for developers with no to little knowledge of JavaScript to use Apex for application development. This DA required using/understanding JS anyways.
    My next step is to implement actions on a tabular form that that has required values. It is disconcerting that I have read in the forum that the column value references such as f0x and its row number are required to get it all working (as a DOM or JQuery selector). I have already found that tabular form columns can be re-ordered from v3.2.1 to 4.0.x. I was hoping I could declare dynamic actions or simpler Javascript methods that would not rely on f0x array references.
    Thanks,
    Kelly

    It is disconcerting that I have read in the forum that the column value references such as f0x and its row number are required to get it all working (as a DOM or JQuery selector).Not necessarily. One possibility is to use descendent jQuery selectors to attach the dynamic action event handler by column heading:
    td[headers="HIREDATE"] input

  • No Data Change event generated for a XControl in a Type Def.

    Hello,
    Maybe I am missing something but the Data Change event of a XControl is not called when the XControl is used in a Type Def. or Strictly Type Def. (see the attached file).
    There may be some logics behind it but it eludes me. Any idea of why or any idea of a workaround still keeping the Type Def. ?
    Best Regards.
    Julian
    Windows XP SP2 & Windows Vista 64 - LV 8.5 & LV 8.5.1
    Attachments:
    XControl No Data Change event.zip ‏45 KB

    Hi TWGomez,
    Thank you for addressing this issue. It must be a XControl because it carries many implemented functions/methods (though there is none in the provided example).
    Also consider that the provided non-working example is in fact a reduction of my actual problem (in a 1000-VI large application) to the smallest relevant elements. In fact I use a  typedef of a mix of a lot of different XControls and normal controls, some of them being typedef, strictly typedef or normal controls and other XControls of XControls (of XControls...) in a object oriented like approach...
    Hi Prashant,
    I use a typedef to propagate its modifications automatically everywhere it is used in the application (a lot of places). As you imply a XControl would do the same, though one would like to construct a simple typedef when no additional functionality is wanted.
    The remark "XControl=typedef+block diagram" is actually very neat (never thought of it that way) because it provides a workaround by transforming every typedef into a XControl. Thanks very much, I will explore this solution.
    One issue remains: All normal controls update their displayed value when inserted into a typedef but not XControls. Data change event is not triggered. I known that XControls have some limitations (no array of XControls) but I would say, like TWGomez, that this is a “bug” considering the expected functionality.

  • When I try to add a new event to iCal a dialog says "you can't add or change events in the Birthday Calendar". How do I cancel this?

    When I try to add a New Event to iCal a dialog box keeps saying "you can't add or change events in the Birthday Calendar". iCal is, however, receiving up-dates from my other devoces via iCloud. Can anyone help unblock this for me please?

    You can not add events to the birthday's calendar. To add birthday's to the birthday calendar you need to add the birthday to a contact in the Contacts app.
    You can set your default calendar here:
    iCal > Preferences > General  > Default Calendar and chose the calendar you want to default to.

  • Double value change event if cursor is set busy (LV2009)

    Hello everybody,
    I just migrated from LV 8.0 to LV 2009 (on linux) and now got problems with a value change event. I want to send a command if a button is pressed and send another one if the button is released. After sending the command I need to wait for an acknowledge from the receiver and to avoid user interaction in between I lock the cursor with "set busy" VI until the acknowledge is received. To see, when the button is pressed or released, I use a value change event. Inside the event structure the cursor is set busy.
    This worked reliable in LV 8.0 but not any more in LV 2009. The button's mechanical action is set to "switch until released" and if I press the button and keep it pressed it is reset to false automatically. The value change event is fired twice instead of only once (see attached vi) and "new value" is one time true and one time false. This doesn't happen if the mechanical action is set to "switch when pressed".
    Does anybody have an explanation or a workaround for this behaviour? Am I doing something wrong or is this a bug in LV? For now I'll just keep the cursor unlocked.
    Thanks for your help.
    Attachments:
    setMouseBusy_01.vi ‏11 KB

    Hi ckis,
    attached you'll find your modified example, it should do the trick now.
    Regards,
    Bernd
    Attachments:
    setMouseBusy_01.vi ‏9 KB

  • How to make Text Input in Sales Order Trigger Change Event

    Hi Gurus,
    I have a project going on where when a sales order is created, changed or cancelled, an IDoc is FTP to our freight company.
    Now the issues is when we change a sales order text input (for example, shipping note). Nothing happens. The system doesn't take this as a change so no change event is triggered.
    Text fields I'm talking about is the one from Go to --> Header. and for Item Go to --> Item.
    When I input a note in this field, it comes out in the IDoc, but when I go back to the Sales Order and change the note, it doesn't trigger a change and therefore no IDoc is generated.
    how can I go about this?
    thanks.

    Hi,
    Could you initiate the idoc creation from a workflow?
    Have you checked the event trace?
    Is the BUS2032 object type CHANGED raised? I checked our system and event is raised on text change.
    Transaction SWELS to activate and deactivate trace.
    Transaction SWEL to monitor event raised.
    Don't forget to turn trace off
    Hope this helps
    TB

Maybe you are looking for

  • Log in error

    I am trying to connect to Oracle by using ASP.NET code and I got the error ora-01004 Default user name. The suggested fix was to chage my sqlnet.ora file. I did now i get the error ora-01017 invalid username/password. Here is my .ora file NAMES.DEFAU

  • Making the order of Songs on a burnt CD the same as on the Playlist

    I have a big problem when burning a playlist to CD. Having created the playlist the list will always play in the listed (or correct) order. However whenever I burn the playlist to a CD the order of songs turns out to be different on the CD from that

  • Streams between oracle 8i n 9i

    Hi! everybody, Is streams posible between Oracle 8i n Oracle 9i,my requirement is if any changes hapening in my oracle 8i database then the change should be recorded in 9i as well. i am taking databse level,any shema any table is making any changes t

  • Some Problem in Internet Explorer

    Hi all, I am created a website its smoothly display in safri, firefox, i dont know internet explorer right side some white space is come website link One Jpg is attached for your reference Regards Manoj

  • Lightroom color not consistant with PSCS4/Bridge. Help please.

    Hi All, I started with a search, but didn't find an answer that covered what I'm seeing. OK, first of all, let me set this. I'm running a MacBook Pro 2.2, OSX 10.6, with a 23" Apple Cinema Display (non-glossy screen) attached as my main work monitor