[mythtv-commits] mythtv commit: r12396 - in trunk/mythtv by dblain
mythtv at cvs.mythtv.org
mythtv at cvs.mythtv.org
Thu Jan 4 07:00:37 UTC 2007
Author: dblain
Date: 2007-01-04 07:00:36 +0000 (Thu, 04 Jan 2007)
New Revision: 12396
Changeset: http://cvs.mythtv.org/trac/changeset/12396
Modified:
trunk/mythtv/contrib/MythXMLTest/MythXMLTest.html
trunk/mythtv/libs/libmythupnp/httprequest.cpp
trunk/mythtv/libs/libmythupnp/httprequest.h
trunk/mythtv/programs/mythbackend/httpstatus.cpp
trunk/mythtv/programs/mythbackend/httpstatus.h
trunk/mythtv/programs/mythbackend/mainserver.cpp
Log:
Added ability to request a Preview Image of any size and time within the file using the XML method getPreviewImage.
The new parameters are:
Width
Height
SecsIn
They are all optional. If only the Width or Height is supplied, the other value will be calculated based on the image aspect ratio.
All images are cached with the name of:
<image name & ext>.<width>x<height>x<secsIn>.png
The delete logic has been modified to remove all cached images once the video is removed.
Sample request:
http://mythbackend:6544/getPreviewImage?ChanId=1003&StartTime=2006-12-30T22:30&Width=720&Height=480&SecsIn=120
The test html page in contrib/MythXMLTest has been updated with the new parameters.
More information about the mythtv-commits
mailing list