|
Developer Resources
KML palette
The 256 color palette available in KML is rather special because it has not just colors but
also seperate alpha channel values for each entry in the palette index. The alpha
value ranges from 0 to 255 where 0 means transparent and 255 means opaque. To see
the palette available in KML, click KML palette.
For every line in the text file, the values are:
RED
GREEN
BLUE
ALPHA
Font spacing
KML currently does not support automatic line wrapping. To wrap lines yourself, you
have to know how wide the characters are. The following code is an example of how to
calculate the length of text.
Please notice that the following tables start with ascii character 32 (space). The use of
character set iso-8859-1 is assumed.
Characters not found in these tables should probably be assigned a default width of appx.
10 pixels.
if ($_GET["PlayerModel"] != "DP-558")
{
$charwidth = array(
7, 7, 9, 16, 12, 20, 14, 5, 9, 9, 12, 16, 7, 9, 7, 9, 12, 12, 12, 12,
12, 12, 12, 12, 12, 12, 9, 9, 16, 16, 16, 10, 19, 13, 13, 13, 15, 12,
11, 15, 14, 8, 9, 13, 11, 16, 14, 15, 11, 15, 13, 13, 12, 14, 13, 19,
13, 12, 13, 9, 9, 9, 16, 12, 12, 11, 12, 10, 12, 11, 7, 12, 12, 5, 7,
11, 5, 18, 12, 12, 12, 12, 8, 10, 7, 12, 11, 16, 11, 11, 10, 12, 9,
12, 16, 0, 12, 0, 5, 12, 9, 16, 12, 12, 12, 29, 13, 9, 20, 0, 0, 0,
0, 5, 5, 9, 9, 10, 12, 19, 12, 19, 10, 9, 19, 0, 0, 12, 0, 7, 12, 12,
12, 12, 9, 12, 12, 19, 10, 12, 16, 16, 19, 12, 10, 16, 10, 10, 12,
12, 12, 7, 12, 10, 10, 12, 19, 19, 19, 10, 13, 13, 13, 13, 13, 13,
19, 13, 12, 12, 12, 12, 8, 8, 8, 8, 15, 14, 15, 15, 15, 15, 15, 16,
15, 14, 14, 14, 14, 12, 12, 12, 11, 11, 11, 11, 11, 11, 18, 10, 11,
11, 11, 11, 5, 5, 5, 5, 12, 12, 12, 12, 12, 12, 12, 16, 12, 12, 12,
12, 12, 11, 12, 11);
} else
{
$charwidth = array(
7, 4, 9, 12, 12, 19, 13, 4, 7, 7, 11, 12, 7, 10, 5, 9, 11, 10, 11, 10, 12, 10,
11, 10, 11, 11, 5, 7, 13, 12, 13, 10, 16, 12, 11, 12, 12, 10, 9, 13, 11, 7, 10,
11, 9, 13, 11, 13, 10, 13, 12, 12, 12, 13, 12, 17, 12, 12, 12, 6, 9, 6, 11, 12,
7, 10, 10, 11, 10, 11, 7, 10, 10, 4, 7, 10, 4, 15, 10, 10, 10, 10, 9, 9, 9, 10,
10, 14, 13, 12, 9, 9, 4, 9, 14, 14, 16, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 4, 11, 11, 13, 14, 4,
10, 8, 19, 9, 11, 12, 8, 19, 13, 10, 12, 8, 8, 7, 10, 10, 5, 6, 6, 9, 11, 18,
18, 18, 9, 12, 12, 12, 12, 12, 12, 16, 12, 10, 10, 10, 10, 7, 7, 7, 8, 15, 11,
13, 13, 13, 13, 13, 10, 13, 12, 12, 12, 12, 12, 10, 10, 10, 10, 10, 10, 10, 10,
16, 9, 11, 11, 11, 11, 6, 5, 7, 7, 10, 10, 10, 10, 10, 10, 10, 12, 11, 10, 10,
10, 10, 10, 11, 10, 12, 10, 12, 10, 14, 12, 12, 10, 12, 10, 12, 10, 12, 10, 12,
14, 15, 12, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 13, 10, 13, 10, 13, 10, 13,
10, 11, 10, 15, 12, 8, 7, 7, 7, 7, 7, 9, 7, 7, 4, 14, 10, 8, 8, 11, 10, 10, 9,
5, 9, 6, 9, 8, 9, 7, 12, 8, 11, 10, 11, 10, 11, 10, 13, 11, 10, 13, 10, 13, 10,
13, 10, 18, 17, 11, 7, 11, 9, 11, 8, 12, 9, 12, 9, 12, 9, 12, 9, 12, 7, 12, 9,
12, 8, 12, 10, 12, 10, 12, 10, 12, 10, 12, 10, 12, 12, 16, 14, 12, 10, 12, 12,
9, 12, 9, 12, 9, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 14, 7, 7, 12
);
}
|
GET string
The GET string always gets the following parameters attached by the KiSS kml client. The values shown after each parameter are examples:
- PlayerID=abcdefghijkl
- PlayerBrand=KiSS
- PlayerModel=DP-558
- PlayerLanguage=1
- PlayerFirmware=293
- ScreenWidth=720
- ScreenHeight=576
- ScreenForm=4x3
- UTC=7200
- KML=2.1
PlayerLanguage =
- en_GB ?
- en_US
- de_DE
- fr_FR
- da_DK
- sv_SE
- no_NO
- fi_FI
- es_ES
- it_IT
- nl_NL
- pl_PL
- pt_PT
|
ScreenForm =
- 4x3 for normal / old TVs
- 16x9 for widescreen and high-def TVs
|
KML Key Codes
KML 2.5 and up understands all the following key codes. Older products only accept a subset of the below list.
Key codes marked by "DP-558" are understood only by DP-558 and VR-558. Key codes marked by "Legacy" are understood only
by DP-150x and DP-50x.
| 2 | Skip forward | DP-558 |
| 3 | Skip backwards | DP-558 |
| 10 | Eject | |
| 11 | Options | |
| 12 | Multi digit | |
| 20 | Next channel | |
| 21 | Previous channel | |
| 65 | Menu | |
| 67 | Up | |
| 68 | Down | |
| 69 | Left | |
| 70 | Right | |
| 71 | Enter | Legacy |
| 73 | Zero | |
| 74 | One | |
| 75 | Two | |
| 76 | Three | |
| 77 | Four | |
| 79 | Five | |
| 80 | Six | |
| 81 | Seven | |
| 82 | Eight | |
| 83 | Nine | |
| 84 | Title menu | |
| 93 | Back | |
| 94 | Rewind | |
| 95 | F.Forward | |
| 97 | Audio | |
| 98 | Subtitle | |
| 99 | Zoom | |
| 100 | Angle | |
| 102 | Mark | |
| 103 | Erase | |
| 105 | Volume up | |
| 112 | Volume down | |
| 115 | Enter | DP-558 |
| 117 | Input | |
| 118 | TV | |
| 119 | HDD | |
| 120 | DVD | |
| 121 | Store | |
| 128 | Online | |
| 129 | PC-Link | |
| 768 | Setup | |
| 17387 | Play | |
| 16388 | Skip forward | Legacy |
| 16389 | Skip backwards | Legacy |
|
|
|