headspinio / appium-tizen-tv-driver

A Samsung Tizen TV driver for Appium
Apache License 2.0
11 stars 2 forks source link

use 8001 for "TokenAuthSupport": "true" in pairing #594

Closed KazuCocoa closed 4 months ago

KazuCocoa commented 4 months ago

If http://<ip>:8001/api/v2/ does not have "TokenAuthSupport": "true" in the device key, the paring https://github.com/headspinio/appium-tizen-tv-driver/blob/main/packages/appium-tizen-tv-driver/lib/rc-pair.js#L19 should use 8001 instead. Maybe we can add auto detection logic there.

curl --insecure https://192.168.11.201:8002/api/v2/
{
  ...
  "device": {
    "type": "Samsung SmartTV",
    ...
    "wifiMac": "cc:b1:1a:d4:62:bb",
    "developerMode": "1",
    "OS": "Tizen"
  },
  "type": "Samsung SmartTV",
  "remote": "1.0",
  "isSupport": "{\"remote_available\":\"true\",\"remote_fourDirections\":\"true\",\"remote_touchPad\":\"true\",\"remote_voiceControl\":\"false\",\"DMP_available\":\"true\",\"DMP_DRM_PLAYREADY\":\"false\",\"DMP_DRM_WIDEVINE\":\"false\",\"EDEN_available\":\"true\"}"
}
KazuCocoa commented 4 months ago

We haven't observed this case yet. Let's do when we get this case.