codenameone

MediaPlayer Video Size Codenameone?

蹲街弑〆低调 提交于 2021-02-07 20:43:14
问题 I have been working on VideoCapture with Codename one using String file=Capture.captureVideo(); Media video = MediaManager.createMedia(file, true); f.addComponent(BorderLayout.CENTER, video.getVideoComponent()); f.revalidate(); and once we do that the problem when we try to open the Media in a MediaPlayer component , the video appear too small for the screen most of the time , and sometime it get fit to the form , the question is : how can I adjust the media inside the MediaPlayer component

Codenameone MediaPlayer generates 'can't play this video' error on Android how do i intercept the dialog so it fails silently

做~自己de王妃 提交于 2021-02-07 10:44:10
问题 My codenameone project has a mediaPlayer which plays videos once they are downloaded, in some instances when the network breaks the video is still saved on the device even though it is corrupt and when the player tries to play this video i get the 'can't play this video' dialog. How can i intercept this so it doesnt show the dialog and i can handle the error in the background, my code for the media player is below video = MediaManager.createMedia(videostream, "video/mp4", new Runnable() {

Current support status of WebRTC in Codename One and AntMedia usage

↘锁芯ラ 提交于 2021-02-07 08:53:53
问题 Is there any information, updates, or documentation regarding Codename One's WebRTC support? There was a mention of it months ago in this comment on Stack Overflow (AntMedia Native Interface issues), but then I haven't heard anything more about it. For the time being, I'm supporting live streaming on AntMedia via native interfaces that do live streaming with RMTP, as on my own I couldn't find a way to support WebRTC in Codename One. Unfortunately I realized just today that the RMTP support on

Current support status of WebRTC in Codename One and AntMedia usage

≯℡__Kan透↙ 提交于 2021-02-07 08:50:42
问题 Is there any information, updates, or documentation regarding Codename One's WebRTC support? There was a mention of it months ago in this comment on Stack Overflow (AntMedia Native Interface issues), but then I haven't heard anything more about it. For the time being, I'm supporting live streaming on AntMedia via native interfaces that do live streaming with RMTP, as on my own I couldn't find a way to support WebRTC in Codename One. Unfortunately I realized just today that the RMTP support on

CodenameOne :“Path to javac not found” error

心不动则不痛 提交于 2021-01-29 10:38:51
问题 I start working with CodenameOne tool for multiplatform mobile dev. When I created "hello world" app and tried to build an .apk android file, I received [echo] Error! Path to Javac not found! [echo] Make sure the JAVA_HOME enviroment variable is pointing to the JDK [echo] or define javac path in build.xml manually! I added JRE reference to the project, but this didn't solve the issue. How can I solve it? 回答1: Codename One needs to use the actual javac compiler and not ADT since some of our

building from xcode source, missing “pods” library

☆樱花仙子☆ 提交于 2021-01-28 19:40:49
问题 Attempting to build an ios project downloaded from the build server, I get a link error complaining that the "pods-develop" library was not found. There's also a pods xcode project, but building it doesn't change the outcome. What information am I missing? 回答1: Do you have these hints in your Codename One propertie's build hint ? ios.pods.sources=,https://github.com/CocoaPods/Specs.git ios.objC=true 来源: https://stackoverflow.com/questions/39970015/building-from-xcode-source-missing-pods

How to get a value from a dialog when on any thread?

核能气质少年 提交于 2021-01-28 02:10:14
问题 I wonder if this is the right way for getting a PIN from a dialog? public static <T> T getFromGui(Supplier<T> supplier) { if (CN.isEdt()) return supplier.get(); final Object[] holder = new Object[1]; CN.callSeriallyAndWait(() -> holder[0] = supplier.get()); @SuppressWarnings("unchecked") final T result = (T) holder[0]; return result; } public static String askPin() { if (!CN.isEdt()) return getFromGui(() -> askPin(bankzugang)); ... final boolean cont = Dialog.show( "Your PIN", BoxLayout

Unsupported major.minor version 51.0

↘锁芯ラ 提交于 2021-01-28 02:04:12
问题 I'm developing with CodenameOne in the IntelliJ IDE. When I choose "Send MacOS Desktop Build", I get this error message: Unsupported major.minor version 51.0 My project SDK says 1.5 (Java Version 1.6.0_65) My Language level is set to 5.0 I've done a rebuild, which should recompile everything, but I still get this error. Version 51 refers to Java 7. Can anyone tell me how to fix this? 回答1: This is a problem because we require a minimum of JDK 1.7 and now recommend JDK 8. You need to set