LinuxMCE Forums
May 25, 2013, 04:28:38 pm 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 2096 times)
klanmce
Veteran
***
Posts: 133


View Profile
« on: March 31, 2011, 01:50:42 pm »

I am trying to add a new media scenario similar to the auto generated Video scenario to point to a directory - this is to separate my music videos. When I try adding through the web interface, I am not seeing the option to specify the file options that are shown for the Video scenario, what I see is the device, for eg. the xine player.

What are my options to accomplish this, right now my head space is manually adding to the DB, not sure how wise that is?

Thanks in advance.
Logged
cafedumonde
Regular Poster
**
Posts: 26


View Profile
« Reply #1 on: March 31, 2011, 03:37:46 pm »


This is a cool idea. I'd like to do this as well. Someone please suggest how this might be done..
Logged
posde
Administrator
LinuxMCE God
*****
Posts: 2622


Wastes Life On LinuxMCE Since 2007


View Profile WWW
« Reply #2 on: March 31, 2011, 03:50:51 pm »

klanmce,

do you want to play a single directory, or do you want the media list to contain only contents from a specific directory?
Logged

klanmce
Veteran
***
Posts: 133


View Profile
« Reply #3 on: March 31, 2011, 06:09:59 pm »

I want to list all the contents in that specific directory.
Logged
golgoj4
wants to work for LinuxMCE
**
Posts: 823


hrumpf!


View Profile WWW
« Reply #4 on: March 31, 2011, 08:02:00 pm »

why not just give them the media subtype of music videos and use the attributes browser?
Logged

Those people who tell you not to take chances, they are all missing what life's all about.

Wiki Hardware Page http://wiki.linuxmce.org/index.php/User:Langstonius
klanmce
Veteran
***
Posts: 133


View Profile
« Reply #5 on: March 31, 2011, 10:38:16 pm »

I am presently doing that, but wanted to refine the process a bit more, is it, that this is not possible?
Logged
posde
Administrator
LinuxMCE God
*****
Posts: 2622


Wastes Life On LinuxMCE Since 2007


View Profile WWW
« Reply #6 on: March 31, 2011, 10:52:25 pm »

at the moment I do not see a way of achieving this the way you want to.
« Last Edit: April 01, 2011, 07:33:24 am by posde » Logged

klanmce
Veteran
***
Posts: 133


View Profile
« Reply #7 on: March 31, 2011, 11:27:55 pm »

Cool thanks.

Which tables hold the data that influence the scenarios shown both auto and created?
Logged
posde
Administrator
LinuxMCE God
*****
Posts: 2622


Wastes Life On LinuxMCE Since 2007


View Profile WWW
« Reply #8 on: April 01, 2011, 07:34:16 am »

klanmce,

best way to find out the relationship is the web admin. Look at the code of the scenario views and you should be able to find what you need.
Logged

klanmce
Veteran
***
Posts: 133


View Profile
« Reply #9 on: April 02, 2011, 12:05:40 am »

Ok, I tried looking at the database and found the following:

CommandGroup
CommandGroup_Command
Command
Template

The table CommandGroup has the scenarios and the room it belong to, my question thus far, is which table, if any, holds the actual directory that this  34 | Media Wiz - File/Disc (found in template), points to.

No luck with the web admin search yet to find the relationships.
Logged
posde
Administrator
LinuxMCE God
*****
Posts: 2622


Wastes Life On LinuxMCE Since 2007


View Profile WWW
« Reply #10 on: April 02, 2011, 09:08:48 am »

klanmce,

there is no directory. That's why I said it is not possible atm.

You specify the media type. If you go into the scenarios in the webadmin, you will find all the media scenarios. Looking at it, you will find the Command it uses, as well as the parameter. At the moment, the parameter is a media type. LinuxMCE in its infinite wisdom goes out to the pluto_media database, and gets all media with that specific mediatype.
Logged

klanmce
Veteran
***
Posts: 133


View Profile
« Reply #11 on: April 02, 2011, 01:59:03 pm »

Got you.

I checked the MediaType table and realized that there is a subdirectory in that table which could possible relate to the directory to check for videos, see excerpt below, is this assumption correct or close?

Quote
mysql> select Define,Description,Subdirectory from MediaType where PK_MediaType = 5;
+-------------------+---------------------+--------------+
| Define            | Description         | Subdirectory |
+-------------------+---------------------+--------------+
| pluto_StoredVideo | LinuxMCE Video File | videos       |
+-------------------+---------------------+--------------+
1 row in set (0.00 sec)

 If I include in this table an entry to reflect my task, with the appropriate bits, would this break LMCE in any way?

Logged
tschak909
LinuxMCE God
****
Posts: 5101

DOES work for LinuxMCE.


View Profile
« Reply #12 on: April 02, 2011, 03:06:39 pm »

Right now, there's a whole chunk of code in Orbiter's screen handler, for the media file list...that deals with passing back grid parameters to the datagrid as to what is displayed. This parameter is not exposed at all...you would need to:

(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.

This would get you what you would need.
-Thom
Logged
posde
Administrator
LinuxMCE God
*****
Posts: 2622


Wastes Life On LinuxMCE Since 2007


View Profile WWW
« Reply #13 on: April 02, 2011, 06:26:21 pm »

I checked the MediaType table and realized that there is a subdirectory in that table which could possible relate to the directory to check for videos, see excerpt below, is this assumption correct or close?

I do not know what that specific directory is used for, but I DO know, that video files are located outside of that directory as well.
Quote
If I include in this table an entry to reflect my task, with the appropriate bits, would this break LMCE in any way?

I don't think so. Feel free to play with it. If something breaks, and you want to revert, go into web admin / sqlCVS / diff - select the MediaType table - and check for diffs. Select the entry you made, click revert, and everything is back to normal
Logged

klanmce
Veteran
***
Posts: 133


View Profile
« Reply #14 on: April 02, 2011, 09:55:40 pm »

Just as indicated, the "ratch" did not work.

TSCHAK909
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!