vineri, 20 mai 2016

Get streaming url from flash-based radio

http://tiny.cc/wynbwx Secret discount at DjSoft: save 50%
What to do when you want to listen to your favorite radio station on something other than your powerful computer and the only thing they give you is a flash player? Click view more for full written steps. Some experience in coding is recommended but you don't need to be a programmer to do this. I do not have much experience with web-based languages but my knowledge of C and Python did the trick. This is what I did: open stream; show source In source code, look for anything to do with the station you're looking for. Often this is stored in a variable and is in form of a URL to a subfolder on the server. Open that. Now you should be getting only the flash player you want. If not retry the previous step. Get the source code of this file Sometimes the stream URL is in here, but most of the time it is embedded in an XML file. The only way to get to this XML is to find out where it is in source of the flash file, so there is were we are going to look. Look in the source for the SWF file of the station. Again it will most likely be in a sublayer on the server so paste it on the end of the url of the source you were just viewing. Now you should get just the SWF in full screen in your browser. If there is something on the end of the URL like a ?= statement, try to remove these, but leave them if it causes problems. Go to http://www.showmycode.com/ and copy/paste the URL of the previous step in the URL part, fill in the CAPTCHA and Show My Code! Now we're close: the streaming URL is in this file or in a XML linked in this file. It often contains the name of the flash file (which is not always the name of the station you are looking for!) and settings. Also it is often called playlisturl playlist, settings. Just use your common sense and try and find it! If you found the URL: ENJOY! If it is in the XML, open it (again by pasting the deeper layer of the url at the end of the last one) and your URL should be displayed. Have fun listening!