- July 29, 2007
- 25
- 0
- Home Country
-
United States of America
I've got a basic XMRadio plugin working. It's not ready for uploading yet since my account is hard coded into it and I haven't made a configuration screen yet so that you enter your account info and desired speed. Doesn't support favorites or categories yet. Just displays all the channels (logo,name,description, currently playing) using a custom paging method.
Questions:
1) Once I get the stream url from xm for the selected channel, I'm getting it to play by calling g_Player.PlayAudioStream(url, false); But this gives me a full player bar up top with back, fwd and a little progress bar with a time running. Is there a more optimized better way to play a radio stream? I found RTSPPlayer in the code but couldn't get it to work. Is there a more streamlimed version of the topbar (player bar?) available for those media types that all you can do is change volume and stop?
2) I initially tried using the facade control but found it limiting in the way I was trying to show all the channel data. So now I tried following the code in the radioguide and now create the rows dynamically. I can't actually get my radioguide to work so I don't know what it looks like when running. I tried placing two images at the bottom for navigating pages but I can't seem to determine how they're clicked in OnAction. If I make them buttons, then I can get the focusedID. But then how do I get a texture onto a button? Also each of my rows is made up of a GUIImage and some GUILabels. How can I wrap all them with some type of panel or group so that when the user highlights or clicks one, I can show it with a slightly shaded background or just something?
It would be nice if there was more documentation besides just for image, label and button in the plugin devlopers guide. For example, more documentation on playing various media types, the list controls, the group controls (actiongroup?), etc.
Questions:
1) Once I get the stream url from xm for the selected channel, I'm getting it to play by calling g_Player.PlayAudioStream(url, false); But this gives me a full player bar up top with back, fwd and a little progress bar with a time running. Is there a more optimized better way to play a radio stream? I found RTSPPlayer in the code but couldn't get it to work. Is there a more streamlimed version of the topbar (player bar?) available for those media types that all you can do is change volume and stop?
2) I initially tried using the facade control but found it limiting in the way I was trying to show all the channel data. So now I tried following the code in the radioguide and now create the rows dynamically. I can't actually get my radioguide to work so I don't know what it looks like when running. I tried placing two images at the bottom for navigating pages but I can't seem to determine how they're clicked in OnAction. If I make them buttons, then I can get the focusedID. But then how do I get a texture onto a button? Also each of my rows is made up of a GUIImage and some GUILabels. How can I wrap all them with some type of panel or group so that when the user highlights or clicks one, I can show it with a slightly shaded background or just something?
It would be nice if there was more documentation besides just for image, label and button in the plugin devlopers guide. For example, more documentation on playing various media types, the list controls, the group controls (actiongroup?), etc.