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..