Windows Media Services Custom Authorization Plugin

  • Thread starter Thread starter T-Co
  • Start date Start date
T

T-Co

I have developed a custom plugin for authorizing streams. I fetch the
URL from pPresentationCtx on WMS_EVENT_OPEN with
WMS_PRESENT_REQUEST_NAME and go from there.

My EnablePlugin() has plHeartbeatPeriod = 30000;
My OnHeartBeat() has a function that increases a counter.

Now, what I would like to do is, that when the counter reaches a
certain point I would like to tell the server (or client or whatever)
to disconnect the stream.

How would I do that?

Please, someone hear my cry for help!-)
 
Well, in the OnHeartBeat method, would you just check to see if the
counter (which increases the counter) is at that point, and if it is,
disconnect the stream?
 
Exactly that.

I'm desperately trying to find out how the actual disconnection is
done. I wish that it would be just a simple Server.Disconnect() ;)

The implementation of the IWMSEventAuthorizationPlugin has methods
such as AuthorizeEvent which passes Context objects as reference. This
is not the case in the OnHeartBeat, and I, god help me, can't figure
out how would the disconnection be done.

Thank you anyway.

Well, in the OnHeartBeat method, would you just check to see if the
counter (which increases the counter) is at that point, and if it is,
disconnect the stream?

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


I have developed a custom plugin for authorizing streams. I fetch the
URL from pPresentationCtx on WMS_EVENT_OPEN with
WMS_PRESENT_REQUEST_NAME and go from there.
My EnablePlugin() has plHeartbeatPeriod = 30000;
My OnHeartBeat() has a function that increases a counter.
Now, what I would like to do is, that when the counter reaches a
certain point I would like to tell the server (or client or whatever)
to disconnect the stream.
How would I do that?
Please, someone hear my cry for help!-)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top