| View previous topic :: View next topic |
| Author |
Message |
FreePlay
Joined: 04 Jan 2006 Posts: 71 Location: Schenectady, New York, USA
|
Posted: Sat Jan 19, 2008 7:54 pm Post subject: More than you wanted to know about the Internet Radio Player |
|
|
I've spent quite a bit of time fiddling with the Internet Radio Player plugin Sony added in firmware 3.80, as it offers many interesting new possibilities, such as a pseudo-XMLHttpRequest capability and directory scanning functions built into the web browser. It also appears to be the first public acknowledgement of the screenshot plugin, since there's a function (albeit a placeholder for the moment) with a name that implies that it's solely meant to be used for taking screenshots.
As part of the process I've been gradually documenting the various functions that we've been given with this plugin; a chart of everything I've discovered is available here in glorious, eye-burning color.
Last but not least, when you first set up the radio player, you'll download a .PRS file which contains information about the radio player you're using -things like the title, URL, author, copyright info, icon, etc. I reverse-engineered the .PRS format for kicks and wrote a tool for displaying information about .PRS files and spitting out the associated icon. Source/binaries for the tool are located here.
I know most people don't get excited about web portals, but there's a lot of power tucked away in the radio player plugin if you know how to properly flex its muscles. |
|
| Back to top |
|
 |
Wally

Joined: 26 Sep 2005 Posts: 672
|
Posted: Sat Jan 19, 2008 7:57 pm Post subject: |
|
|
| *pats freeplay* Good boy :) |
|
| Back to top |
|
 |
Hellcat
Joined: 24 Jan 2007 Posts: 84
|
Posted: Sat Jan 19, 2008 8:08 pm Post subject: |
|
|
Nice!
How did you get the function name? Bruteforcing NIDs?
How would one call all the functions? From a custom radioplayer .PRS? |
|
| Back to top |
|
 |
FreePlay
Joined: 04 Jan 2006 Posts: 71 Location: Schenectady, New York, USA
|
Posted: Sat Jan 19, 2008 8:20 pm Post subject: |
|
|
The function names are javascript; they're referenced as plain text in the radioshack.prx :)
You'd call them from a custom .PRS, yes. You edit your .PRS to point to whatever file you want, then add this in your html code:
| Code: | | <object name="psp" id="psp" type="application/x-psp-extplugin"></object> |
Then you can script the 'psp' object however you want, using the functions I listed, e.g. 'psp.sysRadioPlayEffectSound()'. The functions are only available if you use the 'Internet Radio Player' icon in the XMB, though; the radioshack plugin isn't loaded otherwise.
Maybe this weekend I'll write a tool for making custom .PRS files based on plain text input. That'd be nice, I think.
Last edited by FreePlay on Sun Jan 20, 2008 2:25 am; edited 1 time in total |
|
| Back to top |
|
 |
Hellcat
Joined: 24 Jan 2007 Posts: 84
|
Posted: Sun Jan 20, 2008 2:20 am Post subject: |
|
|
I get the feeling that radio thingy will get a very nice "toy" to play with :D
Not bad! :up: |
|
| Back to top |
|
 |
FreePlay
Joined: 04 Jan 2006 Posts: 71 Location: Schenectady, New York, USA
|
Posted: Sun Jan 20, 2008 3:22 am Post subject: |
|
|
| Here is what I know about the PRS format so far. |
|
| Back to top |
|
 |
FreePlay
Joined: 04 Jan 2006 Posts: 71 Location: Schenectady, New York, USA
|
Posted: Sun Jan 20, 2008 7:14 am Post subject: |
|
|
Fixed :)
I've made a program that lets you make and edit .PRS files. Enjoy.
Last edited by FreePlay on Mon Jan 21, 2008 7:42 am; edited 1 time in total |
|
| Back to top |
|
 |
Team-3GO
Joined: 21 Nov 2007 Posts: 17 Location: PSP-Development
|
Posted: Sun Jan 20, 2008 10:22 am Post subject: |
|
|
thanks for sharing the infos freeplay.
played around with the radio stuff for two days while i had sony 3.80.
now since there is 3.80 M33 its time to look at it again. _________________ "Ignorance is the night of the mind, but a night without moon and star." |
|
| Back to top |
|
 |
zefie
Joined: 12 Feb 2008 Posts: 6
|
|
| Back to top |
|
 |
|