What is the correct way to receive ASF data from IWMWriterNe
WMPTalk.com Forum Index WMPTalk.com
Discuss Windows Media Player
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web wmptalk.com
What is the correct way to receive ASF data from IWMWriterNe

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> SDK
Author Message
Dan Dever
Guest





Posted: Fri Sep 03, 2004 2:09 am    Post subject: What is the correct way to receive ASF data from IWMWriterNe Reply with quote

Hey-

I've got ASF data being broadcast using the WM ASF writer and
IWMWriterNetworkSink, but I'm not sure what the correct approach is to
receive and play back the data.

WMPlayer reads it ok, but I would like to use the WM ASF Reader filter(which
seems to be only for actual files)..

Is there a direct way to get the WM ASF Reader to accept the data from a
port and ip address?

I tried writing my own custom sink to replace the network layer, so I can
manually send and receive samples and feed them to the reader using IStream,
but this has issues associated with it (I assume I'm using the reader
incorrectly) and didn't help with latency issues anyway(the
IWMWriterNetworkSink seems to perform about the same)..

Rather than intercept the data or try to setup a stream myself, I would
prefer to simply get the WM ASF Reader to accept what's being sent out from
IWMWriterNetworkSink, surely there are provisions for this..

I'm comfortable doing this any way it needs to be done, if the solution is
complex and time-consuming that's fine, as long as it works..I need to know
I'm working in the right direction and not reinventing the wheel if I can
help it..

If anyone has any info on the correct way to receive and playback data sent
from IWMWriterNetworkSink, I would greatly appreciate a push in the right
direction..

NOTE: As an alternate solution I can use IStream to feed the data into the
reader, I've written code for this and it "works" but the reader stops
processing samples (might be a few seconds or minutes before it happens) and
I get a WM_ERROR event...the reader also seems to require way more than just
the header data to get going, I have to pre-load about 1meg of data before it
will open the stream correctly..I attempted to isolate the problem for about
a day with no real progress, if anyone has info on how to do this the correct
way that would be great..

Any solution or even just verification of a particular method or approach
would be extremely helpful, I'm up for whatever needs to be done..

Thanks-
Dan

Back to top
Alessandro Angeli [MVP::D
Guest





Posted: Fri Sep 03, 2004 3:38 am    Post subject: Re: What is the correct way to receive ASF data from IWMWrit Reply with quote

Dan Dever wrote:

Quote:
I've got ASF data being broadcast using the WM ASF writer
and IWMWriterNetworkSink, but I'm not sure what the
correct approach is to receive and play back the data.

WMPlayer reads it ok, but I would like to use the WM ASF
Reader filter(which seems to be only for actual files)..

Is there a direct way to get the WM ASF Reader to accept
the data from a port and ip address?
[CUT]


The network sink uses HTTP pseudo-streaming which should be
supported by the async reader object just by making it
Open() the correct HTTP URL. Thus, the WMASFReader filter is
supposed to support HTTP URLs as well. Have you just tried
to Open() L"http://127.0.0.1:xxxx" where xxxx is the port
number you assigned to the nework sink?



--

/**
* Alessandro Angeli
*
* MVP :: Digital Media
*
* a dot angeli at biosys dot net
*/
Back to top
 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> SDK All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Microsoft Office Forum New Topics
Powered by phpBB