PDA

View Full Version : Displaying slot number


diy8888
05-22-2006, 11:46 AM
Hi,

I am using DVDProfiler as repository. Is there a variable for slot number?

ellisr63
05-22-2006, 11:52 AM
Not as far as i know... are you using the mediamanager driver?

diy8888
05-22-2006, 11:53 AM
Nope. I am using DVDProfiler Driver.

Dean Roddey
05-22-2006, 12:45 PM
Currently, you can only get the slot number on an interface by getting it straight from the changer driver. It's not currently one of the things you can display via a Media Text widget, and the changer manger driver doesn't provide it as a field.

BTW, when he asked if you are using the media changer driver, the point was that if you are using Sony Changers, then normally you want ot use the changer manger driver to sit in front of those changers. The changer driver itself is not a media renderer driver, it's just a straight control driver for the changer. The changer manager driver is a renderer driver that sits in front of the changer(s) and provides metadata for what is playing. You control the changer through the changer manager driver, so it always knows what changer is the active one and what's playing in that changer.

diy8888
05-22-2006, 12:56 PM
I see.

Dean Roddey
06-09-2006, 01:28 PM
OK, I'm a moron. The changer manger already has a 'CurrentDisc' Field, which contains the last slot that was selected. So what you want to do is already there. ActiveChanger holds moniker of the last selected changer.

diy8888
01-01-2007, 06:10 AM
Dean,

Can I display slot# field in 2.0? I am using DVDP repo.

thanks.

Dean Roddey
01-01-2007, 10:07 AM
If you mean during playback, then the CurrentDisc field of the changer manager will hold the current slot number.

diy8888
01-01-2007, 03:39 PM
I do not use Sony CX-7777ES device driver. I DVD Profiler browsing driver. Can I still display slot#?

Dean Roddey
01-01-2007, 04:06 PM
Well, kind of. You can get it from the location info that is available when you make a selection on the cover art browser. If you did something like:

LocalVars:SetVariable(LVar:LocInfo, %(MediaRTV:LocInfo));
LocalVars:Find(%(LVar:LocInfo), LVar:DividerOfs, ".", True);
LocalVars:SplitAt(%(LVar:LocInfo), GVar:SlotNum, %(LVar:DividerOfs));

That would leave the slot number in GVar:SlotNum. You could then push that into some static text widget using an OnLoad command.

diy8888
01-01-2007, 04:33 PM
Dean,

I did not see "Find" unload LocalVar.

Dean Roddey
01-01-2007, 04:48 PM
Find() is a 'conditional' command, meaning that it just exists to return a true/false status. So it's only available under the If or If/Else buttons, not the Cmd button. Sorry, I should have pointed that out. So you would probably want to use the If/Else button and do something like this:


If (LocalVars:Find(....))
... do the split here ...
Else
... loc info isn't right, so set GVar:SlotNum to 0 or something
EndIf;

diy8888
01-02-2007, 05:21 AM
This is what I got when I click on the cover.

Token expansion failed during command processing

Runtime value MediaRTV:Locinfo was not available for replacement

diy8888
01-02-2007, 06:32 AM
updated:

I got a little further. RTV:LocInfo is case sensitive. Now I got this error.

"If GlobalVars::Find(%(GVar:LocInfo), GVar:LocDevideOfs, ".", True) "

In detail:

Variable Changer1.190 was not found

thanks.

jpants
01-02-2007, 07:58 AM
Try it without the token replacement ie just

GVar:LocInfo instead of the %()

John

jpants
01-02-2007, 08:00 AM
This is what I got when I click on the cover.

Token expansion failed during command processing

Runtime value MediaRTV:Locinfo was not available for replacement

When using a token in your actions you can right click on the box and it will bring up a list of options you can choose from so you don't have to worry about spelling.

John

diy8888
01-02-2007, 09:26 AM
I am all set. I do not need to parse RTV:LocInfo since I need to know what Changer anyway. So I set it to GVar:Slotnum, then on Detail Template, I set text to Slot Static Text field.

So it displays Changer1.xxx where xxx is slot number.

thanks.