Class WebrtcData

    • Constructor Detail

      • WebrtcData

        public WebrtcData()
      • WebrtcData

        public WebrtcData​(java.util.Map<java.lang.String,​java.lang.Object> options)
    • 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.