changeset 11113:f4802915ad95

8213837: FX samples cannot load media from download.java.net over http Reviewed-by: mbilla
author kcr
date Wed, 14 Nov 2018 13:26:16 +0100
parents 1f1cca0200eb
children f79cccd8514d
files apps/samples/Ensemble8/src/samples/java/ensemble/samples/charts/area/audio/AudioAreaChartApp.java apps/samples/Ensemble8/src/samples/java/ensemble/samples/charts/bar/audio/AudioBarChartApp.java apps/samples/Ensemble8/src/samples/java/ensemble/samples/media/advancedmedia/AdvancedMediaApp.java apps/samples/Ensemble8/src/samples/java/ensemble/samples/media/overlaymediaplayer/OverlayMediaPlayerApp.java apps/samples/Ensemble8/src/samples/java/ensemble/samples/media/streamingmediaplayer/StreamingMediaPlayerApp.java apps/toys/Hello/src/main/java/hello/HelloMedia.java
diffstat 6 files changed, 12 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/apps/samples/Ensemble8/src/samples/java/ensemble/samples/charts/area/audio/AudioAreaChartApp.java	Mon Nov 12 10:26:56 2018 +0100
+++ b/apps/samples/Ensemble8/src/samples/java/ensemble/samples/charts/area/audio/AudioAreaChartApp.java	Wed Nov 14 13:26:16 2018 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2008, 2016, Oracle and/or its affiliates.
+ * Copyright (c) 2008, 2018, Oracle and/or its affiliates.
  * All rights reserved. Use is subject to license terms.
  *
  * This file is available and licensed under the following license:
@@ -67,7 +67,7 @@
     private XYChart.Data<Number, Number>[] series1Data;
     private AudioSpectrumListener audioSpectrumListener;
     private static final String AUDIO_URI = System.getProperty("demo.audio.url",
-            "http://download.oracle.com/otndocs/javafx/JavaRap_Audio.mp4");
+            "https://download.oracle.com/otndocs/javafx/JavaRap_Audio.mp4");
     private MediaPlayer audioMediaPlayer;
     private static final boolean PLAY_AUDIO = Boolean.parseBoolean(
             System.getProperty("demo.play.audio", "true"));
--- a/apps/samples/Ensemble8/src/samples/java/ensemble/samples/charts/bar/audio/AudioBarChartApp.java	Mon Nov 12 10:26:56 2018 +0100
+++ b/apps/samples/Ensemble8/src/samples/java/ensemble/samples/charts/bar/audio/AudioBarChartApp.java	Wed Nov 14 13:26:16 2018 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2008, 2016, Oracle and/or its affiliates.
+ * Copyright (c) 2008, 2018, Oracle and/or its affiliates.
  * All rights reserved. Use is subject to license terms.
  *
  * This file is available and licensed under the following license:
@@ -72,7 +72,7 @@
     private AudioSpectrumListener audioSpectrumListener;
     private static final String AUDIO_URI =
         System.getProperty("demo.audio.url",
-            "http://download.oracle.com/otndocs/products/javafx/oow2010-2.mp4");
+            "https://download.oracle.com/otndocs/products/javafx/oow2010-2.mp4");
     private MediaPlayer audioMediaPlayer;
     private static final boolean PLAY_AUDIO = Boolean.parseBoolean(
             System.getProperty("demo.play.audio", "true"));
--- a/apps/samples/Ensemble8/src/samples/java/ensemble/samples/media/advancedmedia/AdvancedMediaApp.java	Mon Nov 12 10:26:56 2018 +0100
+++ b/apps/samples/Ensemble8/src/samples/java/ensemble/samples/media/advancedmedia/AdvancedMediaApp.java	Wed Nov 14 13:26:16 2018 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2008, 2016, Oracle and/or its affiliates.
+ * Copyright (c) 2008, 2018, Oracle and/or its affiliates.
  * All rights reserved. Use is subject to license terms.
  *
  * This file is available and licensed under the following license:
@@ -55,7 +55,7 @@
 public class AdvancedMediaApp extends Application {
 
     private static final String MEDIA_URL =
-        "http://download.oracle.com/otndocs/products/javafx/oow2010-2.mp4";
+        "https://download.oracle.com/otndocs/products/javafx/oow2010-2.mp4";
 
     private MediaPlayer mediaPlayer;
     private MediaControl mediaControl;
--- a/apps/samples/Ensemble8/src/samples/java/ensemble/samples/media/overlaymediaplayer/OverlayMediaPlayerApp.java	Mon Nov 12 10:26:56 2018 +0100
+++ b/apps/samples/Ensemble8/src/samples/java/ensemble/samples/media/overlaymediaplayer/OverlayMediaPlayerApp.java	Wed Nov 14 13:26:16 2018 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2008, 2016, Oracle and/or its affiliates.
+ * Copyright (c) 2008, 2018, Oracle and/or its affiliates.
  * All rights reserved. Use is subject to license terms.
  *
  * This file is available and licensed under the following license:
@@ -60,7 +60,7 @@
 
     public Parent createContent() {
         final String MEDIA_URL =
-            "http://download.oracle.com/otndocs/javafx/" +
+            "https://download.oracle.com/otndocs/javafx/" +
             "JavaRap_ProRes_H264_768kbit_Widescreen.mp4";
         final String overlayMediaPlayerCss =
             getClass().getResource("OverlayMediaPlayer.css").toExternalForm();
--- a/apps/samples/Ensemble8/src/samples/java/ensemble/samples/media/streamingmediaplayer/StreamingMediaPlayerApp.java	Mon Nov 12 10:26:56 2018 +0100
+++ b/apps/samples/Ensemble8/src/samples/java/ensemble/samples/media/streamingmediaplayer/StreamingMediaPlayerApp.java	Wed Nov 14 13:26:16 2018 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2008, 2016, Oracle and/or its affiliates.
+ * Copyright (c) 2008, 2018, Oracle and/or its affiliates.
  * All rights reserved. Use is subject to license terms.
  *
  * This file is available and licensed under the following license:
@@ -59,7 +59,7 @@
 
     public Parent createContent() {
         final String MEDIA_URL =
-            "http://download.oracle.com/otndocs/javafx/" +
+            "https://download.oracle.com/otndocs/javafx/" +
             "JavaRap_ProRes_H264_768kbit_Widescreen.mp4";
         final String streamingMediaPlayerCss =
             getClass().getResource("StreamingMediaPlayer.css").toExternalForm();
--- a/apps/toys/Hello/src/main/java/hello/HelloMedia.java	Mon Nov 12 10:26:56 2018 +0100
+++ b/apps/toys/Hello/src/main/java/hello/HelloMedia.java	Wed Nov 14 13:26:16 2018 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -45,7 +45,7 @@
 
 public class HelloMedia extends Application {
     private static final String DEFAULT_SOURCE =
-        "http://download.oracle.com/otndocs/products/javafx/oow2010-2.mp4";
+        "https://download.oracle.com/otndocs/products/javafx/oow2010-2.mp4";
     private static String argSource = null;
 
     @Override