RFR: 8238755: allow to create static lib for javafx.media on linux
almatvee at openjdk.java.net
Tue Feb 11 22:34:06 UTC 2020
On Tue, 11 Feb 2020 10:59:32 GMT, Johan Vos <jvos at openjdk.org> wrote:
>> I added a comment about using an ifdef for `GSTREAMER_LITE` in one of the modified files (the others are fine, since those files are entirely FX_specific).
>> One other question: do you need any changes in [ConnectionHolder.java](https://github.com/openjdk/jfx/blob/c334ba810293683b7e510a91be3496f7a872c574/modules/javafx.media/src/main/java/com/sun/media/jfxmedia/locator/ConnectionHolder.java)? That class checks for URL scheme to determine whether a URL is seekable.
> As for the ConnectionHolder: the URIConnectionHolder will be used. This indeed will by default return false for `isSeekable` hence that functionality will now not be possible using the "resource" protocol.
Does "resource" protocol allows random access? If yes, we should update isSeekable() to return true for resource protocol. seek() should also be updated. I think same should work as for "if ((urlConnection instanceof JarURLConnection) || isJRT())"
More information about the openjfx-dev