Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows Server 2003Windows 2000Windows NTSmall Business ServerVirtual ServerExchange ServerIISHost Integration ServerISA ServerSMSWSUSMOMWindows Media ServerSecurityCertification
Related Topics
SQL ServerMS WindowsMS OfficePC HardwareMore Topics ...

Windows Server Forum / Windows Media Server / May 2004

Tip: Looking for answers? Try searching our database.

WMS Active Script Events - Detecting Push

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Josh - 14 May 2004 18:24 GMT
Hi,

I'm trying to put together a script (vbscript) that will fire off a
procedure the moment WMS picks up an initial encoder push and again
when that stream stops.  I've been through the MS docs on available
callbacks and have been playing around with
OnWMSEValidatePushDistribution with limited success.  This particular
callback will successfully fire the first time a stream is started..
if I stop and restart the encoder, that second start will not
register.  Also, I've not been able to figure out how to register when
the encoder stops streaming.

Does anyone have any suggestions or would be able to point me in the
right direction?

Thanks,

Josh
Josh - 20 May 2004 14:12 GMT
I've been digging around and found the publishing point sub-event
WMS_EVENT_PUBLISHING_POINT_STREAM_END, which is (*I think*) exactly
what I need.  Problem is I can't figure out when the thing fires.
I've written an event notification plugin that watches for this event
as well as gone the VBScript/WMS Active Script Event Handler route
with no luck.  The docs say:

'The publishing point has stopped sending a stream. Because a
publishing point does not automatically stop when an encoder, for
example, sends an end-of-stream notification, this event can be used
to determine when the stop method should be called to disconnect all
clients.'

The way I read that, once I stop an encoder stream the publishing
point will continue to stream (I would guess briefly) until it's
buffer/whatever runs out.  Once that happens I would expect
WMS_EVENT_PUBLISHING_POINT_STREAM_END to fire.  I'm I interpreting
this wrong?  Can anyone point me in the right direction?

Thanks

> Hi,
>
[quoted text clipped - 14 lines]
>
> Josh
Ravi Raman - 20 May 2004 19:14 GMT
Josh,

Can I suggest an alternate method? There is a sample event
plug-in that ships with the SDK that dumps all the events
that get fired and the associated context values to a
file. May be, you can compile it, enable it on your
server, get the output file and look at the list of events
to find the sweet spot that might fit you?

The WMS_EVENT_PUBLISHING_POINT_STREAM_END is the event
subtype. You should be looking for
WMS_EVENT_PUBLISHING_POINT and once you get the event,
look for the WMS_COMMAND_CONTEXT_EVENT in the command
context. This should match
WMS_EVENT_PUBLISHING_POINT_STREAM_END but I am not 100%
sure if it would work, you should try it though.

The Windows Media Services SDK should give you plenty of
information on this topic.

Thx,
Ravi
--
This posting is provided "AS IS" with no warranties, and
confers no rights.
>-----Original Message-----
>I've been digging around and found the publishing point sub-event
[quoted text clipped - 37 lines]
>> Josh
>.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.