The tvlabs connect command connects with Vizio SmartCast devices on the TV Labs platform as if they were in front of you.
Prerequisites
There are no vendor-specific tools required to connect to a SmartCast device. The CLI handles all port forwarding automatically.
Connecting
Start a SmartCast session on TV Labs and run tvlabs connect. Select the session from the list, and the CLI will establish a connection.
Once connected, development ports for the Conjure Launcher and the Chrome DevTools Protocol (CDP) debugger will be mapped to your localhost.
Port Mapping
The port mapping when tvlabs connect is running and connected to a SmartCast session is as follows:
- Local port 7345 to SmartCast device port 7345 (Conjure Launcher)
- Local port 9555 to SmartCast device port 9555 (CDP Debugger)
Installing
SmartCast applications are sideloaded through the Conjure Launcher. Package your application as a .zip file and use the Conjure Launcher API on localhost:7345 to install it.
If your application depends on a locally running web application, you can use tvlabs connect -p <port> to forward a local port to the device. The application will be accessible from the device at http://local.tvlabs.ai:50552. See Accessing a Local Application for more details.
Debugging your application
The Chrome DevTools Protocol (CDP) is available on SmartCast devices. When connected via tvlabs connect, the debugger is accessible at localhost:9555.
Navigate to chrome://inspect in Chrome and click "Configure..." to add localhost:9555 as a target discovery endpoint. Once your application is running on the device, it will appear in the inspect list.
Click "Inspect" to open the DevTools window, which provides access to the DOM, console, network activity, and more.
Troubleshooting
If the Conjure Launcher or debugger ports are not reachable after a successful tvlabs connect, verify that the session is still active on the devices page.
If the device becomes disconnected during the session, press the "r" key in the tvlabs connect UI to reconnect.
If tvlabs connect still cannot make a connection after trying these steps, please contact TV Labs for support.
