--- old/modules/media/src/main/java/com/sun/media/jfxmedia/locator/HLSConnectionHolder.java 2015-10-01 16:34:34.624199900 -0700 +++ new/modules/media/src/main/java/com/sun/media/jfxmedia/locator/HLSConnectionHolder.java 2015-10-01 16:34:34.140593700 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010, 2013, 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 @@ -593,7 +593,7 @@ private URI getPlaylistURI() throws URISyntaxException, MalformedURLException { String location = playlistsLocations.get(infoIndex); - if (location.startsWith("http://")) { + if (location.startsWith("http://") || location.startsWith("https://")) { return new URI(location); } else { return new URI(playlistURI.toURL().toString().substring(0, playlistURI.toURL().toString().lastIndexOf("/") + 1) + location); @@ -899,7 +899,7 @@ } private void setBaseURI(String playlistURI, String URI) { - if (!URI.startsWith("http://")) { + if (!URI.startsWith("http://") || !URI.startsWith("https://")) { baseURI = playlistURI.substring(0, playlistURI.lastIndexOf("/") + 1); } needBaseURI = false;