This content has been marked as final. Show 4 replies
I didn't have a web server handy to test all environmental variables, but I was able to run my own onEndOfMedia code inside of the HTML file provided in the dist/ folder as well as the "click to launch this app as webstart" link. Worked fine in there. Could you provide us with a self contained sample of your code?
And you are saying that the video plays in webstart, it just doesn't trigger the onEndOfMedia event, right?
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.