MediaPlayer OnEndOfMedia not working in Webstart application

I have an issue with a Swing/JavaFX application where I'm using the mediaPlayer to play a video. The application works just fine when it is run in my eclipse but as soon as I pack it and upload it to a webserver the video gets played without a problem but the onEndOfMedia Runnable doesn't get triggered anymore. Anyone got a clue how that's possible? Like I said the code works from eclipse and the video itself works also in webstart.
mediaPlayer.setOnEndOfMedia(new Runnable() {
public void run() {
     System.out.println("End of Media!");
// do something
});

>
Unfortunately I only have a massive project which I can't simply reduce.
>
It's really hard to diagnose something without anything to look at. And if this turns out to be caused by a bug in the library itself as opposed to your own code, the lack of a simple code sample demonstrating the activity that is't working is going to make it difficult to file any bug reports. In the absence of a code sample, I'm going to have to ask quite a lot of questions and the best I'm going to be able to give you is advice, not solutions.
Does the program work the way you expect it to when you run the files given in the dist/ folder as opposed to your website?
Where is the video relative to the where the application is run?
Is whatever you are doing in the onEndOfMedia function something Webstart is allowed and/or able to do? What is supposed to happen when the video is over and what is actually happening?
Have you given the MediaPlayer any onError functions? Have you gathered data from its other events? What do they say? What is happening up until onEndOfMedia is supposed to be called? What is the value of currentTime compared to the value of totalDuration when the video is nearing the end? What does the status variable indicate? Keep track of all the variables in the MediaPlayer and see if you can find any anomalies.

Similar Messages

  • Search function in Help not working in any application

    The Search function is not working in any application's Help. Upon entering the terms I need help for I get a hang at "Searching..." but never any result. This problem started sometime in the last year or so. Prior to that the search function in Help worked fine. My network connectivity is excellent.
    I recently reinstalled OS X 10.5 but I'm sure the problem existed before that and persisted after the reinstall.
    The reinstall was due to upgrading to 10.7 and only then finding that I had lost needed functionality, but I don't think this has anything to do with the current problem. All other aspects of Help seem to be working fine
    I don't find any reference to this problem anywhere so I'm hoping someone can help with my Help(!) problem. Thanks in advance.

    Try running your Leopard install disk again, as well as the 10.5.8 combo updater. This might reinstall any 'missing bits'.
    You can do this without deleting the hard drive, just install straight over your existing system, but close all applications and external devices first.
    Or you could also do this via an Archive and Instal:
    How to Archive & Install:
    http://support.apple.com/kb/HT1710
    and this also:
    http://support.apple.com/kb/HT2196?viewlocale=en_US
    This document explains how to correctly reinstall a prior version of Mac OS X in the event that other troubleshooting does not resolve an issue:
    http://docs.info.apple.com/article.html?artnum=25404
    BUT: Don't install older versions of Mac OS than what came with your computer:
    http://support.apple.com/kb/HT2186?viewlocale=en_US

  • FaceTime HD Camera (Display) not working with most applications

    The Thunderbolt 27" LED Cinema displays built in camera is not working with most applications. The camera does not work with FaceTime, iChat, Skype and Google Talk. FaceTime says "There is no connected camera", even though there is. Weird thing is it DOES work at http://www.testmycam.com. I can't get it to work with any other flash based apps, just testmycam.com.
    My MacBook Pro 17" (late 2011) built in camera works perfectly with everything.
    Things I've already tried:
    - Shutdown
    - Restart
    - disconnect/reconnect
    - removing power from display
    lame, lame, lame. $1k monitor, flippin' webcam doesn't work.

    I think I have found the problem. I decided to go page by page through the forums and found this argument when running a Java program through the console:
    -Dsun.java2d.noddraw=true
    So it would be like:
    java -Dsun.java2d.noddraw=true SwingSet2
    That works flawlessly, so it has to do with direct draw (So it's either DirectX or my video card drivers which are up to date).

  • Debugger not working for BSP application

    Hi All,
    I have 4.6C sap installation and the debugger is not working for BSP Application even when i hard code the break points.
    Can anyone help me on this issue.
    Thanks and Regards
    Shilpa

    Hi Shilpa,
    How many number of sessions are open ? If there are already six sessions open and then you try and get the debugger, it will not start, and you won't be able to catch that error also...!
    Other than that there is no possibility that the debugger doesn't start, unless ofcourse, the logic doesn't reach the debugger point....
    Hope this helps.
    <b><i>Do reward each useful answer..!</i></b>
    Thanks,
    Tatvagna.

  • [svn:fx-trunk] 5019: ASDoc updates to indicate that some Halo containers do not work with the Spark equiv (ControlBar does not work with Spark Panel/ AppControlBar does not work with Spark Application), and indicate that Canvas, Box, Tile, Panel have Spa

    Revision: 5019
    Author: [email protected]
    Date: 2009-02-19 13:17:21 -0800 (Thu, 19 Feb 2009)
    Log Message:
    ASDoc updates to indicate that some Halo containers do not work with the Spark equiv (ControlBar does not work with Spark Panel/AppControlBar does not work with Spark Application), and indicate that Canvas, Box, Tile, Panel have Spark equivs
    QE Notes: None
    Doc Notes: None
    Bugs: -
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ApplicationControlBar.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Box.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Canvas.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ControlBar.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/HBox.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/TabNavigator.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Tile.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/VBox.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ViewStack.as

    Hi DST
    This is a great effort and gesture. thank you on behalf of all the newbies.
    PJ

  • (not working)Creative Cloud applications unexpectedly revert to trial mode

    I have an Creative Cloud accound but photoshop keeps gooing back to the trail mode. I have tried the help provided bij Adobe but this does not work ( Creative Cloud applications unexpectedly revert to trial mode | CS6, CCM ). There should be an deactivate option in the help section but this is nowhere to be found. Hope there is an other sallution or maybe i should just delete and reinstall everything. But then i need a way to recover my action's.

    in cc apps there is no deactivate option.  that's been changed to a 'sign out' option.

  • Sound not working on some applications for iPhone 4S

    I have an iPhone 4S, the sound is not working on some applications like music, videos when I press the + and - buttons, the volume icon appears but the slider is empty. The weird thing its ringing normally, working properly during phone calls even when on speakers. The mute switch isn't on, I have tried to reset it and restart it,  nothing happened

    Sensor works very well, both on 4S and 5 but people do not know how to set it correct.
    1. You need to set slider on minimum brightness
    2. Turn auto-brightness one ON/OFF and set it on ON, than it will adjust automaticly
    "Auto-Brightness:
    The auto-dim feature got significantly improved in iOS 6. The best improvement is brightness adjustment in the lock screen. Before, in a dark room, I would be blasted with the iPad or iPhone’s default brightness before sliding to unlock and having it dim down to match the room’s brightness. Now, from the moment the screen turns on, the brightness is appropriate.
    In all previous versions of iOS, the light sensor would sense the room’s brightness and then suddenly make the brightness adjustment. In iOS 6, the auto-brightness adjustment is gradual and much more subtle, like the Mac. "

  • My camera works with the photobooth and with skype but does not work with online applications such as "lolcam from facebook" or "faceonthehole" application. Please help

    My camera works with the photobooth and with skype but does not work with other applications like the "lolcam" from facebook or the " faceonthe hole" application. Can anyone help?

    There was a issue with school computers being used to spy on kids in their bedrooms, Mac's were involved.
    So Apple most likely tightened the API's to only select, trustworthy companies as not to abuse the web cam access priviledge.
    If you want to use a web cam with these other programs and services, you'll likely have to buy a third party USB one, so you can manually disconnect it.
    There isn't a way to physcially disconnect the built in web cam on Mac's without busting open the machine.

  • Oracle dbms.set_role does not work in APEX application

    Hi, in our j2ee applications, we use secure application role. Basically, the data source use the app user schema to connect to the database. the app user only has create session privileges. the database logon trigger will copy a set of attribute to the local secure context. (ip address, session user, client id, application name). The applications explicitly invoke the stored procedure sec_mgr.set_role before any DMLs are executed.
    the sec_mgr.set_role will check the local context attribute , authorize the ip, application name, and set an appreciated role to this session based on session user.
    we want to apply the same framework to the APEX application. First, we change the paring schema to the app schema which only has create session privilege. then we put the plsql code in which sec_mgr.set_role is called in the application builder --> shared components ---> edit security attribute ---> Virtual Private Database (VPD).
    however, we got the error ORA-06565: cannot execute SET ROLE from within stored procedure
    the sec_mgr.set_role is defined as invoker's right(AUTHID CURRENT_USER)
    do i missing something in APEX to get it work?
    Thanks

    Please explain it does not work in APEX? Is the application updating tables that have a trigger? APEX does NOT override trigger actions. Is it possible the values your trigger is looking for are NOT available in your APEX application? Can you post the trigger code here for review?
    Thank you,
    Tony Miller
    Webster, TX
    What if you really were stalking a paranoid schizophrenic... Would they know?
    If this question is answered, please mark the thread as closed and assign points where earned..

  • JDBC control not work after upgrade application from workshop 8.1 to 9.2.3

    Hi,
    We upgraded application from workshop 8.1 to 9.2.3. After that, the JDBC control not work any more. We got the following exception:
    java.sql.SQLException: The transaction is no longer active - status: 'Committed'. No further JDBC access is allowed within this transaction.
    at weblogic.jdbc.wrapper.JTSConnection.checkIfRolledBack(JTSConnection.java:192)
    at weblogic.jdbc.wrapper.JTSConnection.checkConnection(JTSConnection.java:202)
    at weblogic.jdbc.wrapper.Connection.preInvocationHandler(Connection.java:87)
    at weblogic.jdbc.wrapper.Connection.getMetaData(Connection.java:435)
    at org.apache.beehive.controls.system.jdbc.parser.SqlStatement.createPreparedStatement(SqlStatement.java:128)
    at org.apache.beehive.controls.system.jdbc.JdbcControlImpl.execPreparedStatement(JdbcControlImpl.java:272)
    at com.bea.wlw.runtime.core.control.internal.JdbcControlImpl.invoke(JdbcControlImpl.java:136)
    at controls.SecurityBean.getUpdateDocPermission(SecurityBean.java:598)
    at security.SecurityManagerImpl.getUpdateDocPermission(SecurityManagerImpl.java:110)
    at security.SecurityManagerBean.getUpdateDocPermission(SecurityManagerBean.java:509)
    The control that throw the exception has "transactionattribute" annotation added automatically by upgrade wizard during upgrading. Related classed are as follows:
    @ControlInterface()
    public interface SecurityManager
    @TransactionAttribute(TransactionAttributeType.REQUIRED)
    boolean getUpdateDocPermission(java.lang.String userId);
    @ControlImplementation()
    public class SecurityManagerImpl implements SecurityManager, Serializable
    * @common:control
    @org.apache.beehive.controls.api.bean.Control()
    private controls.Security security;
    static final long serialVersionUID = 1L;
    * @common:operation
    public boolean getUpdateDocPermission(String userId)
    if ( security.getUpdateDocPermission(userId) > 0) {
    return true;
    else
    return false;
    @ControlExtension()
    @JdbcControl.ConnectionDataSource(jndiName = "EventDesk")
    public interface Security extends JdbcControl
    static final long serialVersionUID = 1L;
    * @jc:sql statement="select r.updateDoc from document_user u ,document_role r where u.login={userId} and u.roleId=r.roleId;"
    @JdbcControl.SQL(statement = "select r.updateDoc from document_user u ,document_role r where u.login={userId} and u.roleId=r.roleId;")
    int getUpdateDocPermission(String userId);
    Thanks for your help

    Hi. The issue is a level or two above JDBC. I suggest
    opening an official support case. It's probably a
    WLW issue.
    Joe

  • Mouse not working in open applications

    Mouse not working properly on menu bar in certain applications: Text Edit, Calendar, Notes.  You can hover over the  red X but it will not close the application.  Also unable to click on a text form and drop the cursor in to edit or copy text.  Can open preference box but uanable to navigate because mouse will not click.  Have to now use keyboard to open and close most applications.  Virus?  Setting that got magically turned on?  Have powered down, checked batteries, etc.

    This is not due to a virus, or any other kind of malware.
    First, is this a wired mouse or a Bluetooth mouse? If it's a Bluetooth mouse, try changing the batteries, even if they should be fully charged.
    Have you tried a different mouse? If not, try that. Borrow one from a friend or buy a cheap wired mouse and see if that makes a difference.
    If the problem affects all mice, try restarting in safe mode. Does the problem happen while in that mode? If not, and if it comes back when you restart normally, then you have some kind of third-party software that is causing the problem. The trick will be figuring out what it is.

  • Internet not working through Apple applications, but ok in firefox?

    I'm having trouble with my internet connection through Apple software on my computer. It started a few days ago, I don't think any changes have been made to my network.
    Basically if I try to connect to the internet in Safari, Mail, iTunes, Dashboard or anything else that's an Apple program, it doesn't work at all. It spends a huge amount of time "Loading..." and sometimes will eventually come up with the information but usually times out.
    However, if I use Firefox - which I had luckily installed on my computer - all pages and everything load instantly.
    I connect to the internet through an Airport which we bought three months ago. The Airport connects to a modem which connects to the line.
    What is wrong and how do I fix it?? I much prefer using Safari and I'm dying because I can't get into the iTunes store!!

    Hi and welcome to Discussions,
    Firefox is one of the few applications that maintain their own 'Proxy'-settings and do not use the general 'Proxy'-settings of OSX like all the other apps you mentioned to not work.
    Check the Proxy-settings of Firefox against the general OSX ones.
    Hope it helps
    Stefan

  • Sys_context not working from APEX application / environment

    I am struggling to retrieve a user-defined context value using sys_context(...) from APEX application / environment
    I have created a global context to be used as a storage mechanism for log severity to be recorded.
    CREATE OR REPLACE CONTEXT PA_LOGGER_CTX USING PA_LOGGER ACCESSED GLOBALLY;It is seeded through a function pa_logger.set_severity(1) within the package pa_logger through (excerpt):
      dbms_session.set_context(c_ctx_context_label, c_ctx_severity_label, TO_CHAR(p_severity_in));
      with:
      c_ctx_context_label     CONSTANT NVARCHAR2(16) := 'PA_LOGGER_CTX';
      c_ctx_severity_label    CONSTANT NVARCHAR2(8) := 'SEVERITY';
      p_severity_in   IN  PLS_INTEGERusing the following from sqlplus, other DB-tools, works as expected:
    -- setting it
    BEGIN
      pa_logger.set_severity(2);
    END;
    -- displaying it
    SELECT sys_context('PA_LOGGER_CTX', 'SEVERITY') FROM DUAL;returns 2
    This works from different sessions, different users ... no problem.
    Using it from within an APEX (accessed via embedded gateway/XE11.2 or OHS/11.2.0.2.0 ) application or even from the "SQL Commands" from the APEX Workspace returns a NULL value for :
    SELECT sys_context('PA_LOGGER_CTX', 'SEVERITY') FROM DUAL;And
       SELECT value  FROM GLOBAL_CONTEXT WHERE NAMESPACE='PA_LOGGER_CTX' and ATTRIBUTE = 'SEVERITY';returns the right value, which obviously defies the purpose of using the CONTEXT.
    It is as well possible to set the CONTEXT to a different value, which is picked up outside APEX, but even so using sys_context does not work, always returning NULL
    As a note aside: using sys_context with a standard CONTEXT, e.g. SELECT sys_context('USERENV', 'NLS_DATE_FORMAT') from DUAL works without any problems.
    I guess I have a conceptual break somewhere. Does this have to do with the APEX user used, wrapping within the APEX environment, the way the context is defined ....
    Any help is appreciated.
    Many thanks,
    - Thomas

    Hi Rod,
    Thanks for the time to answer. Meanwhile I found some more hints on the subject (Retrieve values from my own global context in Apex and I do now understand the concept.
    I understand that I can even clear the specific CLIENT_IDENTIFIER by issuing a "dbms_session.clear_identifier()", which then subsequently works
    Looking at the CLIENT_IDENTIFIER as set by APEX it is "<apex_login_user><apex_session>";
    I understand it is set for every DISPLAY-SUBMIT it is reset by the APEX framework.
    Hence it is not sufficient to set it for a user session; it needs to be changed for every display-submit. I can achieve this through application processes, but I am really reluctant to do so, because I do not know, if APEX relies on the CLIENT_IDENTIFIER to be set the way it is done. I suspect a purpose behind this, causing me problems elsewhere. I post this as a seprate question as this question has been answered.
    On to your point about: Using a table variable. This is the way it works currently, but allegedly using the CONTEXT would give us for the logging configuration a performance gain of about 1 dimension..... but unfortunately other problems..
    Thanks!
    - Thomas

  • Not working, and disappeared applications

    I have problem with two applications. First, there is an "application" called AirSpace, what I purchased (VU2VVLP9G4K9) on 2011.03.29. It never worked. It's an FTP client. It connects to an FTP server, than it cannot download anything, and not even can change directory on the FTP server. As I read there was only one man who said it's working, I'm almost 100% sure that was one of the "developer". I have the latest firmware on my C6-00 (40.0.021). I reported this two time at the application download page. I have never got an answer... It's just outrageous. I want my money back, and I want make this unusable "application" removed from the store! (I'm using "application" because it is not a real application. It's just a pile of junk code what is not working...)
    Second, I have bought the LCG PhotoBook application (7LAQM8WTDL9YH) on 2011.06.18. Since than I have to remove the application from my phone. Now I would like to install again, but I can't find in the store at all. I have tried every lower- and uppercase combination of the "lcg" and the "photobook" string. There was no success. What happened with this application? How can I install it again?

    miino wrote:
    I have bought the LCG PhotoBook application on 2011.06.18. Now I would like to install again, but I can't find in the store at all. What happened with this application? How can I install it again?
    That is one problem of buying applications from OVI Store rather than the developer as it is only a shop front and developer can remove application at any time.
    This application is released by lonelycatgames.com:http://www.lonelycatgames.com/?app=photobook-photo-viewer
    Happy to have helped forum with a Support Ratio = 42.5

  • Why the iPad internal speakers not working with some applications and key sound?

    My iPad1 ' internal speakers not fully functioning. It is working with music and video, YouTube , but not working with applications such as games.
    Also with key pad sound .
    Please help me in this regard.

    If you lose sounds for keyboard clicks, games or other apps, email notifications and other notifications, system sounds may have been muted.
    System sounds can be muted and controlled two different ways. The screen lock rotation can be controlled in the same manner as well.
    Settings>General>Use Side Switch to: Mute System sounds. If this option is selected, the switch on the side of the iPad above the volume rocker will mute system sounds.
    If you choose Lock Screen Rotation, then the switch locks the screen. If the screen is locked, you will see a lock icon in the upper right corner next to the battery indicator gauge.
    If you have the side switch set to lock screen rotation then the system sound control is in the task bar. Double tap the home button and in the task bar at the bottom, swipe all the way to the right. The speaker icon is all the way to the left. Tap on it and system sounds will return.
    If you have the side switch set to mute system sounds, then the screen lock rotation can be accessed via the task bar in the same manner as described above.
    This support article from Apple explains how the side switch works.
    http://support.apple.com/kb/HT4085

Maybe you are looking for

  • IPhone 5S touch screen issues

    Hi! I have a lot of issues with the touch screen of my iPhone 5S! the touch screen have areas without response! but not always the sames areas! each picture represent the different areas without response in the touch screen! are not the same in some

  • External hard drives and Error Code -36

    Just wanted to know if anyone knows what this error code means. I tried copying a bunch of video files about 600-700 mb to my USB external hard drive, and this error message popped up and said the disk could not be read or written to. I contacted the

  • ITunes 12 'error occurred converting the file the disk is not available'

    Hi, looking for some advice on an issue with importing disks into iTunes 12.0.01.26 on Windows 7 I import a CD and the first song generally imports successfully However I noticed the second song (or sometimes the fourth) fails with the following : 'e

  • Subscription and online number, yet paying monthly...

    I have been a happy Skype user for quite some time, so I thought I would get an online number and a yearly subscription (landlines Sweden). Turns out though, that I am still paying about 9 EUR/month for the premium stuff. I thought I would qualify fo

  • Connecting Visual Foxpro Tables and CR2008..

    Hi.. I have a VFP ver 9 applicaiton that has multiple users. I set up a path using the following statements CrRptpath = sys(2003)  whcih give me the following .. c:\docume1\jpower(user's Login ID)/locals1\temp -this directory contains the tables for