[iOS] WDA mjpegServerPort changeable first time only

  1. WDA not running on the phone.
  2. Create session with {
    mjpegServerPort: 8110
    }
  3. WDA running and video streaming available with 8110.
  4. Delete session. WDA still running.
  5. Create session with {
    mjpegServerPort: 8111
    }
  6. Session created and video streaming available with 8111.
  7. Delete session. WDA still running.
  8. Create session with {
    mjpegServerPort: 8112
    }
  9. Session created but video streaming not available with 8112.
  10. Delete session. WDA still running.
  11. Create session with {
    mjpegServerPort: 8111
    }
  12. Session created and video streaming available with 8111.
  13. Delete session. WDA still running.
  14. Create session with {
    mjpegServerPort: 8110
    }
  15. Session created but video streaming not available with 8110.

To change mjpegServerPort on every session creating, I should use { useNewWDA: true } to restart WDA on the phone.

1 Like

This is expected. The port number is passed as an environment variable to the server and could only be set at the process startup. Feel free to add this note to the capability documentation.

1 Like