[mythtv] [mythtv-commits] mythtv commit: r25714 by cpinkham

David Blain MythTv at TheBlains.net
Tue Aug 17 14:16:45 UTC 2010


> -----Original Message-----
> From: mythtv-commits-bounces at mythtv.org [mailto:mythtv-commits-
> bounces at mythtv.org] On Behalf Of mythtv at cvs.mythtv.org
> Sent: Tuesday, August 17, 2010 3:49 AM
> To: mythtv-commits at mythtv.org
> Subject: [mythtv-commits] mythtv commit: r25714 by cpinkham
> 
>       Author: cpinkham
>         Date: 2010-08-17 07:48:53 +0000 (Tue, 17 Aug 2010) New Revision:
25714
>    Changeset: http://svn.mythtv.org/trac/changeset/25714
> 
> Modified:
> 
>    trunk/mythtv/programs/mythbackend/mythxml.cpp
>    trunk/mythtv/programs/mythbackend/mythxml.h
> 
> Log:
> 
> Add the ability to stream any file from any Storage Group without having
to
> know the chanid/starttime or video id or ....  Knowing the filename and
> Storage Group name is enough.  In most case, the Storage Group name can
> be just left at 'Default' because the normal built-in Storage Group
fallback
> code will search other Storage Groups if the file if it does not exist in
the
> given Storage Group.  Methods are also added to get a list of files and
list of
> links to files in the Storage Group.
> 
> Usage:
> 
> http://BACKENDIP:6544/Myth/GetFile?StorageGroup=iPodVideos&FileNam
> e=Dirty_Jobs_Casino_Food_Recycler.mp4
> http://BACKENDIP:6544/Myth/GetFileList?StorageGroup=iPodVideos
> http://BACKENDIP:6544/Myth/GetFileLinks?StorageGroup=iPodVideos
> 
> This is only one example use case, but with the above GetFileLinks and
> GetFile URLs, on my iPod Touch, I can browse my Storage Group containing
> iPod encoded videos and watch any video by 'clicking'
> on the GetFile link for that video.
> 

The only issue I see with this commit is that one of the methods returns
html instead of xml.  This breaks what the intention of the design behind
MythXml's functionality and also hinders future reuse of the methods.

David.



More information about the mythtv-dev mailing list