release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Wiki > Main > ViewerPlugin (compare)

Difference: ViewerPlugin (r3 vs. r2)

View Files with Plugins

A viewer-plugin is a plugin that is programmed just like any other plugin, but acts to display, edit, write or otherwise deal with a file.

Viewer plugins are kept in ".rockbox/viewers/". They can be used to browse a file when invoked with the ON+PLAY menu choice "view with" and they are invoked when a file with its associated registered extension is used.

The extension <=> plugin connection is set in the ".rockbox/viewers.config" file.

Below follows an example showing the file format of the viewers.config file. The 6 hexadecimal digits are the icon for the exension extension that shows up in the file browser.

ch8,chip8.rock,70 70 7f 7f 70 70
txt,viewer.rock,55 55 55 55 55 55
jpg,jpeg.rock,18 24 3C 3C 24 18
ucl,rockbox_flash.rock,2A 7F 41 41 7F 2A
rvf,video.rock,5D 7F 5D 7F 5D 7F
mp3,vbrfix.rock,10 08 58 38 04 02
m3u,search.rock,00 00 00 00 00 00
txt,sort.rock, 00 00 00 00 00 00

r5 - 30 Jan 2008 - 23:20:34 - MarcGuay

Revision r3 - 15 Feb 2005 - 06:46 - AlexandreBourget
Revision r2 - 28 Nov 2004 - 22:47 - JensArnold
Copyright by the contributing authors.