Show Posts
|
|
Pages: 1 ... 3 4 [5] 6 7 ... 26
|
|
69
|
LinuxMCE / Developers / Re: Scenarios and Plug-in relationships
|
on: February 04, 2012, 11:22:11 pm
|
|
Ok so I went back to bastardizing the shoutcast plugin for the time being like you suggest. Getting the grid populated. When I hit play I get the message cannot play this media. Perhaps there is not a valid device in this entertainment area.
It is not even getting to my CreateMediaDevice code. Am I missing something? By the way I am just passing a number as my url, I will use this when I make the call to sirius to get the url needed to play. Do I need to add something else onto this and then parse it?
FileBrowserInfo *pFileBrowserInfo = new FileBrowserInfo(station.name2,"!E," + sToken + "," + StringUtils::itos(station.id),4,StringUtils::SQLDateTime("2008-02-8"));
|
|
|
|
|
70
|
LinuxMCE / Developers / Re: Scenarios and Plug-in relationships
|
on: February 04, 2012, 03:08:51 am
|
|
Thom,
I understand the MediaSourcePlugin, that is how I handled thing when I was just bastardizing the shoutcast plugin. I would like to make mine filebased as well, I would create x number of files station.xm or station.sir, in these files would be the stationid, image, genre, description etc. I could right a script to populate the pluto_media db with needed info so it shows up in the grid. When play is called on this file I would then use the file to get the streamURL. This way when I choose sat radio under media, all the stations show up, and I can narrow it down by selecting a genre. This way it works just like the Audio. If you can do it with the games plugin, then the only difference I see is how the plugins work and then how to populate the data in the pluto_media db.
Kevin
|
|
|
|
|
71
|
LinuxMCE / Developers / Re: Scenarios and Plug-in relationships
|
on: February 04, 2012, 02:22:20 am
|
|
Thom, I was trying to follow along with your game plugin / game scenario because this is how I would like to model my plugin. How does the game scenario know to populate the datagrid with just the games? I am assuming If I create a scenario called 'Sat Radio' and make the command 'Show File List' and PK_Media_Type = 14 for sat radio. That will get my scenario built. Then I go and create a DCE device Sat_Radio_Plugin and do all the sqlcpp stuff to get the stubs created. I then go and change that to do the create, start, stop media etc. Now comes the fun part. I want to load the stations into the database instead of populating using the PopulateGrid, that way I am assuming all the stations will show up and by adding attributes I can only show the genres just like audio/video. So the question becomes whats the best way to add the stations to the db? I can create dummy files that contain the name/genre/img. If I do this I assume once the entries are in pluto_media, the media_plugin will handle the grid population. Am I correct? If this is the case then when I hit play how does the the DCE router know that the play button should route this command to my new plug in? Am I on the right track?
Thx, Kevin
|
|
|
|
|
72
|
LinuxMCE / Developers / Scenarios and Plug-in relationships
|
on: February 03, 2012, 07:39:53 pm
|
|
It is my understanding that the scenarios define what is seen on an orbiter. For example if you have a radio scenario defined for a room then the radio button will show up under the media. How does that scenario tie to a plugin? Is it by PK_MediaType? How does a plugin know what it is supposed to be handling?
|
|
|
|
|
73
|
LinuxMCE / Developers / Re: Where is the code for Internet Radio?
|
on: February 02, 2012, 06:08:45 pm
|
|
Early this year I had changed the code for Shoutcast plugin to give me a grid of stations with art work. I tried to use that same code now, it builds but when I go to audio and deselect everything I no longer get a button for shoutcast. What gives.
|
|
|
|
|