How to Handle events from audioplayer by ADF ObjectMedia Component

Hi,
In My application Having a ADF ObjectMedia Component for the audio play,
My requirement is to handle the events from the Player,i.e Need to get an
event when the user pause the player,can i get the event in backing bean.or else please help me in any other way to get the requirement asap.
Thanking you....

Hi,
assume the media player most likely is a browser plugin. Question: Does the media plugin raise events ?
If the media player has a JavaScript API that allows you to call a JavaScript function then you found a gate open to publish the event to the JSF application
So as a todo for you: Check with the media player vendor if there exist a JavAScript API or any other sort of eventing.
Frank

Similar Messages

  • How to handle event from subVI in the main VI?

    Hello,
    I'm doing some measurement. During the measurement I want the user to see some activity dialog - that's easy to do. Before the measurement starts I dynamically run VI (EX_Progress.vi) that shows some activity and then I do the measurement (in my example simulated by random number generation) . After the measurement is done (or error occurs) I can dynamically abort the activity indicator. But on the other hand I want to give to the user chance to abort the measurement manually via the activity dialog by STOP button. There are some ways how to do it via global variable and check every iteration in the main VI it's state but isn't there some better way? Would be nice to run event in the main VI when the user pushes the STOP button in the Progress VI. Is it possible to achieve this using register events? I tried but don't really now how I'm not familiar with this technique.
    Thanks in advance
    Message Edited by ceties on 11-26-2007 01:34 PM
    LV 2011, Win7
    Attachments:
    Ex.zip ‏374 KB

    OK, here's an example using User Events. It doesn't directly have the main VI listen for the Button press event in the subVI. Instead, it has the main VI listen for a custom User Event that the subVI fires every time there's a button press. You could theoretically directly listen to the button press directly from the Main VI, but you would have to somehow get that control's reference to the main VI. That would require storing a copy of it in a global or some such method. This method I will show here is very common and is definitely worth learning.
    For more info on User Events, refer to the LabVIEW help. You can learn more by clicking any of the User Event VIs and selecting Help from the shortcut menu.
    (I didn't set the subVIs front panel to open automatically, so you'll have to do that yourself to see anything from this demo...)
    Message Edited by Jarrod S. on 11-26-2007 02:51 PM
    Jarrod S.
    National Instruments
    Attachments:
    Example.zip ‏25 KB

  • How to get event from message?

    Hi,All:
    I write a run-time interface by CVI, I use TS_EngineRegisterUIMessageCallback to register my callback function, but when message passed to the callback function, as the type is struct IDispatch but not CAObjHandle, I don't know how to read event from message.
    Can you help me to solve it? Thanks
    Chang Zhang

    Hello Chang-
    If your question is simply how to obtain an object handle from an object of type IDispatch, have you investigated the function "CA_CreateObjHandleFromIDispatch"? I would recommend you look over the testexec.prj that is installed along with the TestStand engine (the CVI Operator Interface) and inspect how we handle our callbacks, this may help you understand how to go about emulating the behavior in your own project. To see this particular function in use it may be most helpful to look in the file 'engine.c' and inside the function UIMessageDeferredCallback here you will see the IDispatch pointer being handled and decoded for use by the TS engine.
    Regards,
    Elaine R.
    Applications Engineering
    National Instruments
    http://www.ni.com/ask

  • How to handle Events in OO abap.

    Hii all as im new to SAP and  ABAP , i want to know , what are events all about and how to handle events?
    Like how to guide double click to call a transaction , or to create a hot sopt and then , calling the transaction...........
    Please Help.

    Hi Chandan,
    possibly you are not just new to ABAP but new to obeject oriented programming in general. In oo, you use events to trigger methods that are registered as 'listeners' for the event.
    As I have no idea on your current knowledge, I don't know what I could recommend to start with.
    My personal approach is first to have a task I want to complete and then find and understand the methods to get there.
    Regards,
    Clemens

  • How to export events from iPhoto in Iphone 5 to Mac?

    How to export events from iPhoto in Iphone 5 to Mac? Thanks

    Is this waht you want to do?
    It's built into the File Export function of iPhoto 9 (11).  Select what every photos you want and use that option to put each photo in a folder with the Event title it came from as in this test of six randomly picked photos:
    OT

  • How to handle Event in JACOB API

    Hi,
    I am read the outlook mail using JACOB[Java Com Bridge] API successfully, now i want to handle events for outlook mail using JACOB. and also i can able to catch the new mail event. but i am unable to catch any deleted mail and move mail from one folder to another folder. This is extremely important for my project. so any one please tell me how to handle and catch the Outlook deleted event and move event using JACOB.
    Thanks in Advance,
    With Regards,
    Ganesh

    Windows can be closed in a number of ways and the simplest way to trap them would be to handle Window Closing in code behind.
    This is also the easiest way to show dialogs if that's how you wanted the warning message to appear.
    This:
    chxAllowToClose.IsChecked
    Looks like a checkbox to me, seeing as you have IsChecked.
    That presumably means you already have that bound to a viewmodel and visible to the user.
    You can therefore just test that value from the view.
    If you prefer to hide that instead then there are several options.
    You could have a dependency property and a binding in code behind which binds to the viewmodel. Test that in your event.
    Or
    You could save the value when it changes to application.current.resources.  Since dependency properties and bindings are a bit wordy this is easier.
    Or
    You could have just a variable in the view code behind and use messenger to tell that when the value changes from the viewmodel:
    http://social.technet.microsoft.com/wiki/contents/articles/26070.communicating-between-classes.aspx
    Please don't forget to upvote posts which you like and mark those which answer your question.
    My latest Technet article - Dynamic XAML

  • How to handle event when the user closing the browser (Urgent Please)

    Hi,
    How to handle the event when user closes the browser....
    i want to display some alter message when user trying to close the browser...
    Please can any one help me how i have to do this...........
    Thanks.

    Finally got this working. You cannot use the stop() or destroy methods. By the time they are called all database connections are gone and you will get a null pointer exception.
    You will have to use the onBeforeUnload method in the html file that calls the applet and use JavaScript to call the save method in java which saves the document:
    <SCRIPT LANGUAGE="JScript" TYPE="text/javascript">
    function Save()
    //i call the applets doSave() method from here in which i save all
    //changes to the database
    top.Tree.document.TestApplet.doSave();
    //this will invoke the default IE message for closing the window
    //when user clicks on the x in the browser
    message = "Your document has been saved."
    return message;
    window.onbeforeunload=Save;
    </SCRIPT>
    //the applets doSave()
    public void doSave()
    //this frame provides user with the message that document is being
    //saved
    final JFrame frame = new JFrame("Saving");
    JPanel contentPane = new JPanel();
    JLabel label = new JLabel(" Please wait, saving document...");
    frame.getContentPane().add(label,BorderLayout.CENTER);
    frame.setSize(250, 100);
    frame.setLocation(300, 400);
    frame.setResizable(false);
    frame.setVisible(true);
    frame.addWindowListener(new WindowAdapter()
    //the frame is just for user's information, so prevent user from
    //closing it or iconifying it.
    public void windowClosing(WindowEvent e)
    frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
    public void windowIconified(WindowEvent e)
    frame.setState(frame.NORMAL);
    //call my saveDocument() method that saves everything to the database.
    editorModule.saveDocument();
    //System.out.println("finished calling saving document");
    //once the saving is done the frame with the message disappears
    frame.setVisible(false);
    //System.out.println("setting frame to false");
    //I also had an exit button in my applet, that would perform the same task, however now with the above onBeforeUnload method, the exit message would appear twice, so had to modify my exit button action performed, so that if the exitbutton was clicked the onbeforeunload method would get passed a null value and not do anything.
    private void exitButton_actionPerformed()
    if (DEBUG) System.out.println("Calling exit");
    doSave();
    window.eval("this.onbeforeunload=null;");
    window.eval("top.close();");
    //continue from here if user cancels the closing of the window
    window.eval("this.onbeforeunload=doSave;");
    window.eval("top.focus()");
    window.eval("document.TestApplet.requestFocus()");
    homePanel.requestFocus();
    }

  • How to handle events in Swng

    Hi!
    I would like to know which one of the following is the best way to handle events in Swing application.
    Method 1
    Write annonymus inner classes in the same class
    Method 2
    =======
    Write a seperate class which extends the adapter class of the event handling and create an object of that in the main class and assign it to the components with addActionHandler() method.
    I am trying to use the second one and I have the following design issue.
    I have a class frmMain.java in which I have a frame and to that frame I am adding a panel which consists of 'N' No. of components.
    I want to make this panel added to the frame when I click on a menu item (login) and want to remove the panel from frame when I click on a menu item(logout).
    I have a main class called Application.java where I create the object of my frame(frmMain.java).
    Thanks in advance,
    AV

    1. Your JFrame is now subject to receive action events from anywhere. You will have to be more careful that you respond only to the right events.
    2. If you have a lot of possible consequences to an event(for example, based on button pressed), you'll need a long if...then...else statement to determine what to do based on the source of the event.
    3. With individual ActionListener classes, it's easier to add the same listener to multiple components and no need to worry about source.
    4. Kind of the same thing: With individual classes, the event and its consequences are so tightly coupled.
    End preaching....basically, my style boils down to what I call the tool set vs Swiss army knife rule. Java seems designed around the concept of a large number of specific purpose classes vs a smaller number of multi purpose classes and I think its a design methodology that makes sense, because I believe strongly in functional isolation in my code.

  • How to delete events from iPhone/iCal

    How can I delete old/no longer happening recurring events--or any events--from my iPhone?

    If you see the "+" button then you have not clicked on the event you want to delete.  When you do you will see another screen that looks like the one below.

  • SAP Idocs -How to handle response from target system

    Hi,
    I am working on a scenario in which I will send Idocs asynchronously from SAP thro a SOAP adapter to a  webservice deployed on the target system.
    After the Idoc data is posted in the target system,the target system will send the acknowledgement for the receipt(basically response message).How to handle this scenario?
    SAP Idoc( outbound asynchronous)---> SAP XI3.0(soap adapter) ---> Target system(inbound synchronous)
    Do I need to go for BPM to handle this situation?
    Is there any alterantive to BPM.
    If any of the forum members who have worked on the similar scenario could help me in finding a better solution,I will be thankful to them.
    Thanks,
    Leo

    Hi Udo,
    Thanks for the info.My scenario is like this.
    SAP R/3 Idoc -> SAP XI 3.0 <-> Webservice in the target system.
    The webservice in the target system will receive the Idoc as a request messsage and send a response message synchronously.
    Since Idoc is sent asynchronously( I believe Idocs sent from SAP are always asynchronous),there is no Proxy waiting in SAP R/3 to receive the response message from the target system.
    If I go for BPM for the above scenario,will the BPM steps look like the following.
    1)Receive Idoc from SAP.
    2)Send Idoc sysnchronously to webservice
    3)Receive the response from the webservice synchronously.
    4.Post the response message to a proxy which can handle it further in SAP R/3.
    Please note that my knowledge in BPM is limited and correct me if I am wrong.
    Thanks in advance
    S.Banukumar

  • How to handle events in webdynpro abap

    Hi,
    can any body explain how to handle the events in webdynpro abap.
    i want to know some concepts in general.
    Thanks,

    Hi Mahesh,
    you can create event handlers under the actions tab in you view. evry event handler has an importing parameter wdevent of type ref to cl_wd_custom_event.
    you can also create events in your component controller and they can be handled within your views
    check cl_wd_custom_event class for details about what all information you get when an event occurs.
    for further details you can check out the following links
    http://help.sap.com/saphelp_nw04s/helpdata/en/eb/ed6f4169e25858e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/a9/c751415e3b6532e10000000a1550b0/frameset.htm
    also you can try the tutorial at the following link for further clarity
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2eb11b59-0a01-0010-dfa3-8292abdf9c4f
    Regards,
    Shweta
    Message was edited by:
            Shweta R Shanbhag

  • How to handle event "DB_EVENT_PANIC" on replica

    Hi BDB experts,
    I am writing db HA application based on bdb version 4.6.21. Two daemons run on two machines, one as master which will read/write db, one as backup will only read db. It seems backup will sometimes get event "DB_EVENT_PANIC" for reasons I didn't know. What should I do on receiving such event? Should the daemon exit and run then open env again for recovery? Can one process reopen the environment for recovery without exit first?
    Another question is unrelated to the issue above: if use bdb ha(base api), can there be 3 processes, process1 is neither master or client but just writing db,  process2 is as rep master that open the same env(just for ha, will not write db), process3 is client that connects to master to get db synced?
    Thanks,
    Min

    That is, if in ha environment and N processes would write db, each process should establish a connection with the replica and would send ha msg to the replica when it writes db, right?
    It is said "Subsequent replication processes must at least call the DB_ENV->rep_set_transport method.
    Yes, each process should establish a connection to the replica. Each process also needs the DB_ENV->rep_set_transport call so that it will invoke your application's send function to send each HA message to the replica.
    Those processes may call the DB_ENV->rep_start method", I am confused that why rep_start is not a must. Because if rep_start is not called, bdb will not start ha threads and the process can't send msg to replica, right?
    I am assuming from your earlier information that you are using Base API calls. The Base API calls do not create their own threads. When using the Base API, it is the application's responsibility to create and manage its own threads.
    One possible way to design an application is to have a main replication process on the master that calls rep_set_transport and rep_start and creates one or more threads to handle all incoming messages from other sites.
    In this design, there can be N additional processes on the master that perform database writes which only need to send the logging information about these writes to the other sites. The call to rep_set_transport provides the information needed to do this so there is no need for these N additional processes to call rep_start. Our documentation is allowing for cases like this.
    You do not have to design your application this way and you can make rep_start calls in more than one process as long as they each supply the same DB_REP_CLIENT or DB_REP_MASTER value.
    If my understanding is right, for the N processes ha case, there is a question below:
    each process used to be single threaded, and run a few seconds then exit after finishes its task. Will the main thread get notified for which event from bdb that indicates sync to replica is done? As the process is not a daemon, I am afraid if it exits as former logic, bdb ha thread may not finish sync.
    This is a reason to consider a design with a main replication process that remains running and handles all incoming messages. Then you can have multiple additional short-lived processes that perform database writes and exit.
    If your application cannot follow this model, then you will need to design your application to make sure each process survives long enough to get whatever synchronization from the replica it requires. You should look at the Reference Guide sections "Building the communications infrastructure" and "Transactional guarantees" for more details.
    Just out of curiosity, why are you using 4.6? That is not a very recent release.
    Paula Bingham
    Oracle

  • How to move events from iMovie 10 to iMovie 9.0.2

    I haven't been having any luck using iMovie 10.  It keeps shutting my Mac down and rebooting it.  I thought adding more RAM would help and added another 8GB, but that hasn't fixed the issue.  I have now re-installed iMovie 9.0.2, but I have a project started in iMovie 10.  After the last reboot, I can find my events, but my project that was nearly finished seems to be gone.  So frustrating.  Can anyone tell me how to move my events from iMovie 10 to iMovie 9.0.2?
    Thank you.
    PegM
    My OS is Mavericks 10.9.2 if that makes a difference.

    I'm afraid that its not possible to transfer projects form iMovie 10 to iMovie 9.
    Imovie 10 should not be behaving how you describe.  Are you short of disk space?  (You certainly have plenty of RAM.).
    If not I would consider re-installing iMovie 10.
    Another alternative would be to use Final Cut Pro.  You can easily transfer projects from Imovie 10 to FCP 10.1.  I have done this myself.  It is very similar to iMovie 10 but much more powerful and personally I have found it easier to use and more stable than iMovie 10.  Although it is not cheap, you can try it out free for one month.
    Geoff.

  • How to send event from flex extension to other flex extension in InDesign?

    I have two extensions created using flex for InDesign. I need to send an event from one of these extensions and capture that event in other extension. How can it be done? Please help me.

    Hi,
    What I believe that data cannt be send from flex to java as hash maps...... we can send data from flex to java, but this data can be in form of array, string or boolean value..... Then the data can be send using ExternalInterface...............
    and if it is web application you need to use java script in between to communicate and if it is desktop application you can send data using MERAPI...
    MERAPI will act as a bridge for sending data from java to flex and vice versa... and you can send any type of data using merapi.

  • How to delete event from iCloud

    How do you delete an event from iCloud on iOS devices?  I have an appointment (sent from outside) that I accepted into iCal and now want to delete (or decline) the event. I can delete it on my Mac but not on iOS devices (iPad 2 & iPhone 3Gs both using latest software). If I try to delete the event on iCloud from the web I get an error that says "This event could not be deleted due to a server error. Please try again"
    tia
    Dave

    Look like you have duplicate calendars. Find the name of the calendar on your iPhone and the color of the event labels. Then look at your computer. Find the one with the different label/name/color. You can delete that calendar.

Maybe you are looking for

  • Linksys and DDNS: no alternatives: dyndns / TZO or die ?

    hi all, i`m rellay disappointed about linksys. dyndns and tzo now one company. Why is linksys not implemting freeware hoster or at least a field for custom implementation like others have ? What is the reason of your strategie ? the NSA to keep only

  • Changing Size of Slides

    Hi, I need to change my slide size to 112 cm by 112 cm to make a poster, however I do not know how to do that in pixel measurements. Any help is appreciated.

  • How can i delete search histiory, (not just browser history, j.jc

    how can i delete search history, ( not just browser h' i can do that) j.c. == This happened == Every time Firefox opened == long time ago

  • Itunes 8 wont setup

    Hi guys, my Itunes loaded up fine until I downloaded the new verion 8. It just came up with error after error installing so I uninstalled Itunes altogether and downloaded Itunes 8 again and tried to reinstall. This is my problem. I click on the Itune

  • Help wth screen resolution changes

    I develop under 1280x1024 every thing looks great but when I set my display resolution to 1024x768 The app text, images seem to be larger and I end up with v/h scroll bars. Any suggestions?