467,864 Members | 1,860 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,864 developers. It's quick & easy.

Windows Media Services Custom Authorization Plugin

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!-)
Jan 3 '08 #1
  • viewed: 2083
Share:
2 Replies
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]
- mv*@spam.guard.caspershouse.com

"T-Co" <an***********@gmail.comwrote in message
news:cd**********************************@l1g2000h sa.googlegroups.com...
>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!-)

Jan 3 '08 #2
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.

On Jan 3, 5:58 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.comwrote:
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]
- m...@spam.guard.caspershouse.com

"T-Co" <antti.rint...@gmail.comwrote in message

news:cd**********************************@l1g2000h sa.googlegroups.com...
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!-)
Jan 3 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Paul Fi | last post: by
14 posts views Thread by tshad | last post: by
3 posts views Thread by dm3281 | last post: by
2 posts views Thread by AeonOfTime | last post: by
reply views Thread by jack112 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.