|
|
Wiki > Main > ViewerPlugin (compare)
|
Difference: ViewerPlugin (r5 vs. r4)View Files with PluginsA 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 number at digits are the end of each line defines the icon for to be associated with the extension that shows up in the file extension. For more on viewer icons see browser. here. ch8,viewers/chip8,70 70 7f 7f 70 ch8,viewers/chip8,0 txt,viewers/viewer,1 nfo,viewers/viewer,1 txt,apps/text_editor,2 jpg,viewers/jpeg,2 70 txt,viewers/viewer,55 55 55 55 55 55 jpg,viewers/jpeg,18 24 3C 3C 24 18 ucl,viewers/rockbox_flash,2A 7F 41 41 7F 2A rvf,viewers/video,5D 7F 5D 7F 5D 7F mp3,viewers/vbrfix,10 08 58 38 04 02 m3u,viewers/search,00 00 00 00 00 00 txt,viewers/sort, 00 00 00 00 00 00 r5 - 30 Jan 2008 - 23:20:34 - MarcGuay
Revision r5 - 30 Jan 2008 - 23:20 - MarcGuayRevision r4 - 25 Feb 2007 - 21:12 - TimoHorstschaefer Copyright © by the contributing authors.
|