Log on
Main page Graphics Photography Music & Audio Audio Plugins Video Tools Web Design Documents Space Astro Amiga Funny Surreal Gallery Links & Contact
123456789

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 =
  1. en_GB ?
  2. en_US
  3. de_DE
  4. fr_FR
  5. da_DK
  6. sv_SE
  7. no_NO
  8. fi_FI
  9. es_ES
  10. it_IT
  11. nl_NL
  12. pl_PL
  13. 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.
2Skip forwardDP-558
3Skip backwardsDP-558
10Eject
11Options
12Multi digit
20Next channel
21Previous channel
65Menu
67Up
68Down
69Left
70Right
71EnterLegacy
73Zero
74One
75Two
76Three
77Four
79Five
80Six
81Seven
82Eight
83Nine
84Title menu
93Back
94Rewind
95F.Forward
97Audio
98Subtitle
99Zoom
100Angle
102Mark
103Erase
105Volume up
112Volume down
115EnterDP-558
117Input
118TV
119HDD
120DVD
121Store
128Online
129PC-Link
768Setup
17387  Play
16388Skip forwardLegacy
16389Skip backwardsLegacy

    Website by Joachim Michaelis