handle (ignore) exception on setAllowNetworking call

This commit is contained in:
honfika@gmail.com
2015-08-28 20:36:29 +02:00
parent 543f9c7152
commit 44d3bada72

View File

@@ -161,7 +161,12 @@ public final class FlashPlayerPanel extends Panel implements Closeable, MediaDis
}
flash.setAllowScriptAccess("always");
flash.setAllowNetworking("all");
try {
flash.setAllowNetworking("all");
} catch (ActiveXException ex) {
// ignore
}
flash.addOnReadyStateChangeListener((ActiveXEvent axe) -> {
fireMediaDisplayStateChanged();
});