Author Topic: Playing verious media types directly from cd/dvd  (Read 1812 times)

Itsik

  • Guru
  • ****
  • Posts: 190
    • View Profile
Playing verious media types directly from cd/dvd
« on: December 31, 2008, 11:09:50 pm »
Currently, when you load up a cd/dvd which is not a media disc (movie/audio cd), there's no way to playback the media on it directly. You need t copy the stuff on to your media drive to be able to play it.
Is there a way to make the sytem recognise a media file (avi/mp3 or what ever) as such and play it directly from the disc?

Thnx
Itsik

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Playing verious media types directly from cd/dvd
« Reply #1 on: December 31, 2008, 11:19:18 pm »
currently,

Some of the bits to do this are already here. The media plugin's MH handlers can take a path to a mounted disk and play stuff on them.

The problem, is a data grid one. and one of volume management.

(1) making changes to Disk_Drive_Functions, to detect the mixed video files, look around line 475 of the main source file in that folder to see what I mean.
(2) making changes to the media plugin to fill in the data grids for files detected
(3) making changes to the media management system, to make dummy links to the individual disks, (this will cause a LOT of symlinked directories to appear), allotments will have to be made for disks with the same volume label to prevent collision problems, but basically Disk_Drive_Functions needs to make symlinks etc to the directories on the disk, so that UpdateMedia can deal with them. so we will have links like /home/public/data/videos/MY_VIDEOS_DISC .. which will point to the optical drive, and will be mounted as /mnt/optical/44/VOLUME_LABEL ... Changes will need to be made in the automounter scripts to handle this functionality across all media directors.

This approach will provide the needed functionality to make this happen and compatible with the existing media services. If this is done right, (2) might not be needed.

-Thom