JDK-8260973 : When calling setStartTime() on MediaPlayer object then media stops smooth play
  • Type: Bug
  • Component: javafx
  • Sub-Component: media
  • Affected Version: 8u291,openjfx15
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2021-01-30
  • Updated: 2021-05-25
  • Resolved: 2021-05-25
Related Reports
Duplicate :  
Description
ADDITIONAL SYSTEM INFORMATION :
Tested on Windows 10, OpenJDK 15.0.1 and OpenJFX 15.0.1

A DESCRIPTION OF THE PROBLEM :
I have javaFx application which is live science jdk 1.7 now I am working migration on OpenJDK 15. When I am calling setStartTime() on MediaPlayer the media-file stops smooth play Even it shows blank frame till I click on slider. It's coming with OpenJFX 14 as well.

REGRESSION : Last worked in version 8

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
just make a call player.setStartTime(Duration.minutes(2)); .
Time as per you convenience. 

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Media should play smoothly and there would be no any blank frame.
ACTUAL -
Media stops updating frames and at start shows blank frame till I click slider. 

---------- BEGIN SOURCE ----------
Can provide Test application which is ready.
---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
No Workaround found.

FREQUENCY : always



Comments
Not reproducible with latest jfx-dev and 8u. It is duplicate of JDK-8259356.
25-05-2021

Reproducible with 8u291 as well. I did not tried older released to figure out when it was introduced. Reproducible on macOS as well when using GStreamer platform. I tried additional streams and issue reproduced as well. Looks like it is independent from particular file.
25-05-2021

Rechecking with issue, I could reproduce the issue with mp4 format. after setting the start time to 2 minutes, initially screen is blank but audio starts to play from the set start time (ie., 2 min) , upon clicking on the slider, video is visible in the frame but gets freezes and audio continues to plays.
05-05-2021

Checked with provided test case( PlayingMedia.java, Player.java, MediaBar.java) File >>Open>>selecting mp3 file, Media play smoothly from specified seek time(example 2 mins) Test Result: ========= 8u281: Pass openjfx 11: Pass openjfx 15: Pass openjfx 16: Pass
09-03-2021

Mail to submitter: ============= Could you please share minimal, reproducible steps/standalone test case.
02-02-2021