[MPlayer-dev-eng] MMS support in mplayer begun

Derek J Witt djw at flinthills.com
Fri Dec 7 21:44:30 CET 2001


Ok, That does make sense.  I have wiped out my changes and redownloaded
the cvs tree.  I will modify asf_streaming_start function accordingly
below.   I can make an enumerated type for mmsu, mmst, and then http in
that order to make a switch statement work.  I don't know enough about
UDP to do anything worthwhile there.  So, I will just make a stub for
UDP for the time being, or simply return -1.

As for the initial connection for MMST, I'm having to send the 01
command (as per the MMS specs from the SDP web site).   Once that is
sent, I'm having to immediately read the server response back in. So, I
have to somehow parse the server's response to see if it was successful.
I do know in the server response, if the player version is too low,
there will be an URL to download the appropriate win32 DLLs. Should
asf_mmst_streaming_start() just return -1 if that does happen?  Afaik,
there is no mechanism to automatically install win32 codecs, no?

Bertrand Baudet wrote:
> 
> I didn't try the patch yet, I just read it. And I have few other comments:
> - Please create a file called asf_mmst_streaming_start(). So you will not
>   have to change the asf_http_streaming_start() function.
>   You will have also to create an asf_mmst_streaming_read() function,
>   that desencapsulate the incoming stream.
>   With those functions, it will be much more easier for me to integrate it.
>   You will have to call your asf_mmst_streaming_start() from the
>   asf_streaming_start function. Just comment the return line and
>   put yours for testing.
>   The asf_streaming_start function is supposed to select the appropriate
>   network streaming type. This function should first try mmsu, then mmst
>   and then if they fail(because of firewall/proxy) it should try http.
>   For now, what I can do, is having a simple switch on the protocol.
>   I want keep mms doing http for now, so you can take the mmst for
>   you test. I'm gonna add the switch in this function this week end.
>   And I'm also gonna add the mmst entry in the network.c file.
> 
> - Please try to not unindent my code, if some code are no indented and
>   stick to the left, is because it's temporary and for debuging. It's easier
>   for me to find this code when it's not indented.
> 
> - Why are you changing the open.c file? I don't understand why you are
>   trying to pass the address of the stream pointer? In addition the I don't
>   see changes for the streaming_start declaration, so I will break the
>   current implementation.
> 
> See below for more...
> 
> On Thursday 06 December 2001 11:28 am, you wrote:
> > BTW, I only currently have my section of code parsing URLs (like
> > mms://server/blah). The HTTP code was modified by me, but this patch is
> > not intended to make it to CVS yet. The functionality of HTTP code still
> > works without any additional changes.
> >
> > Currently, the format for the URLs (mplayer mms://server/blah). I just
> > have my section making an initial connection and returning the servers
> > initial response.  The 4.1.3865 indicates it likes the player version.
> > I had to set the player version to 6.4.1 to keep the stream (and the
> > server) I'm testing happy.
> 
> I don't quite understand. Are you sending an HTTP request? For what I know,
> mmst doesn't need a HTTP handshake. So please make you code cleaner
> according to what I told you at the beginning of this email and in my
> previous emails. Thanks.
> 
> Bertrand

-- 
**  Derek J Witt                                              **
*   Email: mailto:djw at flinthills.com                           *
*   Home Page: http://www.flinthills.com/~djw/                 *
*** "...and on the eighth day, God met Bill Gates." - Unknown **



More information about the MPlayer-dev-eng mailing list