JDK-8241629 : [macos10.15] Long startup delay playing media over https on Catalina
  • Type: Bug
  • Component: javafx
  • Sub-Component: media
  • Affected Version: 8u191,openjfx11,openjfx14,openjfx15
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x_10.15
  • Submitted: 2020-03-26
  • Updated: 2021-04-21
  • Resolved: 2020-04-14
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 Other
8u251Fixed openjfx11.0.8Fixed
Related Reports
Duplicate :  
Relates :  
Description
To reproduce this, run Ensemble and load the "Advanced Media" sample. It will play the following video file:

https://download.oracle.com/otndocs/products/javafx/oow2010-2.mp4

On macOS 10.15.3 Catalina, there is a pause of roughly 1 minute before it starts playing. Then it will play fine for the rest of the video.

You can reproduce this with HelloMedia as well. If I download the file and play it using a file: URL then it starts up fine.
Comments
Changeset: 4d69a0d2 Author: Alexander Matveev <almatvee@openjdk.org> Date: 2020-04-14 00:18:33 +0000 URL: https://git.openjdk.java.net/jfx/commit/4d69a0d2
14-04-2020

https://github.com/openjdk/jfx/pull/179
13-04-2020

This issue was introduced by JDK-8199527, previous versions are most likely not affected, but I did not verified it.
10-04-2020

WAV is not supported by OSXPlatfrom, not sure why. Otherwise should not be a problem.
09-04-2020

I can confirm that the forcing OSXPlatform with the above workaround does eliminate the delay. What is the down side of this workaround? Are there formats that GSTPlatform can play that OSXPlatform cannot?
09-04-2020

This issue is reproducible with GSTPlatfrom only, OSXPlatform loads file reasonably fast. -Djfxmedia.platforms=OSXPlatform can be used to specify OSXPlatfrom only. GSTPlatfrom to load only GStreamer platform.
09-04-2020