How to adapt to Alibaba YUNOSTV platform


##YUNOS TV Type and Configuration


There are many Alibaba YUNOS TV terminals. We provide developers with the most reference terminal parameters to help developers adapt.

Currently, the YUNOS TV application center mainly runs on MagicBox 1, MagicBox1S, MagicBox1S pro, MagicBox1S (or 2C), and MagicBox2 devices. The following are the specific configuration parameters of these devices:

1450334462663_6512bd43d9caa6e02c990b0a82652dca (1).png

1450334462663_6512bd43d9caa6e02c990b0a82652dca.png


Note: There are many models of YunOS alliance boxes and all-in-one machines, and the configuration parameters will be added after sorting out the dimensions.



##YUNOS TV display parametersFor different types of devices, the display parameters will be different. To ensure that the developer's application can be displayed normally on each device and the experience on each platform remains consistent, developers need to To adapt to applications of multiple sizes, please refer to "Optimize Layouts for Larger Screens".


TypeScreen Sizesw720p##Screen pixel densityOrientationAspect ratio




##YUNOS TV Application UI specifications

Applications developed on YUN OS have certain standard specifications in terms of UI such as fonts and controls. Developers can adapt or develop their own applications according to these specifications. .

1450332794935_c4ca4238a0b923820dcc509a6f75849b.png




#Remote controls, handles and other peripheral key valuesTV applications or games need to adapt the key values ​​of the remote control during the adaptation process. You can choose whether to adapt to the key values ​​of other peripherals such as controllers, and ensure that all operations of the application can be completed using the remote control. Linux and Android key-values ​​are the two standards for key-value adaptation. It is recommended to prioritize Linux key-value adaptation and be compatible with Android. For specific peripheral adaptation and access, you can download the peripheral SDK


Parameters


mdpi

landscape

long

##LinuxAndroidRemarksKEY_LEFT (105)KEY_UP (103)KEY_RIGHT (106)KEY_DOWN (108)KEY_MENU (139)KEY_HOMEPAGE (172)KEY_ESC (001)KEY_ENTER (028)KEY_VOLUMEUP(115)##BTN_TL (0x136)KEYCODE_BUTTON_L1Game L1 Button key##BTN_TL2 (0x138)##BTN_TR (0x137)KEYCODE_BUTTON_SELECTGameSelect Button keyKEYCODE_BUTTON_START##BTN_THUMBL (0x13d)KEYCODE_BUTTON_THUMBL

Key value

Key value

KEYCODE_DPAD_LEFT

Direction left Key

KEYCODE_DPAD_UP

direction Key

KEYCODE_DPAD_RIGHT

Direction right key

KEYCODE_DPAD_DOWN

Direction down key

KEYCODE_MENU

Menu key

KEYCODE_HOME

Home key

KEYCODE_BACK

Back Key

KEYCODE_DPAD_CENTER

Confirm key

##KEYCODE_VOLUME_UP(24)

Volume key increase

KEY_VOLUMEDOWN(114)

KEYCODE_VOLUME_DOWN(25)

Volume key down

BTN_A (0x130)

KEYCODE_BUTTON_A

Game A Button key

BTN_B (0x131)

KEYCODE_BUTTON_B

##Game B Button key

BTN_X (0x133)

KEYCODE_BUTTON_X

GameX Button key

BTN_Y (0x134)

KEYCODE_BUTTON_Y

Game Y Button key

KEYCODE_BUTTON_L2

Game L2 Button key

KEYCODE_BUTTON_R1

Game R1 Button key

##BTN_TR2 (0x139)
KEYCODE_BUTTON_R2

GameR2 Button key

##BTN_SELECT (0x13a)

##BTN_START (0x13b)

Game Start Button key

Left Thumb Button

##BTN_THUMBR (0x13e)

KEYCODE_BUTTON_THUMBR
Right Thumb Button


Application specifications


##Application specifications:

The application version number Version Code format: 210AABBBCC, the version number cannot exceed 10 digits.

The first paragraph 210 is the prefix. AABBB, 5 digits, is used to indicate the version number. For example, 1.7 can be represented as 01007, and 2.0.0 can be represented as 02000. 100 minor version numbers are reserved for each version of CC, which are used for bug modification and minor feature upgrades.


Icon specifications:

TV application center currently uses two image specifications, which are divided into versions 2.5 and below and versions 2.6 and above. During adaptation It is necessary to make two charts of different specifications for adaptation.


The application center icon of version 2.5 and below uses a 340x460 size image. When making the image, you need to pay attention to the visual focus of the image in the 340x328 (50px from the starting point) area. The 340x112 area at the bottom is the text mask area. Do not allow complex graphics or important information to appear in this area.


The application center icon of version 2.6 and above uses a 340x340 size image. When making the image, you need to pay attention to the visual focus of the image in the 256x256 area.

Do not add text or subtitles to the icon.


TB16WBQOVXXXXcsXFXXXXXXXXXX-1268-714.png


1450332962519_a87ff679a2f3e71d9181a67b7542122c.jpg



#