On Tue, 30 May 2000, Ed Patriquin wrote:
> OK, I'm confused now.
I'm getting there.
> If I try to use the MMS protocol as in "mms://localhost:portno/file.wma", I
> receive a packet but do not know how to decode it and respond.
MMS == ???; I've never heard of it, not being a native windows coder
untill about 3 months ago.
> If I use HTTP, as you suggested, as in "http://localhost:portno/file.wma", I
> DO NOT receive a packet but get error 0xC00D002B or NS_E_INVALID_REQUEST.
Let's talk about what you mean by use HTTP. When I say, HTTP, I'm
getting a socket from the os, throwing together a header, sending the
header, then sending the binary data. I'm essentially assemblng a web
page and sending it out. Is this what you mean by HTTP? Or is there some
API you are using that I don't know about? Here's my header, BTW, I
recall I had some trouble making WMA happy:
"
HTTP/1.1 200 OK\r\n
Server: Stupid-Loopback-0.2\r\n
Content-Type: audio\r\n
\r\n
"
All newlines are for readiblity only.
> If I use an external host, to monitor packet transmission, as in
> "http://192.168.1.250:portno/file.wma" I don't see any packets, but I
> eventually time out with the NS_E_INVALID_REQUEST error.
Uh, hmm. There's a good code sample in an SDK somewhere, one much of my
code is based on. It's C:\WMSDK\WMFSDK\samples on my system, you're
looking for windows media format SDK - probably from microsoft. There's
also a DLL that you have to link to in that heirarchy as I recall.
> I am sure that I am missing something fundamental and simple. Any guidance?
Let's try to get on the same level here. The samples above are good and
have source code. I don't remember having any of the errors you are
describing.
I wish I could send you my code but I wrote it for a company and it
can't go out - but if you're writing for FreeAmp then I could look at
yours.
_______________________________________________
[EMAIL PROTECTED]
http://www.freeamp.org/mailman/listinfo/freeamp-dev