LinuxMCE Forums
May 20, 2013, 08:56:40 am GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: 1 [2]
  Print  
Author Topic: Adding New Media Scenario  (Read 2094 times)
klanmce
Veteran
***
Posts: 133


View Profile
« Reply #15 on: April 02, 2011, 09:57:13 pm »

Did not finish the last post, son playing with keyboard.

The show file list, through what do I access this, a Template, etc?

Thanks
Logged
tschak909
LinuxMCE God
****
Posts: 5101

DOES work for LinuxMCE.


View Profile
« Reply #16 on: April 02, 2011, 10:40:27 pm »

hm? I do not follow.

-Thom
Logged
klanmce
Veteran
***
Posts: 133


View Profile
« Reply #17 on: April 03, 2011, 12:58:16 am »

Quote
(1) expose this parameter as a command parameter by adding a new command parameter to show file list

What template does this correspond to, so I can add the command, seem to have passed it?

My last two post were supposed to be one.
Logged
tschak909
LinuxMCE God
****
Posts: 5101

DOES work for LinuxMCE.


View Profile
« Reply #18 on: April 03, 2011, 01:02:55 am »

it needs to be added to the COMMAND, not the device template.. you can get to it by going into template #8 (the Orbiter template), and selecting the appropriate command group, and editing the command.. look under Orbiter Commands.

-Thom
Logged
klanmce
Veteran
***
Posts: 133


View Profile
« Reply #19 on: May 09, 2011, 02:17:29 am »

I have found the show file list and add a COMMAND to the parameter, there was a pk_Command, but simple added a COMMAND of type string.

Silly question

Is it safe to run DCEGen on my "production" system or I should I set up a test following
Quote

Thanks
Logged
posde
Administrator
LinuxMCE God
*****
Posts: 2621


Wastes Life On LinuxMCE Since 2007


View Profile WWW
« Reply #20 on: May 09, 2011, 06:44:08 am »

DCEGen is harmless, as it only creates source code.
Logged

klanmce
Veteran
***
Posts: 133


View Profile
« Reply #21 on: May 09, 2011, 02:57:13 pm »

Quick question

When you choose merge on running DCEGen -d 8, I am seeing the Orbiter_temp folder created but no time change in the Orbiter folder, is it that this is where my changes go, and not in the Orbiter original folder?
Logged
tschak909
LinuxMCE God
****
Posts: 5101

DOES work for LinuxMCE.


View Profile
« Reply #22 on: May 09, 2011, 03:00:27 pm »

If you choose M to merge, then your changes go into the src/Orbiter folder and are merged in with the existing code.

-Thom
Logged
klanmce
Veteran
***
Posts: 133


View Profile
« Reply #23 on: May 09, 2011, 03:31:27 pm »

I could assume then, that the m is case sensitive, as such, it did not merge in the original directory, and created it in the temp directory, based on the fact that the time-stamp for the original directory did not change.

Or

This is an invalid assumption, in that the time-stamp do not change and the m is not case sensitive.

Logged
klanmce
Veteran
***
Posts: 133


View Profile
« Reply #24 on: July 28, 2011, 12:34:00 am »

Got a bit occupied, re-attempting

I got the function shown below

Quote
void Orbiter::CMD_Show_File_List(int iPK_MediaType,string sCommand,string &sCMD_Result,Message *pMessage)
//<-dceag-c401-e->
{
   cout << "Need to implement command #401 - Show File List" << endl;
   cout << "Parm #29 - PK_MediaType=" << iPK_MediaType << endl;
   cout << "Parm #236 - Command=" << sCommand << endl;
}

tschak909, I am not going to lie to you, I am a little lost in where I am setting the parameter to check for the specific directory, step 3 below, as I was looking for similar actions in the Orbiter.cpp and not finding any; possible looking in the wrong location.

Quote
(1) expose this parameter as a command parameter by adding a new command parameter to show file list
(2) run DCEGen on the Orbiter device template, to get the new Show File List method inside Orbiter
(3) modify the method to check if this parameter is set, if so, set the appropriate sParams inside.

Thanks in advance
Logged
tschak909
LinuxMCE God
****
Posts: 5101

DOES work for LinuxMCE.


View Profile
« Reply #25 on: July 28, 2011, 02:11:04 am »

From the function prototype that you got, you didn't modify the command to add the additional command parameter.

You should get to the Show File List command either by going into the Orbiter device template (since it implements it), OR by using the Advanced > DCE > Commands menu in the web admin.

Seriously, this stuff is all there, if you just look around.

-Thom
Logged
klanmce
Veteran
***
Posts: 133


View Profile
« Reply #26 on: August 29, 2011, 04:22:19 pm »

I found the Show File List command, edited the PK_MediaType (reflect the entry made for this purpose) and place MusicVideo in the command and save, also did a reload and regen of orbitors.

I think I dropped the ball somewhere, as it did not generate the MusicVideo scenario for me. Also if I go to create the scenario manually, I am not seeing the option to specify my new command(MusicVideo), or the Show File List.

Thanks
Logged
Pages: 1 [2]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!