The Image class has several constructors so that you can load an image from a file or a stream in addition to an URL, whereas the Media class only supports loading from an URL. Why is there such an inconsistency? The javadoc also has a little bug. The parameter is currently called "source" but in the parameter description it is named "sourceURI".
- duplicates
-
JDK-8091755 Media should support InputStream
-
- Open
-
- relates to
-
JDK-8090627 Allow Media objects to be loaded from all protocols.
-
- Closed
-
-
JDK-8091835 Support for shoutcast/icecast streaming (mp3/aac(+))
-
- Closed
-
-
JDK-8092090 aac/aac+ radio streaming
-
- Closed
-