Hello again
Just a new library with new barrier
I got this error from SLC when trying to wrap this project https://github.com/niqdev/ipcam-view
Is it possible that "Observable" uses some kind of tokens or special symbols that SLC does not understand ?
How can I solve such issue ?
Thanks in advance
Just a new library with new barrier
I got this error from SLC when trying to wrap this project https://github.com/niqdev/ipcam-view
B4X:
Mjpeg.java:84: error: illegal start of expression
return Observable.defer(() -> {
^
1 error
Error.
B4X:
@NonNull
private Observable<MjpegInputStream> connect(String url) {
/*this is line 84 */ return Observable.defer(() -> {
try {
HttpURLConnection urlConnection = (HttpURLConnection) new URL(url).openConnection();
InputStream inputStream = urlConnection.getInputStream();
switch (type) {
// handle multiple implementations
case DEFAULT:
return Observable.just(new MjpegInputStreamDefault(inputStream));
case NATIVE:
return Observable.just(new MjpegInputStreamNative(inputStream));
}
throw new IllegalStateException("invalid type");
} catch (IOException e) {
return Observable.error(e);
}
});
}
Is it possible that "Observable" uses some kind of tokens or special symbols that SLC does not understand ?
How can I solve such issue ?
Thanks in advance