Menu

#7 Add support for severel MEDIAFOLDERS in config.ini

open
5
2004-03-21
2004-03-21
Anonymous
No

When having media on several locations in win32 it's a
must to be able to support several MEDIAFOLDER entries
in config.ini. I've added some code for it in the
discussion forum, the code extends the movie module.
The code could be applicable to photo, music and movie
folder.

Attached is my main.php from the movie folder.

Thanks,

Nik

Discussion

  • Nobody/Anonymous

    main.php from movie module

     
  • Doug

    Doug - 2004-07-06

    Logged In: YES
    user_id=1070721

    I put Nik's code into the version I'm working on and have also
    added windows shortcuts handling. This means that you can
    have directories that have shortcuts in them, and OSC will
    handle them as if they were the file the shortcut is pointing
    to:
    - if it's a video file, it shows the video filename and a video
    icon, even if the video file is on a remote box (e.g. windows
    share)
    - if the shortcut points to a directory, it shows the directory
    icon
    - if the shortcut points to an invalid file, (non-existent or not
    a correct media type) it doen't appear.

    The only problem right now is that I haven't thought about
    how this all gets handled on unix boxes, so I'm pretty sure it
    will break if run on unix. Will do more cleaning up to try to
    mimimise problems. The other problem is that I've broken
    quicklink ability (playing music by pressing 1-9 just after
    powerup). Again, gotta get that back in and working.

    Doug.

     

Log in to post a comment.