John Harding
Guest
|
Posted:
Mon Nov 07, 2005 1:30 am Post subject:
Handling of WMT_SOURCE_SWITCH notifications |
|
|
I'm trying to play back an audio stream using the IWMReader interface from
the WMF 9.5 SDK, but I can't find any accurate documentation on how to handle
the WMT_SOURCE_SWITCH notification in my IWMStatusCallback::OnStatus handler.
Search through newsgroup history, I found
http://groups.google.com/group/microsoft.public.windowsmedia.sdk/browse_thread/thread/26bea19b8c84a5d2/929abdd47cfd532e?lnk=st&q=WMT_SOURCE_SWITCH&rnum=2&hl=en#929abdd47cfd532e
which seems to indicate I should just be able to call IWMReader::Start()
after receiving the WMT_SOURCE_SWITCH notification, but this doesn't work for
me. If I call IWMReader::Start( WM_START_CURRENTPOSITION, 0, 1.0f, NULL ), I
end up getting a WM_STARTED notification with hr = NS_E_INVALID_REQUEST
(0xC00D002B).
This would seem to be telling me there's something else I need to do before
restarting the stream, but I can't find any explanation. What makes this
even harder to deal with is that it happens only occasionally, even when I
try re-playing the same stream from the same server. Is anyone aware of a
test server somewhere that serves up server-side-playlist content like this
that can be tested against?
Thanks!
|
|