mirror of https://github.com/OpenVidu/openvidu.git
Fix AndroidChromeUser REMOTE_URL
parent
7529de5897
commit
c646f66aab
|
@ -29,6 +29,11 @@ public class AndroidChromeUser extends BrowserUser {
|
|||
public AndroidChromeUser(String userName, int timeOfWaitInSeconds) {
|
||||
super(userName, timeOfWaitInSeconds);
|
||||
|
||||
String REMOTE_URL = System.getProperty("REMOTE_URL_ANDROID");
|
||||
if (REMOTE_URL == null) {
|
||||
REMOTE_URL = "http://172.17.0.1:4723/wd/hub";
|
||||
}
|
||||
|
||||
ChromeOptions options = new ChromeOptions();
|
||||
options.addArguments("no-first-run", "disable-infobars", "use-fake-ui-for-media-stream",
|
||||
"use-fake-device-for-media-stream", "ignore-certificate-errors",
|
||||
|
@ -40,7 +45,7 @@ public class AndroidChromeUser extends BrowserUser {
|
|||
|
||||
URL url = null;
|
||||
try {
|
||||
url = new URL("http://172.17.0.1:4723/wd/hub");
|
||||
url = new URL(REMOTE_URL);
|
||||
} catch (MalformedURLException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue