5 ms·
i wrote a flash/actionscript client for streaming mp3 files myself. i'm about 90 percent sure that there is no getting around the fact that every server you co
by allenbrunson 18y ago
i wrote a flash/actionscript client for streaming mp3 files myself. i'm about 90 percent sure that there is no getting around the fact that every server you connect to must give you explicit permission to connect, either through an .xml file or a little server running on a specific port.
this limitation exists no matter whose code you use. it's a security thing that macromedia/adobe put in there on purpose.
- jmtame 18y agoi can stream any shoutcast station without permission using the sound object, my issue is the memory leak. flash thinks it's dealing with an mp3 song that plays infinitely. it increases by approximately .02mb per second. i know you can stream any station using minicaster, but you can't import an as2 swf into an as3 swf.
- allenbrunson 18y agoi was talking about socket usage, that's the part you need permission for. and i think you should try a longer test before you assume it's leaking memory. i vaguely recall running into this myself, and i think it hits an eventual plateau, without leaking forever.
- jmtame 18y agoyou're probably right. i'm fairly certain i'm freeing up the objects properly for garbage collection, and re: sockets, you definitely need permission for that. which makes me wonder what minicaster is doing... but i should test for longer periods. i've been testing for 3 minutes at max, maybe should let it sit for 30+. minicaster keeps the memory fixed every 5 minutes though.