Author
Topic: SiriusXM (Read 7409 times)

You can do all the dev work against an existing core. I do this often.

As for the plugin, the plugin's only job is to:

(1) create the data grids(2) create the media stream so that the system knows it's there, and give it a specific type(3) make sure that when it's passed a media stream, it's the right one(4) find matching player devices in a given entertainment area that can play the stream(5) send the play command to the appropriate players.

Have managed to dig into this a bit and am going to just rewrite the Shoutcast plugin for now. Since the XML reader on my system isn't working properly I am just going to define the list of genres and stations as an array of Strings and Stations and load them into the vectors on startup instead of trying to pull them from sirius.com.

I am going to try to get the grid working first before I go logging in and grabbing the stationURL which takes several different calls to sirius.com and manipulation of the response.

My question is concerning the Picture used.

In the wiki it says to use Row_Picture *AddPicture(string sFile);

Does this always add a picture or will it check to see if it is already registered and return that? i don't want to add the same picture everytime the plugin is loaded.

Certainly not trying to bust your balls- both because you're still working on this and because you are much more capable of reading the tables in LMCE. That said, not sure why you are focusing on a portion of the code that seems, to me, to be already done with Pyxis. Everything from the initial setup, to username/handshake, to station identification retrieval to playing the stream is already coded. I have been trying to figure out how to get LMCE to accept the stream.

Back to the point, why not use the existing (and future) code from the Pyxis project who have a following dedicated to following any changes made by Sirius and are quickly able to release new versions as required? I have looked quite a bit into the Pyxis code to try and understand how it works. I have duct taped a simple script on my desktop just to see the effects of code changes in Pyxis. Certainly nothing that can be folded into LMCE, but I need to start somewhere....I can't promise I will be of any help, but will continue to try to make a contribution...

/My apologies for anyone who read my previous comments- I've decided they were not beneficial to the forums or anyone and should be removed. Would rather keep on topic and get Sirius integrated...

All pyxis does is make calls to the sirius website and pass the url to mplayer. I have mimic that much in java. The real benefit will come from taking that knowledge and being able to choose the stations from a gui rather than having to go to a terminal and typing in the station you want to listen too. Much more efficient and user friendly. The problem for me is it has been 7-8 years since I have coded in c/c++ so I am a little rusty, probably even longer since I have done c++ in unix/linux.

Thom once I copy that stuff will i be able to just compile the Shoutcast plugin only?