Handling of WMT_SOURCE_SWITCH notifications
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
Handling of WMT_SOURCE_SWITCH notifications

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





Posted: Mon Nov 07, 2005 1:30 am    Post subject: Handling of WMT_SOURCE_SWITCH notifications Reply with quote

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!

Back to top
SimpleSimon



Joined: 05 Jan 2005
Posts: 8

Posted: Fri May 12, 2006 9:50 pm    Post subject: Reply with quote

WM_START_CURRENTPOSITION might be the trouble here. Try 0.
Back to top
View user's profile Send private message
 
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