Tuppo

Anyone know why using the WM_ASF_READER filter to read from a Windows Media Services URL that the filter plays everything fine both VIDEO and AUDIO. But when the Windows Media Services switches from one file to another. Video and AUDIO both stop, no event is sent, the play state of the Source Filter is still set to play and no packets are recieved. The video stops before the end of the actual file it seems like it gets something sent from the Windows Media Services and decides to just stop playing.

Anyone have any clue why

The files are all encoded the same way also.

Thanks



Re: DirectShow Development WM_ASF_READER

rajesh_directshow

can you tell me is there any delay in your video and audio if yes then how much




Re: DirectShow Development WM_ASF_READER

Tuppo

Been playing around with this for about a week so far. This is what I have found.

I can connect to the Windows Media Services fine. I can play Video and Audio with no skips in either. I can stop the Windows Media Services and recieve an EC_COMPLETE. When I either manual or let Windows Media Services switch to a new file in the playlist, Video and Audio stop completly. I do not recieve an EC_COMPLETE. When I do a GetState I recieve 2 which is the RUN state. When I get the current position I recieve an incremental counter but when Windows Media Services switches files the counter continues to increment but the last 4 digits stay the same and it increments by like 300000. Using Graph edit and looking at the properties of the Video Renderer the buffers drain when the file switches.

It states that WM_ASF_READER can not handle streams that well so only theory I have at the moment since I only been toying with Directshow for less then 2 weeks now is A) Some how a HEADER is messing up the graph somehow or B) It recieves a timestamp of say 0 and tries to go back to the begining of the file it is currently playing.

So if anyone has a soloution, or can point me to a filter that can play Windows Media Services without getting upset I would appreciate it. I have looked into useing the Old ASF reader NetShowSource even including the CLSID on the NetShowSource doc page in MSDN still has no idea what it is.

Thanks





Re: DirectShow Development WM_ASF_READER

rajesh_directshow

Hi

use" windows media source filter" in graph edit".






Re: DirectShow Development WM_ASF_READER

Tuppo

Where in graph edit is it located because I do not see it under directshow filters.

Thanks





Re: DirectShow Development WM_ASF_READER

Tuppo

Okay after playing around with it some more I ran across what events Windows Media Services send when switching files.

WMT_EOF with an S_FALSE

then sends a WMT_SOURCE_SWITCH

So when one of these events are sent, which by the way IMediaEventex->GetEvent() sees niether of these, it freezes the graph.

Anyone have a clue how I can either A) See these events when they occur or B) ignore them

Thanks





Re: DirectShow Development WM_ASF_READER

Tuppo

Anyone have a guess/solution

Thanks





Re: DirectShow Development WM_ASF_READER

gotenks12

I have the same problem; we are trying to play a mms stream, but when the firts song finish the filter doesnt play the next song. Maybe i need to configure the filter with a custom property.

Could someone put some code that can play a mms in a continuos way.

Thanks