[MPlayer-dev-eng] [PATCH] http streaming issues

Dominik 'Rathann' Mierzejewski dominik at rangers.eu.org
Wed Jun 25 11:01:20 CEST 2008


On Wednesday, 25 June 2008 at 08:23, Alexander Kanavin wrote:
> Hi folks,
> 
> I've discovered a couple problems with http streaming in mplayer, and wrote 
> two patches that fix them:
> 
> 1) Some web servers don't provide a way to seek within a file (example:
> Nokia N-series phones),

Nokia phone is a web server?

> because "Accept-range" http header is absent. MP3
> playback code however tries to seek to the end of the file to read some
> tags. This fails and all kinds of breakage follows. 730_mp3-streaming.diff
> makes mplayer only do the seeking if the stream allows it.

Sounds sensible.

> 2) ASF streaming code relies on having first few bytes of the stream body
> available when it parses the http headers, however it only ensures that the
> entire http header is available when reading from a socket, and doesn't
> ensure that the beginning of the body is available as well. Some web
> servers, such as Windows Media Player in Windows Vista,

Windows Media _Player_ is a web server??

> send the headers
> and the body in separate TCP packets, so the body isn't read at all and
> this breaks ASF playback.

Breaks how? Could you provide MPlayer output before and after your patch?
I've rarely had problems with playing ASF streams.

Regards,
R.

-- 
MPlayer http://mplayerhq.hu | Livna http://rpm.livna.org
There should be a science of discontent. People need hard times and
oppression to develop psychic muscles.
	-- from "Collected Sayings of Muad'Dib" by the Princess Irulan



More information about the MPlayer-dev-eng mailing list