Re: winamp playlist question it wont display but plays.

Jon disnard <[email protected]> Mon, 18 Nov 2002 09:17:07 -0600
Newsgroups gmane.comp.apache.mod-mp3
Message-ID <[email protected]>
Sometimes there is no logical possition in a stream. For instance, what 
if the stream is live from a DJ with turn tables, or whatever. Asking 
the server to maintain a buffer of the stream on the server side so the 
client can warp around, or press pause is asking a bit much. However, 
most streaming serverices do maintain dumps of their own streams but 
those are not always archived forever, and most certainly not to be 
relied upon since storage is expensive. Clearly there needs to be a 
distinction between live streaming, and streaming based on a collection 
of mp3 files. Mod_mp3 based on the notion of streaming based on a 
collection of mp3 files. On mod_mp3 it would in theory be possible to 
send the current file possition of the file when the stream starts, and 
possibly in a title stream. It would also, in theory, be possible to 
change mod_mp3 in such a way to tell it to start at XYZ possition in the 
stream. something like ?op=play&file=foobar&pos=4096. the pos= starting 
you to 4096 bytes from the logical begining (or ending) of the stream. 
Now if only that feature actually existed! Getting a player to 
understand how to send mod_mp3 these commands is another problem.  =)


-Jon

Kyle Davenport wrote:

>Yes, somehow that slider operation would have to feed back to the server and the mp3
>handler would have to relocate its position within whatever file it was playing.
>This wouldn't work for sockets.
>
>But like sockets, when I'm streaming to xmms, I _can_ hit pause, and the server will
>wait indefinitely until I resume and continue playing exactly where I left off.
>
>Kyle
>
>Jon disnard wrote:
>
>  
>
>>Because you cannot do that feature on a stream very easy. You cannot
>>fastfarward in a stream since the data has not been sent from the server
>>yet. You cannot rewind because the data is typically thrown away after
>>being decoded. In theory you could write an mp3 decoder app to do the
>>tivo style live pause, or a rewind feature if you cache your stream.
>>Most mp3 decoders have a feature to dump the stream to a file, but non
>>of them have a live-pause, or rewind feature. At least that I'm aware of. =)
>>
>>-Jon
>>
>>Frank S wrote:
>>
>>    
>>
>>>Now that you mention it, that would be fun.  I think i will try it in
>>>python... trying to learn that language.   One more question,  do you
>>>know how to make it so that you can scan forward in a song i.e. move
>>>the slider to the right.. I dont even get the slider when i have it
>>>streaming.  When the mp3 is local winamp shows the slider.
>>>      
>>>
>>>--
>>>      
>>>
>>Kyle Davenport - unix sys admin consultant - Dallas TX
>>_____________________________
>>No trees were killed in the sending of this message. However a large number
>>of electrons were terribly inconvenienced.
>>
>>    
>>
>
>_______________________________________________
>Mod_mp3 mailing list
>[email protected]
>http://lists.tangent.org/mailman/listinfo/mod_mp3
>  
>