[mythtv] [Patch] CD Monitoring subsystem
Tako Schotanus
quintesse at palacio-cristal.com
Thu Nov 13 05:02:45 EST 2003
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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20031113/abf354c5/attachment.html
More information about the mythtv-dev
mailing list