SmartCast Driver
Introduction
This page is a reference for the available commands and key mappings for the appium-smartcast-driver
.
The SmartCast driver is a closed source Appium driver written by TV Labs for the Vizio SmartCast platform. It enables connecting to the SmartCast device in an Appium session, and interfacing with it using both Chromedriver and the Remote Control API.
Available Commands
All executeScript
commands are proxied to a ChromeDriver instance connected to the debugger port on the device. Availability is based on what the Chromium version supports.
In addition to these proxied commands, the driver offers the following commands for device interaction using the remote control:
Command | Required Arguments | Description |
---|---|---|
smartcast: pressKey | key | Press a key on the SmartCast device. If the key is available through the remote control, it will be preferred. Otherwise falls back to using Chromedriver. |
smartcast: enterText | text | Enters text on the SmartCast device using the remote control. |
smartcast: deviceInfo | - | Returns information about the current device, such as model information, software versions, hardware capabilities, and more. This information is retrieved from the TV Settings > Admin and Privacy > System Information > TV Information menu. |
Key Map
The following keys are available with the smartcast: pressKey
command. Pressing individual keys like letters, numbers, or symbols is supported through Chromedriver. To enter text using the remote control, use the smartcast: enterText
command.
Key | Description | Sent Using |
---|---|---|
up | Up | Remote Control |
down | Down | Remote Control |
left | Left | Remote Control |
right | Right | Remote Control |
ok | OK/Enter | Remote Control |
back | Back | Remote Control |
menu | Menu | Remote Control |
info | Info | Remote Control |
home | Home | Remote Control |
smartcast | SmartCast | Remote Control |
cc_toggle | CC Toggle | Remote Control |
vol_up | Volume Up | Remote Control |
vol_down | Volume Down | Remote Control |
mute_on | Mute On | Remote Control |
mute_off | Mute Off | Remote Control |
mute_toggle | Mute Toggle | Remote Control |
pic_mode | Picture Mode | Remote Control |
pic_size | Picture Size | Remote Control |
input_next | Next Input | Remote Control |
ch_up | Channel Up | Remote Control |
ch_down | Channel Down | Remote Control |
ch_prev | Previous Channel | Remote Control |
seek_fwd | Seek Forward | Remote Control |
seek_back | Seek Backward | Remote Control |
play | Play | Remote Control |
pause | Pause | Remote Control |
pow_on | Power On | Remote Control |
pow_off | Power Off | Remote Control |
pow_toggle | Power Toggle | Remote Control |
exit | Exit | Remote Control |
enter | Enter | Chromedriver |
stop | Stop | Chromedriver |
track_next | Next Track | Chromedriver |
track_prev | Previous Track | Chromedriver |
page_up | Page Up | Chromedriver |
page_down | Page Down | Chromedriver |
backspace | Backspace | Chromedriver |
space | Space | Chromedriver |