Page 1 of 4 123 ... LastLast
Results 1 to 10 of 32

Thread: MediaBridge, DVDI & DVDprofiler ???

  1. #1
    Join Date
    Jan 2008
    Location
    Near some trees in Essex, UK
    Posts
    370

    Default MediaBridge, DVDI & DVDprofiler ???

    Howdo,

    Does mediabridge pass all fields from an exported dvdprofiler xml?
    Particularly the 'notes' field???

    I've ripped apart the mce ccf & got the bits out relating to dvd's - all works ok in the test ccf but it'd sure be handy to have {MP.DVDI.Disc.Notes} passed on aswell

    i'm not sure if this correct or available as an option....

  2. #2
    Join Date
    Jan 2008
    Location
    Near some trees in Essex, UK
    Posts
    370

    Default The Master Plan :)

    Ok, this is the plan

    if mediabridge can forward the {MP.DVDI.Disc.Notes} field, hopefully i can get the following can happen with a GML.....

    1. See DVD collection in NR -WORKS OK
    2. Pick & see stuff of {MP.DVDI.Name} (i.e.cover art , info on cast, whatever...) -WORKS OK
    3. The 'notes' of above is updated & forwarded to Girder (the long file location - in my case "MediaCentre/VideoG/ForExample"Avengers".iso - is too long for {MP.DVDI.Disc.Location} i tried sticking the path in there!)
    4. Hit DVDplay button.
    4a. DVDplay button sends a girder variable with the {MP.DVDI.Disc.Notes} field
    5. Girder accepts variable and....
    6. Loads {MP.DVDI.Disc.Notes} inbetween/wherever Daemon tools needs it.
    6. Zoomplayer plays it cos we autoplayed drive n to play on zoomplayer.

    All i need is the 'notes' field!!!!!

    Rob/Ron is this possible without too much of a rewrite?
    surely if all the other fields are going to mb this should be doable????

    Much obliged in anticipation, Jim

  3. #3
    Join Date
    Jan 2008
    Location
    Near some trees in Essex, UK
    Posts
    370

    Default Changed direction....

    scrap that idea, i'm now using the following...

    in dvdprofiler the fields for disc location & disc slot ARE passed over from the xml, so i'm using these now...

    disc location can have upto 30characters (nr variable MP.DVDI.Disc.Location)
    disc slot can have upto 10characters (nr variable MP.DVDI.Disc.Slot)

    MP.DVDI.Disc.Slot is where i put the DVD folder path (i.e "Video3 (i)" - all of my dvds are on drives "Video1 (g)", "Video2 (h)" or Video3 (i)" just short enough to fit in the field, in a folder called "ISO" )

    MP.DVDI.Disc.Slot is where i put the DVD name (i.e. "2 FAST 2 FURIOUS")


    I have a nr button called 'Load' with an NRbasic action Set variable to value...
    Code:
    MP.DVDI.Disc.String,//{MP.HostName}/{MP.DVDI.Disc.Slot}/ISO/{MP.DVDI.Disc.Location}.ISO
    This makes a variable named MP.DVDI.Disc.String with in my case the string of "//mediacentre/video2 (h)/ISO/2 FAST 2 FURIOUS.ISO"

    Then i nr system LUA i have code to update girder
    Code:
    function OnCCFLoad()
    NetRemote.RegisterVariableWatch('MP.DVDI.Disc.String', NetRemote.GetPlugin('Girder'))
    NetRemote.RegisterVariableWatch('MP.DVDI.Disc.Location', NetRemote.GetPlugin('Girder'))
    NetRemote.RegisterVariableWatch('MP.DVDI.Disc.Slot', NetRemote.GetPlugin('Girder'))
    NetRemote.RegisterVariableWatch('MP.HostName', NetRemote.GetPlugin('Girder'))
    end
    Girder see's these and sticks them into a table for use in a mo'

  4. #4
    Join Date
    Jan 2008
    Location
    Near some trees in Essex, UK
    Posts
    370

    Default Girder End...

    Girder receives the above variables & puts the values into a table called DVD.

    Code:
    ----creates DVD table------
    DVD = {String = 0, Location = 0, Slot = 0, Host = 0, Daemon = 0, DaemonCMD = 0, Compiled = 0}
    
    local Daemon = tostring ("c:/program files/d-Tools/daemon.exe")
    DVD.Daemon = string.format ('%q', Daemon)
    print (DVD.Daemon)
    DVD.DaemonCMD = tostring (" -mount 0,")
    the variables are put in the table as folows....
    DVD.String = //mediacentre/video2 (h)/ISO/2 FAST 2 FURIOUS.ISO
    DVD.Location = DVD.Location
    DVD.Slot = video2 (h)
    DVD.Host = 192.168.1.101
    DVD.Daemon = "c:/program files/d-Tools/daemon.exe"
    DVD.DaemonCMD = -mount 0,

    when i hit nr button "Load" it also sends a girder action that makes girder compile the above into DVD.Compiled...
    Code:
    DVD.Compiled = string.format ('%s%s%q',DVD.Daemon,DVD.DaemonCMD,DVD.String)
    print (DVD.Compiled)
    the value is...
    Code:
    "c:/program files/d-Tools/daemon.exe" -mount 0,"//mediacentre/video2 (h)/ISO/2 FAST 2 FURIOUS.ISO"
    Putting this in the command prompt causes daemon to mount the DVD image then then zoomplayer plays it due to autorun on this drive...

  5. #5
    Join Date
    Jan 2008
    Location
    Near some trees in Essex, UK
    Posts
    370

    Default

    the question is, can girder run code direct into the command prompt?

    i tried this....
    Code:
    os.execute(DVD.Compiled)
    no joy. is there another way......?

    Cheers, Jim

  6. #6
    Join Date
    May 2004
    Location
    Cardigan, UK
    Posts
    9,278

    Default

    You may have more luck with win.ShellExecuteEx - see the help file.
    --Rob

  7. #7
    Join Date
    Jan 2008
    Location
    Near some trees in Essex, UK
    Posts
    370

    Default

    As ever, Cheers Rob.

    Got some tidying up to do, i'll post this later if anyone wants it.

  8. #8
    Join Date
    Jan 2008
    Location
    Near some trees in Essex, UK
    Posts
    370

    Default

    on the load button i have NRbasic action - set variable to value which does this....

    (it runs once for a "now loaded frame" & works ok)
    Code:
    DVD.Loaded.Name,{MP.DVDI.Disc.Location}
    Can i do the same/similar for the MP.DVDI.AlbumCover? its value is <IMAGE VARIABLE> to display it on DVD.Loaded.Image..?

    i tried it with set variable to value but this just brings up name, not the image?

    same with an execute lua on release
    Code:
    NetRemote.SetVariable('DVD.Loaded.Image','MP.DVDI.AlbumCover')
    Is this possible???

  9. #9
    Join Date
    May 2004
    Location
    Cardigan, UK
    Posts
    9,278

    Default

    This is within NR?

    I think you may be looking for SetImageVariable() which I think takes a filename as the second parameter.
    --Rob

  10. #10
    Join Date
    Jan 2008
    Location
    Near some trees in Essex, UK
    Posts
    370

    Default

    yep, in nr.

    i don't actually have the filename? its a value of a variable
    variable is MP.DVDI.AlbumCover
    value is <IMAGE VARIABLE>

    ???
    Last edited by VicVonDoom; October 12th, 2008 at 11:54 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •