Class WebrtcData
- java.lang.Object
-
- io.appium.java_client.remote.options.BaseMapOptionData<WebrtcData>
-
- io.appium.java_client.safari.options.WebrtcData
-
public class WebrtcData extends BaseMapOptionData<WebrtcData>
-
-
Constructor Summary
Constructors Constructor Description WebrtcData()
WebrtcData(java.util.Map<java.lang.String,java.lang.Object> options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.Boolean>
doesDisableIceCandidateFiltering()
Get whether to disable ICE candidates filtering.java.util.Optional<java.lang.Boolean>
doesDisableInsecureMediaCapture()
Get whether to disable insecure media capture.WebrtcData
withDisableIceCandidateFiltering(boolean disabled)
To protect a user's privacy, Safari normally filters out WebRTC ICE candidates that correspond to internal network addresses when capture devices are not in use.WebrtcData
withDisableInsecureMediaCapture(boolean disabled)
Normally, Safari refuses to allow media capture over insecure connections.-
Methods inherited from class io.appium.java_client.remote.options.BaseMapOptionData
assignOptionValue, getOptionValue, toJson, toMap, toString
-
-
-
-
Method Detail
-
withDisableInsecureMediaCapture
public WebrtcData withDisableInsecureMediaCapture(boolean disabled)
Normally, Safari refuses to allow media capture over insecure connections. This restriction is relaxed by default for WebDriver sessions for testing purposes (for example, a test web server not configured for HTTPS). When this capability is specified, Safari will revert to the normal behavior of preventing media capture over insecure connections.- Parameters:
disabled
- True to disable insecure media capture.- Returns:
- self instance for chaining.
-
doesDisableInsecureMediaCapture
public java.util.Optional<java.lang.Boolean> doesDisableInsecureMediaCapture()
Get whether to disable insecure media capture.- Returns:
- True or false.
-
withDisableIceCandidateFiltering
public WebrtcData withDisableIceCandidateFiltering(boolean disabled)
To protect a user's privacy, Safari normally filters out WebRTC ICE candidates that correspond to internal network addresses when capture devices are not in use. This capability suppresses ICE candidate filtering so that both internal and external network addresses are always sent as ICE candidates.- Parameters:
disabled
- True to disable ICE candidates filtering.- Returns:
- self instance for chaining.
-
doesDisableIceCandidateFiltering
public java.util.Optional<java.lang.Boolean> doesDisableIceCandidateFiltering()
Get whether to disable ICE candidates filtering.- Returns:
- True or false.
-
-