JDK-8159869 : HTTP Live Streaming not working anymore
  • Type: Bug
  • Component: javafx
  • Sub-Component: media
  • Affected Version: 8u72,9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: other
  • CPU: x86
  • Submitted: 2016-06-02
  • Updated: 2017-09-07
  • Resolved: 2016-07-11
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
8u152Fixed 9Fixed
Related Reports
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.8.0_92"
Java(TM) SE Runtime Environment (build 1.8.0_92-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode)



ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 10.0.10586]
Microsoft Windows [Version 6.1.7601]


A DESCRIPTION OF THE PROBLEM :
Up to jre8u66, HTTP Live Streaming of videos worked fine within JavaFX media player.

With jre8u92, HTTP Live Streaming does not work any more.

Sample URLs:
http://daserste_live-lh.akamaihd.net/i/daserste_de@91204/master.m3u8
http://zdf1314-lh.akamaihd.net/i/de14_v1@392878/master.m3u8
http://zdf_hds_ng-f.akamaihd.net/i/none02_v1@87014/master.m3u8
http://mdr_sa_hls-lh.akamaihd.net/i/livetvmdrsachsenanhalt_de@106901/master.m3u8
http://www.metafilegenerator.de/WDR/WDR_FS/m3u8/wdrfernsehen.m3u8




REGRESSION.  Last worked in version 8u73

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Just try to play a HTTP Live Streaming video

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The video should play back
ACTUAL -
The video dows not play back

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
String source = "http://daserste_live-lh.akamaihd.net/i/daserste_de@91204/master.m3u8";
Media media = new Media(source);
MediaPlayer mediaPlayer = new MediaPlayer(media);
mediaPlayer.setCycleCount(MediaPlayer.INDEFINITE);
mediaPlayer.setAutoPlay(false);
mediaView.setMediaPlayer(mediaPlayer);
mediaPlayer.play();

---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
No workaround


Comments
Approved to backport to 8u-dev for 8u122.
29-07-2016

http://hg.openjdk.java.net/openjfx/9-dev/rt/rev/fca2e0b405b8
11-07-2016

Pesky logic errors! Approved.
11-07-2016

Please review the following: http://cr.openjdk.java.net/~almatvee/8159869/webrev.00/ Reviewers: ddehaven This is regression from JDK-8091132. HLS playlist with media segments which has full URLs no longer works. This happens, because of incorrect check if segments in playlist have full URL. Due to this bug we were adding base URL to already full URL and thus downloading failed. 8u fix is the same.
08-07-2016

A complete test case is required to investigate the issue.
09-06-2016