modules/media/src/main/java/com/sun/media/jfxmediaimpl/NativeMediaPlayer.java

Print this page

       

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2015, 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
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -748,11 +748,11 @@
         private void sendFakeBufferProgressEvent() {
             // Send fake 100% buffer progress event for HLS or !http protcol
             String contentType = media.getLocator().getContentType();
             String protocol = media.getLocator().getProtocol();
             if ((contentType != null && (contentType.equals(MediaUtils.CONTENT_TYPE_M3U) || contentType.equals(MediaUtils.CONTENT_TYPE_M3U8)))
-                    || (protocol != null && !protocol.equals("http"))) {
+                    || (protocol != null && !protocol.equals("http") && !protocol.equals("https"))) {
                 HandleBufferEvents(new BufferProgressEvent(getDuration(), 0, 1, 1));
             }
         }
     }