[Playlist] XSPF clipping

Ryan Shaw rshaw at yahoo-inc.com
Fri Jun 2 16:55:00 UTC 2006


>>> Is seeking within the body of an MP3 loaded via a URL even possible 
>>> in Flash?
>>
>> Yes, although you can only seek as far as what has been progressively
>> downloaded. If you want to seek to arbitrary points that have not yet
>> been downloaded by the client, you need server-side support.
> 
> Ah!  Well, the thing I was thinking of was using the HTTP byte-range 
> feature, which is generic to Apache.  Most servers will support that, 
> the question is whether a Flash client can get into the request headers 
> and muck around at this level of detail.

Probably not possible. Sound loading in Flash hides the underlying HTTP 
stuff. You can, however, get at the headers for things like loading 
variables and XML, and you can even misuse these to load binary data--so 
it may be possible to do this to pull down a range of bytes within an 
MP3... but at that point, as far as I can tell, there is no way to tell 
Flash to play those bytes.

I've asked smarter Flash hackers than me to think about it, though.

Ryan



More information about the Playlist mailing list