Thanks David,
I managed to get the Sink to work and write out the trace information..
But i have another set back you could say..
How do you check for tags value while other tags are set to true...
I mean i want to check for the "
MSPROPTAG_Play" while "
MSPROPTAG_StreamingContentVideo" is true.
which i cant seem to be able to do in damian guide, i can only check for one tag inside his for-loop like if "
MSPROPTAG_Play" is set to true but i don't know if its the Music play or the Movie play !
Another thing is that the Stop event for "Movies" is not being detected correctly
see the log..
ehmsas.exe Information: 0 : Tag MSPROPTAG_Play=True
ehmsas.exe Information: 0 : Session.MediaStatusChange
called
ehmsas.exe Information: 0 : Tag MSPROPTAG_MediaTime=5109
ehmsas.exe Information: 0 : Session.MediaStatusChange
called
ehmsas.exe Information: 0 : Tag MSPROPTAG_TrackTime=1
ehmsas.exe Information: 0 : Session.MediaStatusChange
called
ehmsas.exe Information: 0 : Tag MSPROPTAG_TrackTime=2
ehmsas.exe Information: 0 : Session.MediaStatusChange
called
ehmsas.exe Information: 0 : Tag MSPROPTAG_TrackTime=3
ehmsas.exe Information: 0 : Session.MediaStatusChange
called
ehmsas.exe Information: 0 : Tag MSPROPTAG_TrackTime=4
ehmsas.exe Information: 0 : Session.MediaStatusChange
called
ehmsas.exe Information: 0 : Tag MSPROPTAG_Pause=True
ehmsas.exe Information: 0 : Session.MediaStatusChange
called
ehmsas.exe Information: 0 : Tag MSPROPTAG_Pause=True
ehmsas.exe Information: 0 : Session.MediaStatusChange
called
ehmsas.exe Information: 0 : Tag
MSPROPTAG_FS_Unknown=True
ehmsas.exe Information: 0 : Session.Close called
the blue line is the stop event,, its being detected as Unknown !
--
this issue is not as important as distinguishing between the music play event and the movie play event :S
Thanks.
Edit: I managed to do it, if anyone was having the same problem as me just make a bool property on the class level that state the current video streaming state, set it to false..
and check for the "
MSPROPTAG_StreamingContentVideo" if its there.. set your bool property value to true.
and then when checking for "
MSPROPTAG_Play" also checks (&&) if your property is true.
Thanks guys for the help.
Xive.