[mythtv] [Patch] CD Monitoring subsystem

J Donavan Stanley jdonavan at gorpe.com
Thu Nov 13 17:45:24 EST 2003


I'm in the process now of plugging it in to the frontend, in mount only
mode. That will give us the equivalent of running "autorun -mountonly".
Once that's in place I need to look at how to elegantly perform the
switches to the various plugins that need activated when media is
inserted.


On Thu, 2003-11-13 at 05:02, Tako Schotanus wrote:
> Perfect! I've wanted this option for a long time already! :-)
> 
> -Tako
> 
> J Donavan Stanley wrote:
> > This patch modifies libmyth to add support for monitoring CDROM
> > devices.  It's based on the autorun application used by KDE. This is the
> > first of at least two patches, and lays the ground work for the
> > additional patches.  I plan on adding support for plugins to register
> > themselves for CD insert notification from the main application.  That
> > way when you stick in an audio CD Myth can switch to MythCD if it's
> > installed, likewise MythDVD.  Eventually I'd like to extend it out so
> > that when you pop in a data disk you get prompted with a menu that looks
> > something like this:
> > 
> > 	You've just inserted a data disk what would you like to do?
> > 	------------------------------------------------------------
> > 	Scan this disk for audio files to add to my collection.
> > 	Scan this disk for video files to add to my collection.
> > 	Scan this disk for images files to add to my collection.
> > 
> > I'd also like to look into some sort of autoplay feature where the
> > system could look for a specific file on the CD and take action based on
> > it.  For example, load a playlist and start playing music from the CD.
> > 	
> > 
> > 
> > Within the two new source files are three new classes:
> > 
> > Cdrom - An instance of a particular CDROM/DVD device.
> > CDMonitor - The object that knows how to poll the various CD devices and
> > keep track of their changes.
> > CDSubscriber - A base class for objects that wish to receive CDROM
> > notifications.
> > 
> > The code contains a couple small enhancements / bug fixes over the
> > autorun code it's based on such as properly sending out mount
> > notifications for data disks and the ability to detect DVD disks for
> > what they are instead of just calling them data disks.
> > 
> > J. Donavan Stanley
> >   
> > 
> > ____________________________________________________________________
> > _______________________________________________
> > mythtv-dev mailing list
> > mythtv-dev at mythtv.org
> > http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
> >   
> 
> 
> ______________________________________________________________________
> 
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev



More information about the mythtv-dev mailing list