INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Library Server translation for NR  (Read 695 times)

JONCAT

  • Guest
Library Server translation for NR
« on: April 07, 2006, 09:41:18 am »

Is something getting lost in translation here; tryng to get a plugin to server stream to a NetRemote plugin via Library Server (49991):

Something is getting lost in the translation and MC is not getting commands.

I think the MC file location string may have changed whereas this lua (.ini) has the ^20:

m01p://192.168.1.7:49991/L:\Audio Archive\Music Archive\Ray Charles\Pure Genius_ The Complete Atlantic Recordings (1952-1959) CD7\Ray Charles - Pure Genius_ The Complete Atlantic Recordings (1952-1959) CD7 - 13 - _Losing Hand_ & Dialog #4 (w_ Reverb).ape

The Library Server filename structure is just as it appears in the tag field?

thanks
JC

local newtrack =""

mediaserver = "XX.XXX.XX.XXX:49991"

function OnCCFLoad()
end;

function OnVariableChange(varname,varvalue)

  if (varname=="MP.Filename") then

    -- original path :
    -- direct connection : C:\mp3\...
    -- via media server  : m01p://XX.XXX.XX.XXX:49991/C:\mp3\....

    --desired path : "http://XX.XXX.XX.XXXX:49991/C:\mp3\...

    local filepath = varvalue;

      -- if media server client is used, get rid of prefix first
    filepath = string.gsub(filepath, "m01p://"..mediaserver.."/", "")

      -- add media server prefix to local drive letter on server

    filepath = "http://"..mediaserver.."/"..filepath

      -- replace spaces

    filepath = string.gsub(filepath, " ", "^20") I changed the ^20 to (space)_ because that was what I was seeing in the tag field but it didn't work. No commans are even making it to the Library Server so this may not be the real problem, not sure.

    newtrack=filepath; -- MC changes track name about 2 sec before track ends, don't stop playing yet !!!

  elseif
Logged
Pages: [1]   Go Up