View Full Version : How to show jpg in fullscreen mode
ReflexNPG
2005-07-26, 16:54
hi!
anybody here who could help me out with some code fragment which shows a jpg file from harddisk? if possible with all features from picture viewer (zoom,rotate).
thanks in advance!
reflex
solexalex
2005-07-26, 22:38
hi
i never tryed it but you can try this new feature ; httpapi :
http://www.xboxmediaplayer.de/cgi-bin....t=14404 (http://www.xboxmediaplayer.de/cgi-bin/forums/ikonboard.pl?act=st;f=21;t=14404)
not sure how it should work, but you can have a look in it. it seems to have some functions to use the picture viewer
as solexalex said there is some features of httpapi that can help you. look at the doc file of httpapi.
http://prdownloads.sourceforge.net/xbmc/apidoc.doc?use_mirror=nchc
here are some i found in that doc :
showpicture(filename)
o displays the image filename.
zoom(magnification)
o zooms the currently displayed image to a level specified by magnifaction. a magnification of 0 is the standard zoom level of none. magnification can take values up to 8.
rotate
o rotates the currently displayed image by 90 degree clockwise.
the httpapi was recently exposed to python,
so you need a fresh cvs build to use it.
not sure if these httpapi is something you could use since they only makes you controll the existing pictureviewer of xbmc.
ReflexNPG
2005-07-27, 12:29
many thanks, i will try it out!
c ya
reflex
ps: i need it because i want to implement a playlist where you can combine (at least) pictures and videos (and the xbmc developers refuse to make an universal playlist). i make short clips in holidays and it breaks the experience when you have to watch the pictures first and then switch to the clips. if somebody is interested - and it works - i can publish it here...
some of the resons i made playlistwalker.
http://home.no.net/thor918/xbmc/
anyway when making this you could relly benifit by using http api getdirectory, as this have access to smb share, and probably other directory listnings not supported by python!
ReflexNPG
2005-07-27, 18:49
nice thing your playlistwalker!
the problem is, if the files are changing often, its complicated to run it first..
i hope i can manage it in my script, to navigate to a directory and simply play all files in order...