Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

HTTP Live Streaming m3u8 example not playing - JavaFX 2.2.7 standalone for java 1.6.0.32

2713580Jul 15 2014 — edited Jul 16 2014

Hi all,
I searched high and low on here and the wild wild web, but can find no support for my problem.

I was testing my JavaFX2.2.7 based media player code in a current Java 6 application when I discovered that HTTP Live Streaming does not seem to work.  I can play a local file of the supported format (Sintel trailor mp4 h264) but when I try and use an HTTP Live Stream instead, nothing plays. (for example http://download.oracle.com/otndocs/products/javafx/JavaRap/prog_index.m3u8 ).  I end up with a blank player, and no exceptions or errors.

private static final String MEDIA_URL = "http://download.oracle.com/otndocs/products/javafx/JavaRap/prog_index.m3u8";

Media media = new Media(MEDIA_URL);

        MediaException ex = media.getError();

        if (ex != null){

           System.out.println("Media Error" + ex.getMessage());

        } else{

           System.out.println("No Media Error");

        }

Program console output: "No Media Error"

I thought it was something wrong with my player code, so as a last resort, I went to JavaFX 2 - Ensemble and copied the source and put it directly into my application and ran it... Unfortunately the same result occurs. The player runs, but simply shows a blank video window.  The controls are available, but no video plays.

Based on the Release notes for Java 2.2.7 I was under the impression that HLS was supported.  Am I incorrect?

I cannot upgrade to Java 7 as I am firmly stuck with Java 1.6.0.32 due to project constraints.

Any assistance someone can provide would be greatly appreciated.

Message was edited by: 2b18d6de-8200-4adc-a82a-88fc0451f448 I have upgraded to JavaFX 2.2.21 and this did not fix the problem.  The result is exactly the same.  No exceptions, no errors, and no video..

This post has been answered by 2713580 on Jul 15 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 13 2014
Added on Jul 15 2014
3 comments
3,948 views