modules/media/src/main/java/com/sun/media/jfxmediaimpl/platform/Platform.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
@@ -58,15 +58,31 @@
}
}
return false;
}
+ public boolean canPlayProtocol(String protocol) {
+ String[] protocols = getSupportedProtocols();
+ if (protocols != null) {
+ for (String p : protocols) {
+ if (p.equalsIgnoreCase(protocol)) {
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
// NB: This method returns only content which can actually be PLAYED. It
// does not account for metadata being able to be parsed without the media
// being able to be played.
public String[] getSupportedContentTypes() {
- return null;
+ return new String[0];
+ }
+
+ public String[] getSupportedProtocols() {
+ return new String[0];
}
// XXX javadoc
public MetadataParser createMetadataParser(Locator source) {
return null;