JDK-8166775 : Audio slider works incorrectly for short files
  • Type: Bug
  • Component: javafx
  • Sub-Component: web
  • Affected Version: 8u102,9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: x86_64
  • Submitted: 2016-09-26
  • Updated: 2019-09-16
  • Resolved: 2016-10-21
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u131Fixed 9Fixed
Related Reports
Relates :  
Description
Reproducible: always
Platform-specific: no (checked MacOS 10.12, Ubuntu 16.04)
Steps to reproduce:
1. Open page with short (~1s) mp3 added to <audio> as source and play it
Expected result: even if the audio is short, slider should be at the end of the bar when playing is finished.
Actual result: slider doesn't move.

Sample audio attached.
That is really P4/P5 because using controls for 1s audio is not a good idea.

Comments
There's the same issue happened on Mac10.11-x64 with jdk8u121b07-64bit
04-11-2016

Changeset: 1524422d8c14 Author: asrivastava Date: 2016 11:27:14 +0530 URL: http://hg.openjdk.java.net/openjfx/9-dev/rt/rev/1524422d8c14 8166775: Audio slider works incorrectly for short files Reviewed-by: ghb, mbilla, kcr
24-10-2016

Since we will not be updating WebKit for 8u122, we should proceed with this fix as proposed. I see that the review is already done, so go ahead and push the change.
19-10-2016

I just noticed that the changeset in question was taken from WebKit 195809. As such, there is no reason to take this change since it will be picked up in the next WebKit update.
05-10-2016

+1
05-10-2016

+1 Looks good to me.
05-10-2016

lgtm.
05-10-2016

Webrev: http://cr.openjdk.java.net/~asrivastava/8166775/webrev.00/ Tested on Win64 and Linux 64. Used webkit patch: https://trac.webkit.org/changeset/195809
05-10-2016

Issue in : "handleTimeUpdate: function(event) " of MediaControlsGtk.js Added coded from mousemovehandler, slider and time starts to work correctly. Trying to find out a solution.
03-10-2016

Debugging to understand the flow
30-09-2016

Reproducible on Win 9-dev also.
29-09-2016

[~asrivastava] This is likely a media bug rather than a web bug. Please reassign to media team if that turns out to be the case.
28-09-2016

Affected Tests: RULE "com/sun/fx/webnode/tests/html5/audio/Html5audio.java#mp3_test" any any RULE "com/sun/fx/webnode/tests/html5/audio/Html5audio.java#pcm_test" any any
26-09-2016

There's the same issue happened on win7-x64 with JDK8u112b15-64bit
26-09-2016